From 33ade5451a5c99d921ecc627c0ba1efefd61422c Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Tue, 7 Feb 2017 22:54:22 +0100 Subject: [PATCH] First test bot --- bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) mode change 100644 => 100755 bot.py diff --git a/bot.py b/bot.py old mode 100644 new mode 100755 index 066c83e..8ae7f4b --- a/bot.py +++ b/bot.py @@ -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()