Search
Preparing search index...
The search index is not available
telegraf.js - v4.4.1
Options
All
Public
Public/Protected
All
Inherited
Menu
telegraf.js - v4.4.1
Telegraf
Options
Interface Options<TContext>
Type parameters
TContext
:
Context
Hierarchy
Options
Index
Properties
context
Type
handler
Timeout
telegram
Properties
context
Type
context
Type
:
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
handler
Timeout
handler
Timeout
:
number
Optional
telegram
telegram
:
undefined
|
Partial
<
Options
>
Exports
Markup
Markup.button
Scenes
Telegraf
Types
Launch
Options
Options
context
Type
handler
Timeout
telegram
Generated using
TypeDoc