GramIO API Reference / gramio/dist / BotStartOptions
Interface: BotStartOptions
Defined in: gramio/index.d.ts:1032
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
allowedUpdates? | ("message" | "edited_message" | "channel_post" | "edited_channel_post" | "business_connection" | "business_message" | "edited_business_message" | "deleted_business_messages" | "message_reaction" | "message_reaction_count" | "inline_query" | "chosen_inline_result" | "callback_query" | "shipping_query" | "pre_checkout_query" | "purchased_paid_media" | "poll" | "poll_answer" | "my_chat_member" | "chat_member" | "chat_join_request" | "chat_boost" | "removed_chat_boost" | "managed_bot")[] | "strict" | Which update types to receive from Telegram. - undefined (default) — Telegram's default set, plus automatic opt-in for chat_member, message_reaction, and message_reaction_count if the bot has handlers registered for them. - "strict" — only receive update types that handlers explicitly register for via .on(). Equivalent to AllowedUpdatesFilter.from(bot). Filter-only .on() and .use() are not included. - AllowedUpdatesFilter / array — explicit list of update types. Example // Auto opt-in (default): Telegram default + auto chat_member/reaction if needed bot.start(); // Strict: only registered events bot.start({ allowedUpdates: "strict" }); // Manual bot.start({ allowedUpdates: AllowedUpdatesFilter.all }); // Strict + customize bot.start({ allowedUpdates: AllowedUpdatesFilter.from(bot).add("poll") }); | gramio/index.d.ts:1062 |
deleteWebhook? | boolean | "on-conflict-with-polling" | - | gramio/index.d.ts:1063 |
dropPendingUpdates? | boolean | - | gramio/index.d.ts:1035 |
longPolling? | BotStartOptionsLongPolling | - | gramio/index.d.ts:1034 |
webhook? | BotStartOptionsWebhook | - | gramio/index.d.ts:1033 |