Telegram Bot API client library for Google Apps Script.
It implements basic functionality (send message/animation/gif/video/audio...) but lacks a lot of Telegram Bot API methods since I only ever needed some methods. PRs are welcome :)
The codebase of this project has a long history. It has been working on some of my personal projects for years, but never got time/courage to create a Library. Also, this has not been updated for a long time, so keep in mind there is really old (or bad) code. I started working on this in my university days, so take that into account.
Go to Resources -> Libraries in the Script menus,
paste in 1doJWr3Q1v2WZamAvcT2_xr6p12wNvheF403cXdYhTbTxu6GMvWkqwarn
,
and add in TelegramBotApi.
- Implement Github CI
- Reformat code to use all options of currently existing methods
- Add some tests
- Implement more Telegram Bot API methods
Method | Implemented |
---|---|
getUpdates | ❌ |
setWebhook | ✅ |
deleteWebhook | ✅ |
getMe | ❌ |
logOut | ❌ |
close | ❌ |
sendMessage | ✅ |
forwardMessage | ❌ |
copyMessage | ❌ |
sendPhoto | ✅ |
sendAudio | ✅ |
sendDocument | ✅ |
sendVideo | ✅ |
sendAnimation | ✅ |
sendVoice | ✅ |
sendVideoNote | ❌ |
sendMediaGroup | ❌ |
sendLocation | ✅ |
editMessageLiveLocation | ❌ |
stopMessageLiveLocation | ❌ |
sendVenue | ❌ |
sendContact | ❌ |
sendPoll | ❌ |
sendDice | ❌ |
sendChatAction | ❌ |
getUserProfilePhotos | ❌ |
getFile | ✅ |
banChatMember | ❌ |
unbanChatMember | ❌ |
restrictChatMember | ❌ |
promoteChatMember | ❌ |
setChatAdministratorCustomTitle | ❌ |
setChatPermissions | ❌ |
exportChatInviteLink | ❌ |
createChatInviteLink | ❌ |
editChatInviteLink | ❌ |
revokeChatInviteLink | ❌ |
setChatPhoto | ❌ |
deleteChatPhoto | ❌ |
setChatTitle | ❌ |
setChatDescription | ❌ |
pinChatMessage | ❌ |
unpinChatMessage | ❌ |
unpinAllChatMessages | ❌ |
leaveChat | ❌ |
getChat | ✅ |
getChatAdministrators | ❌ |
getChatMemberCount | ❌ |
getChatMember | ❌ |
setChatStickerSet | ❌ |
deleteChatStickerSet | ❌ |
answerCallbackQuery | ❌ |
setMyCommands | ❌ |
deleteMyCommands | ❌ |
getMyCommands | ❌ |
setMyCommands | ❌ |
editMessageText | ❌ |
editMessageCaption | ❌ |
editMessageMedia | ❌ |
editMessageReplyMarkup | ❌ |
stopPoll | ❌ |
deleteMessage | ❌ |
sendSticker | ❌ |
getStickerSet | ❌ |
uploadStickerFile | ❌ |
createNewStickerSet | ❌ |
addStickerToSet | ❌ |
setStickerPositionInSet | ❌ |
setStickerSetThumb | ❌ |
answerInlineQuery | ✅ |
sendInvoice | ❌ |
answerShippingQuery | ❌ |
answerPreCheckoutQuery | ❌ |
setPassportDataErrors | ❌ |
sendGame | ❌ |
setGameScore | ❌ |
getGameHighScores | ❌ |
All methods can be checked on this link.