Modern Telegram Bot Framework for Node.js
exports: { types, require }
for TypeScript's "module": "Node16"
. Fixes: #1629, Ref: Handbook
ctx.tg
; use ctx.telegram
insteadtype MiddlewareObj
testEnv
as an option to Telegraf / Clienttypes.js
so importing "telegraf/types"
does not cause an eslint import resolution errorMarkup.button.webApp
helperctx.webAppData
shorthand to retrieve web_app_data
more ergonomicallytelegraf/types
to be imported directly without relying on a separate dependency on typegram. The export interface is not stable. It may change at a later date. Feedback welcomectx.approveChatJoinRequest
and ctx.declineChatJoinRequest
now implicitly use ctx.chat.id
instead of expecting chatId
as first parameter.Composer.spoiler
and Composer#spoiler
methods.banChatSenderChat
and unbanChatSenderChat
now infer this.chat.id
instead of taking it as first parameter.