First test bot
This commit is contained in:
parent
46449d800a
commit
33ade5451a
1 changed files with 9 additions and 0 deletions
9
bot.py
Normal file → Executable file
9
bot.py
Normal file → Executable file
|
@ -1,3 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import logging, telegram.ext
|
||||
|
||||
updater = telegram.ext.Updater(token=setuptools.token)
|
||||
|
||||
def start(bot, update):
|
||||
bot.sendMessage(chat_id=update.message.chat_id, text="Heeeeeeey! :3")
|
||||
|
||||
updater.dispatch.add_handler(telegram.ext.CommandHandler("start", start)
|
||||
|
||||
updater.start_polling()
|
||||
|
|
Loading…
Reference in a new issue