tweepbot/bot.py

13 lines
304 B
Python
Raw Normal View History

2017-02-07 21:36:31 +00:00
#!/usr/bin/env python3
2017-02-07 21:54:22 +00:00
import logging, telegram.ext
2017-02-07 21:36:31 +00:00
2017-02-07 21:54:22 +00:00
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()