МК
Size: a a a
МК
КШ
def cons(head, tail):
return [head, *tail]
FS
AS
D
@bot.callback_query_handler(func=lambda call:True)
def status(id):
status = '''SELECT status FROM users WHERE id = ?''', (id)
status = status.fetchall()[0][0]
return status
@bot.message_handler(commands=['defpack']) # Обработчик команды старт
def defpack(message):
if status(message.chat.id) == 1:
bot.send_message(message.chat.id, "ВАШ ФАЙЛ ГОТОВ!а пк", parse_mode='Markdown')
if status(message.chat.id) == 0:
bot.send_message(message.chat.id, "Вас нет в списке. Подать заявку можно прописав команду /start")
BK
This attempt to set via set-Cookie header PH1 attribute but came from a cross-site response which was not the response to a top-level navigationFS
status = (0, 1)
FS
АБ