https://github.com/sepppenner/telegrammessagebot
TelegramMessageBot is a project to send a message from a bot to a Telegram chat. The script was written and tested in Python 3.
https://github.com/sepppenner/telegrammessagebot
Last synced: 12 months ago
JSON representation
TelegramMessageBot is a project to send a message from a bot to a Telegram chat. The script was written and tested in Python 3.
- Host: GitHub
- URL: https://github.com/sepppenner/telegrammessagebot
- Owner: SeppPenner
- License: mit
- Created: 2018-10-04T15:57:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-09T10:55:10.000Z (about 2 years ago)
- Last Synced: 2025-04-02T00:34:37.975Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: License.txt
Awesome Lists containing this project
README
TelegramMessageBot
====================================
TelegramMessageBot is a project to send a message from a bot to a Telegram chat. The script was written and tested in Python 3.
[](https://ci.appveyor.com/project/SeppPenner/telegrammessagebot)
[](https://github.com/SeppPenner/TelegramMessageBot/issues)
[](https://github.com/SeppPenner/TelegramMessageBot/network)
[](https://github.com/SeppPenner/TelegramMessageBot/stargazers)
[](https://raw.githubusercontent.com/SeppPenner/TelegramMessageBot/master/License.txt)
[](https://snyk.io/test/github/SeppPenner/TelegramMessageBot)
# Steps to use this project:
1. Make sure to install Python and Pip correctly
2. Set the execute flags:
```bash
chmod +x run.sh
```
3. Install all required pip package dependencies with:
```bash
pip install -r requirements.txt
```
4. Adjust your settings in the [bot.py](https://github.com/SeppPenner/TelegramMessageBot/blob/master/bot.py) file (Get your bot token from https://core.telegram.org/bots):
```python
botToken = 'YourBotToken' # Change to your bot token
chatId = '12345' # Change to your chat id
```
5. Run the project using:
```bash
./run.sh
```
or with
```bash
python bot.py
```
# For more information see:
* https://medium.com/@xabaras/sending-a-message-to-a-telegram-channel-the-easy-way-eb0a0b32968
* https://core.telegram.org/bots/api
* https://core.telegram.org/bots
Change history
--------------
See the [Changelog](https://github.com/SeppPenner/TelegramMessageBot/blob/master/Changelog.md).