Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmqnym/telegram-autosend-example
Display how to auto send message in telegram bot
https://github.com/mmqnym/telegram-autosend-example
bot python telegram telegram-bot
Last synced: about 4 hours ago
JSON representation
Display how to auto send message in telegram bot
- Host: GitHub
- URL: https://github.com/mmqnym/telegram-autosend-example
- Owner: mmqnym
- License: mit
- Created: 2022-07-29T19:17:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-31T09:06:41.000Z (over 2 years ago)
- Last Synced: 2024-05-16T04:24:48.932Z (6 months ago)
- Topics: bot, python, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram auto send message
> Display how to auto send message in telegram bot## How to get telegram chat_id
> First, You need to find telegram chat_id for auto send message to a group or channel.
1. Add the bot to the channel or group you want.
2. Send a message on the channel or group you choosed.
3. Enter `https://api.telegram.org//getUpdates` in your browser and you will see that the json file on the page contains the record of the message you just sent.
4. Find `id` in the `chat` block, which is the chat_id we are looking for.> Paste the chat_id to complete the auto send function.
``` python
bot.sendMessage( chat_id = , text = msg, parse_mode = 'markdown' )
```## Reference
- ##### [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot)
- ##### [schedule.py](https://schedule.readthedocs.io/en/stable/)## License
[MIT License](https://github.com/0xmimiQ/telegram_autosend/blob/main/LICENSE)