This Telegram bot comes with ABSOLUTELY NO WARRANTY.
-
First define your token at the first line of
token.txtfile. -
Create a virtualenv at
envdir, install deps and execute repl or bot:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./bot # use ./repl to talk at @uapda channel- How to execute this code?
- Telepot:
> pip install telepot - Create your own Telegram bot: https://core.telegram.org/bots#botfather
- Set bot's
privacy modetodisabled: https://core.telegram.org/bots#privacy-mode - Get a Telegram Bot API Token: https://core.telegram.org/bots/api#authorizing-your-bot
- Add your bot to the desired group(s)
- Lastly:
> python bot.py YOUR_TELEGRAM_BOT_API_TOKEN
- Telepot: