예제 #1
0
def stop(bot, update):
    database = DBHandler()
    database.delete_item(update.message.chat_id)
    logger.info("Disconnected from bot: %d" % update.message.chat_id)
    bot.send_message(chat_id=update.message.chat_id, text="Bye")
    bot.send_message(chat_id=update.message.chat_id, text="Stopped")