예제 #1
0
def start(bot, update):
    database = DBHandler()
    database.add_id(update.message.chat_id)
    logger.info("Connected to bot: %d" % update.message.chat_id)
    bot.send_message(chat_id=update.message.chat_id, text="Hello")
    bot.send_message(chat_id=update.message.chat_id,
                     text=database.get_latest_post()[0])