We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@botocrat/poller has been created for polling telegram api server.
The library calls .getUpdates every x miliseconds and passes updates to the bot handler(the bot variable below)
However, polling is not suggested in production because it increases use of resources and creates latency. Read Receiving Updates by Webhook instead.
import bot from "./bot.js" import client from "./client.js" import createPoller from "@botocrat/poller" createPoller(bot, client, 1000).poll()
There was an error while loading. Please reload this page.