Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yauhenipo/py_telegram_popot_bot

Telegram bot developed in python. Bot has useful functions: parsing sites, works with API and with UI.
https://github.com/yauhenipo/py_telegram_popot_bot

bot telegram-bot telegram-bot-api

Last synced: 20 days ago
JSON representation

Telegram bot developed in python. Bot has useful functions: parsing sites, works with API and with UI.

Awesome Lists containing this project

README

        

# py_telegram_popot_bot

![Python Telegram bot](https://github.com/YauheniPo/py_telegram_popot_bot/workflows/Python%20Telegram%20bot/badge.svg)

[![codecov](https://codecov.io/gh/YauheniPo/py_telegram_popot_bot/branch/master/graph/badge.svg)](https://codecov.io/gh/YauheniPo/py_telegram_popot_bot)

Telegram Bot **@popot_bot**

Functions:

```🤖 /start - HELP - telegram bot functionals

💵 /currency - $ / € / RUR - currency data and graph

🎬 /cinema - cinema posters

⚽ /football - football calendar

📷 /instagram - save Instagram post content by link

📍 /geo - location of the nearest ATMs

📈 /virus - COVID-19 virus statistics
```

![popot_bot](https://github.com/YauheniPo/py_telegram_popot_bot/blob/master/media/ezgif.com-video-to-gif.gif)

pip install -r requirements.txt (Python 2)
pip3 install -r requirements.txt (Python 3)

python popot_bot.py

Run Telegram bot Webhook:
1) activate Webhook for bot:
https://api.telegram.org/bot/setWebhook?url=https://b17b8388.**_ngrok_**.io/
https://api.telegram.org/bot/setWebhook?url=https://.pythonanywhere.com/

delete Webhook for bot:
https://api.telegram.org/bot/deleteWebhook

2) https://www.pythonanywhere.com/user//
- Console - New Bash
- virtualenv venv --python=python3.8
- source venv/bin/activate
- clone git branch
- pip install -r py_telegram_popot_bot/requirements.txt
- Files
- Web
- new web app
- Manual
- Source code: set path_to_root_project_py_files
- Virtualenv: set path_to_venv_folder
- click to WSGI configuration file:
- import sys
path = '/home/YauheniPo/py_telegram_popot_bot'
if path not in sys.path:
sys.path.append(path)
from server import app as application
- click Save

## Stargazers over time

[![Stargazers over time](https://starchart.cc/YauheniPo/py_telegram_popot_bot.svg)](https://starchart.cc/YauheniPo/py_telegram_popot_bot)