run
Runs a grammY bot with long polling. Updates are processed concurrently with a default maximum concurrency of 500 updates. Calls to get
will be slowed down and the limit
parameter will be adjusted as soon as this load limit is reached.
You should use this method if your bot processes a lot of updates (several thousand per hour), or if your bot has long-running operations such as large file transfers.
Confer the grammY documentation to learn more about how to scale a bot with grammY.
Type Parameters
Y
ts
Y extends { update_id: number }
R
ts
R
Parameters
bot
A grammY bot
options
ts
options: RunOptions<Y>
Further configuration options
Return Type
A handle to manage your running bot