Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- updater = Updater(TOKEN,use_context=True)
- ds = updater.dispatcher
- m = MessageHandler(Filters.regex('^(1|2|3)$'),mhand)
- c = CommandHandler("good",gooder)
- ds.add_handler(c)
- ds.add_handler(m)
- updater.start_polling()
- updater.idle()
- def gooder(update,context):
- update.message.reply_text("hello")
- def mhand(update,context):
- update.message.reply_text("yes u did it")
- print(update.effective_chat.id)
- print("passed id")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement