Telegram Bot @popot_bot
Functions:
💵 /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
pip install -r requirements.txt (Python 2) pip3 install -r requirements.txt (Python 3)
python popot_bot.py
Run Telegram bot Webhook:
- activate Webhook for bot: https://api.telegram.org/bot<bot_token>/setWebhook?url=https://b17b8388.**_ngrok_**.io/<bot_token> https://api.telegram.org/bot<bot_token>/setWebhook?url=https://.pythonanywhere.com/<bot_token>
delete Webhook for bot: https://api.telegram.org/bot<bot_token>/deleteWebhook
- 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