Skip to content

Instantly share code, notes, and snippets.

@slapglif
Created August 30, 2018 19:30
Show Gist options
  • Save slapglif/9c7bc35f0aacd278ab206a71c95870a0 to your computer and use it in GitHub Desktop.
Save slapglif/9c7bc35f0aacd278ab206a71c95870a0 to your computer and use it in GitHub Desktop.
def start(bot, update):
bots.append(bot)
updates.append(update)
update.message.reply_text(
"Hi. I'm IcarusBot. I'm waiting for your input!")
return SIGNALS
def cancel(bot, update):
user = update.message.from_user
update.message.reply_text('Bye! I hope we can talk again some day.')
return ConversationHandler.END
def error(bot, update, error):
"""Log Errors caused by Updates."""
# print('Update "%s" caused error "%s"', update, error)
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment