Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manglaneso/telegram-bot-api
Telegram Bot API client library for Google Apps Script
https://github.com/manglaneso/telegram-bot-api
bots clasp google-apps-script javascript telegram telegram-bot telegram-bot-api
Last synced: 20 days ago
JSON representation
Telegram Bot API client library for Google Apps Script
- Host: GitHub
- URL: https://github.com/manglaneso/telegram-bot-api
- Owner: manglaneso
- License: mit
- Created: 2021-07-25T22:40:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T12:00:40.000Z (11 months ago)
- Last Synced: 2024-01-29T14:11:44.286Z (11 months ago)
- Topics: bots, clasp, google-apps-script, javascript, telegram, telegram-bot, telegram-bot-api
- Language: JavaScript
- Homepage:
- Size: 20.9 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-bot-api
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.
## Use
Go to Resources -> Libraries in the Script menus,
paste in `1doJWr3Q1v2WZamAvcT2_xr6p12wNvheF403cXdYhTbTxu6GMvWkqwarn`,
and add in TelegramBotApi.## TODO
- Implement Github CI
- Reformat code to use all options of currently existing methods
- Add some tests
- Implement more Telegram Bot API methods### Implemented 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](https://core.telegram.org/bots/api).