another fixes
This commit is contained in:
@@ -152,7 +152,6 @@ class Admin:
|
||||
bot.send_message(
|
||||
message.chat.id,
|
||||
"Ваш ключ: <code>{}</code>".format(key),
|
||||
parse_mode="HTML",
|
||||
)
|
||||
except Exception as e:
|
||||
bot.send_message(message.chat.id, str(e))
|
||||
@@ -253,7 +252,6 @@ class Admin:
|
||||
bot.send_message(
|
||||
message.chat.id,
|
||||
"Отправьте <code>delete all</code> для подтверждения. \n\nВнимание, вы вряд ли хотите это делать.",
|
||||
parse_mode="HTML",
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
@@ -38,6 +38,7 @@ telebot.TeleBot.send_message = send_message_with_try_catch
|
||||
bot = telebot.TeleBot(
|
||||
config.API_TOKEN,
|
||||
colorful_logs=True,
|
||||
parse_mode="HTML",
|
||||
)
|
||||
|
||||
threading.Thread(
|
||||
|
||||
@@ -152,6 +152,7 @@ def test_question(call: types.CallbackQuery):
|
||||
text_edit,
|
||||
call.message.chat.id,
|
||||
call.message.message_id,
|
||||
parse_mode="HTML",
|
||||
) # упростить
|
||||
|
||||
if len(user.type) == 4:
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ class TestMessages:
|
||||
"question": "Когда вы оказываетесь в новой компании людей, вы, как правило:",
|
||||
"answers": [
|
||||
(
|
||||
"<u><b>Легко заводите разговоры с разными людьми.</b></u>",
|
||||
"<u><b>Легко заводите разговоры с разными людьми</b></u>.",
|
||||
"E",
|
||||
),
|
||||
(
|
||||
|
||||
+1
-1
@@ -132,7 +132,7 @@ class User:
|
||||
@staticmethod
|
||||
def start_shuffle_reg():
|
||||
users_reg.clear()
|
||||
users = [user for user in User.get_all() if len(user.type) == 4]
|
||||
users = [user for user in User.get_all() if (user.type and len(user.type) == 4)]
|
||||
|
||||
markup = types.InlineKeyboardMarkup()
|
||||
markup.add(
|
||||
|
||||
Reference in New Issue
Block a user