Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozansz/simple-telegram-bot
A simple Telegram bot example using python-telegram-bot library
https://github.com/ozansz/simple-telegram-bot
bot bots pip python python3 telegram telegram-bot
Last synced: 22 days ago
JSON representation
A simple Telegram bot example using python-telegram-bot library
- Host: GitHub
- URL: https://github.com/ozansz/simple-telegram-bot
- Owner: ozansz
- License: gpl-3.0
- Created: 2018-09-02T22:01:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T22:39:10.000Z (about 6 years ago)
- Last Synced: 2024-10-05T07:03:44.610Z (about 1 month ago)
- Topics: bot, bots, pip, python, python3, telegram, telegram-bot
- Language: Python
- Size: 19.5 KB
- Stars: 6
- Watchers: 0
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-telegram-bot
A simple Telegram bot example using python-telegram-bot library## Usage
First, clone this repo:```shell
git clone https://github.com/ozansz/simple-telegram-bot
cd simple-telegram-bot
```To run the bot, change the `"BOT TOKEN"` string in the line #57 with the token of your bot. Then just run the `deploy.sh` script. The script will install all dependencies and then start the bot.
```shell
chmod +x deploy.sh
./deploy.sh
```Or you can just run the `bot.py` script itself:
```shell
python3 bot.py
```### Debug
You can toggle extra debug messages through the `DEBUG` variable in `bot.py` file.
`DEBUG = 0` means no extra debug messages will be printed.
## Bot Commands
### /start
Starts the initial dialog with the bot.
### /help
Shows help message which contains information about bot commands.
### /video_at
Sends the user a video from Youtube's trend videos randomly.
### /haber_at
Send user a news from BBC's most read news