pro-bot
🤖
Pro Bot
A Telegram Bot to Play Around With The Community Telegram Channels
Introduction
CopyRight 2022 TechProber. All rights reserved.
Maintainer: Kevin Yu (@yqlbu)
This repo serves to provide the end-users with a way to interact with community telegram channels. Feel free to contribute.
Pre-commit Hooks
This repo uses the pre-commit framework to set up hooks. To use it, run the following commands:
# Install with pip
pip install pre-commit
# Install with Homebrew
brew install pre-commit
# Install pre-commit under root directory
pre-commit install
Community
- Hikariai_AI Telegram Group
- unRAID Telegram Group
- TechProber Telegram Group
- TechProber Discord Channel
Contributors
Special thanks go to all contributors . If you would like to contribute, please see the instructions.
Pro Bot is inspired and introduced in 2022. Currently, it is maintained by Kevin Yu (@yqlbu)
Reference
- Telegram Bot API
- Sending a message to a Telegram channel the easy way
- Can a Telegram bot read messages of channel
- https://stackoverflow.com/questions/52765833/why-i-cant-send-sticker-by-its-id
- Telegram, getting file_id for existing sticker
- How to set up push notifications in your Telegram bot
Development Notes
Sample API Call
Send Text
POST https://api.telegram.org/bot<token>/sendMessage?chat_id=<id>&text=<text_string>
curl -X POST https://api.telegram.org/bot<token>/sendMessage?chat_id=<id>&text=<text_string>
Send Sticker
POST https://api.telegram.org/bot<token>/sendSticker?chat_id=<id>&sticker=<sticker_id>
curl -X POST https://api.telegram.org/bot<token>/sendSticker?chat_id=<id>&sticker=<sticker_id>
Get Update
GET https://api.telegram.org/bot{bot_token}/getUpdates
curl -X GET https://api.telegram.org/bot{bot_token}/getUpdates