mirror of
https://gitlab.com/MisterBiggs/multi-bot-tutorial.git
synced 2025-08-05 13:01:23 +00:00
made directory structure and functions
This commit is contained in:
0
telegram/requirements.txt
Normal file
0
telegram/requirements.txt
Normal file
14
telegram/telegram.py
Normal file
14
telegram/telegram.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import telegram
|
||||
from telegram.ext import Updater, CommandHandler
|
||||
|
||||
|
||||
def hello(bot, update):
|
||||
update.message.reply_text("Hello {}".format(update.message.from_user.first_name))
|
||||
|
||||
|
||||
updater = Updater("YOUR TOKEN HERE")
|
||||
|
||||
updater.dispatcher.add_handler(CommandHandler("hello", hello))
|
||||
|
||||
updater.start_polling()
|
||||
updater.idle()
|
Reference in New Issue
Block a user