Telegram Bot Actions

All available actions for Telegram Bot connections.

Example: Send Inline Keyboard

Send Inline Keyboard

Send message with buttons, handle callback

Telegram Bot

Send Inline Keyboard

chatId
userID
text
Choose an option:
keyboard
[[{"text":"Yes","callback_data":"yes"}]]

Messaging

ActionDescriptionKey Inputs
Send MessageSend text messagechatId, text
Send ReplyReply to a messagechatId, text, replyToMessageId
Edit Message TextEdit existing messagechatId, messageId, text
Delete MessageDelete a messagechatId, messageId
Send Chat ActionShow typing/uploading indicatorchatId, action

Media

ActionDescriptionKey Inputs
Send PhotoSend an imagechatId, photo, caption
Send VideoSend a videochatId, video, caption
Send DocumentSend a filechatId, document, caption
Send AudioSend audiochatId, audio, caption
Send VoiceSend voice messagechatId, voice
Send Media GroupSend multiple mediachatId, media

Interactive

ActionDescriptionKey Inputs
Send Inline KeyboardMessage with inline buttonschatId, text, keyboard
Send MenuMessage with reply keyboardchatId, text, keyboard
Answer Callback QueryRespond to button presscallbackQueryId, text
Set My CommandsSet bot command listcommands

Chat Management

ActionDescriptionKey Inputs
Get ChatGet chat infochatId
Get Chat MemberGet member infochatId, userId
Ban Chat MemberBan a userchatId, userId
Unban Chat MemberUnban a userchatId, userId
Approve Join RequestApprove chat joinchatId, userId
Decline Join RequestDecline chat joinchatId, userId