import telegram.ext


updater = telegram.ext.Updater("5899329902:AAG8HmcuVnQthEFGpeCHAwIBx3FJPqxgWIU", use_context=True)
dispatcher = updater.disptacher

def start(update, context):
update.message.reply_text("Hello, This is sasta bot here 2222")

def links(update, context):
update.message.reply_text(
"""
/amazon -> For creating amazon links
/flipkart -> For creating flipkart links
""")

def amazon(update, context):
update.message.reply_text("Hello, Amazon ki link bnani he")

def flipkart(update, context):
update.message.reply_text("Hello, Flipkart ki banani he")

dispatcher.add_handler(telegram.ext.CommandHandler('start', start))
dispatcher.add_handler(telegram.ext.CommandHandler('amazon', amazon))
dispatcher.add_handler(telegram.ext.CommandHandler('flipkart', flipkart))

updater.start_polling()
updater.idle

0 comments:

Post a Comment

 
Top