示例#1
0
def confirm1(message):
    base.drop_table()
    base.create_table()
    #const.counter = 0
    const.welcome_msg = message.text
    bot.send_message(message.chat.id,
                     "Выберите текст",
                     reply_markup=markups.edit_texts())
示例#2
0
def confirm2(message):
    base.drop_table()
    base.create_table()
    #const.counter = 0
    const.reply_msg = message.text
    bot.send_message(message.chat.id,
                     "Текст успешно изменен!",
                     reply_markup=markups.edit_texts())
示例#3
0
def admin(message):
    if (message.chat.id == const.admin_id):
        bot.send_message(message.chat.id,
                         "Выберите текст",
                         reply_markup=markups.edit_texts())