You can use the following bot: https://t.me/myko_airalert_bot, or start on your machine:
- Download and install GIT (https://git-scm.com/downloads).
- Download and install Python (https://www.python.org/downloads/).
- 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
- Type in command line:
cd airalert-bot
- Install pyTelegramBotAPI with next command:
pip3 install pyTelegramBotAPI
- Install Telethon with next command:
pip3 install telethon
- Create files
secret.py
andsubscribers.txt
. Type in thesecret.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).