Skip to content

Bot for Telegram on Python, that notify you about airalert in Ukraine

Notifications You must be signed in to change notification settings

adamchukua/airalert-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

airalert-bot

How to run

Windows

You can use the following bot: https://t.me/myko_airalert_bot, or start on your machine:

  1. Download and install GIT (https://git-scm.com/downloads).
  2. Download and install Python (https://www.python.org/downloads/).
  3. Open cmd.exe with admin privileges, change directory for that one (cd [path]), where you want to install the project, and clone this repository with next command: git clone https://github.com/thegradle/airalert-bot
  4. Type in command line: cd airalert-bot
  5. Install pyTelegramBotAPI with next command: pip3 install pyTelegramBotAPI
  6. Install Telethon with next command: pip3 install telethon
  7. Create files secret.py and subscribers.txt. Type in the secret.py:
api_id = 11111111
api_hash = 'ababababab'
TOKEN = '11111111:abaBAbabab'

api_id and api_hash you can get if create Telegram Application, https://core.telegram.org/api/obtaining_api_id
TOKEN is token of your bot given by @botfather (https://sendpulse.com/knowledge-base/chatbot/telegram/create-telegram-chatbot) 8. Start the bot by following code: python3 main.py 9. Authorize with your Telegram account (you must be a subscriber of https://t.me/air_alert_ua).

"ModuleNotFoundError: No module named 'telebot'" problem solved there https://stackoverflow.com/questions/58121141/how-to-fix-importerror-no-module-named-telebot

About

Bot for Telegram on Python, that notify you about airalert in Ukraine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages