Skip to content

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

Notifications You must be signed in to change notification settings

YauheniPo/py_telegram_popot_bot

Repository files navigation

py_telegram_popot_bot

Python Telegram bot

codecov

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

popot_bot

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<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

  1. 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages