An open API service indexing awesome lists of open source software.

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.

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.

[![Build status](https://ci.appveyor.com/api/projects/status/aguev1q9qr3en4dd?svg=true)](https://ci.appveyor.com/project/SeppPenner/telegrammessagebot)
[![GitHub issues](https://img.shields.io/github/issues/SeppPenner/TelegramMessageBot.svg)](https://github.com/SeppPenner/TelegramMessageBot/issues)
[![GitHub forks](https://img.shields.io/github/forks/SeppPenner/TelegramMessageBot.svg)](https://github.com/SeppPenner/TelegramMessageBot/network)
[![GitHub stars](https://img.shields.io/github/stars/SeppPenner/TelegramMessageBot.svg)](https://github.com/SeppPenner/TelegramMessageBot/stargazers)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/SeppPenner/TelegramMessageBot/master/License.txt)
[![Known Vulnerabilities](https://snyk.io/test/github/SeppPenner/TelegramMessageBot/badge.svg)](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).