@xw3/bot-helper
v0.1.4
Published
Xircus Bot Helper
Downloads
12
Readme
Xircus Bot Helper
Introduction
Bot helper identifies bot message types, execute them based on the command definition. Command definition is a json structured metadata for bot callback query for future flow visualization.
Helper Functions
- extractBotMessage
- executeCallbackQuery
- executeFile
- executeCommand
- executeChannel
- sendMessage
- sendPhoto
- sendVideo
- sendTyping
- updateWebhook
- updateBot (any)
Bot Endpoints
- sendChatAction (e.g Typing...) https://core.telegram.org/bots/api#sendchataction
- sendPoll
- sendPaidMedia ({ type: photo | video, media: url }) https://core.telegram.org/bots/api#sendpaidmedia
- sendVoice
- sendAnimation
- sendMediaGroup
- sendDocument
- createChatSubscriptionInviteLink
- sendGift
- giftPremiumSubscription
- pinChatMessage
- answerCallbackQuery https://core.telegram.org/bots/api#answercallbackquery
- deleteMessage
- deleteMessages
