Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Options<TContext>

Type parameters

Hierarchy

  • Options

Index

Properties

contextType

contextType: new (...args: [update: (CallbackQueryUpdate & AddOptionalKeys<"message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChannelPostUpdate & AddOptionalKeys<"callback_query" | "message" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChatMemberUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChosenInlineResultUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (EditedChannelPostUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (EditedMessageUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (InlineQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (MessageUpdate & AddOptionalKeys<"callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (MyChatMemberUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (PreCheckoutQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "poll_answer" | "poll" | "shipping_query">) | (PollAnswerUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll" | "shipping_query">) | (PollUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "shipping_query">) | (ShippingQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll">), tg: Telegram, botInfo: UserFromGetMe]) => TContext

Type declaration

    • new (...args: [update: (CallbackQueryUpdate & AddOptionalKeys<"message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChannelPostUpdate & AddOptionalKeys<"callback_query" | "message" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChatMemberUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChosenInlineResultUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (EditedChannelPostUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (EditedMessageUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (InlineQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (MessageUpdate & AddOptionalKeys<"callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (MyChatMemberUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (PreCheckoutQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "poll_answer" | "poll" | "shipping_query">) | (PollAnswerUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll" | "shipping_query">) | (PollUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "shipping_query">) | (ShippingQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll">), tg: Telegram, botInfo: UserFromGetMe]): TContext
    • Parameters

      • Rest ...args: [update: (CallbackQueryUpdate & AddOptionalKeys<"message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChannelPostUpdate & AddOptionalKeys<"callback_query" | "message" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChatMemberUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (ChosenInlineResultUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (EditedChannelPostUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (EditedMessageUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (InlineQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (MessageUpdate & AddOptionalKeys<"callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (MyChatMemberUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query">) | (PreCheckoutQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "poll_answer" | "poll" | "shipping_query">) | (PollAnswerUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll" | "shipping_query">) | (PollUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "shipping_query">) | (ShippingQueryUpdate & AddOptionalKeys<"callback_query" | "message" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll">), tg: Telegram, botInfo: UserFromGetMe]

      Returns TContext

handlerTimeout

handlerTimeout: number

Optional telegram

telegram?: Partial<Options>

Generated using TypeDoc