It's version 0.6 I add users DB
This commit is contained in:
@@ -20,7 +20,7 @@ def register_handlers(dp: Dispatcher, state: BotState, bot: Bot):
|
||||
poll_msg = await bot.send_poll(
|
||||
chat_id=chat_id,
|
||||
question="Кто опоздает?",
|
||||
options=["Я", "Я очень сильно опоздаю", "Я пиздец как опоздаю", "Наверное"],
|
||||
options=["Я", "Я очень сильно опоздаю", "Я пиздец как опоздаю", "Наверное", "Не опоздаю"],
|
||||
is_anonymous=False,
|
||||
allows_multiple_answers=False,
|
||||
)
|
||||
@@ -57,7 +57,7 @@ def register_handlers(dp: Dispatcher, state: BotState, bot: Bot):
|
||||
save_message(msg.chat.id, msg.message_id)
|
||||
elif option_ids and option_ids[0] == 2:
|
||||
msg = await bot.send_message(
|
||||
chat_id=6394047531, text=f"{username} Пиздец опоздаеты"
|
||||
chat_id=6394047531, text=f"{username} Пиздец опоздает"
|
||||
)
|
||||
save_message(msg.chat.id, msg.message_id)
|
||||
elif option_ids[0] == 3:
|
||||
@@ -65,6 +65,11 @@ def register_handlers(dp: Dispatcher, state: BotState, bot: Bot):
|
||||
chat_id=6394047531, text=f"{username} возможно опоздает"
|
||||
)
|
||||
save_message(msg.chat.id, msg.message_id)
|
||||
elif option_ids[0] == 4:
|
||||
msg = await bot.send_message(
|
||||
chat_id=6394047531, text=f"{username} возможно опоздает"
|
||||
)
|
||||
save_message(msg.chat.id, msg.message_id)
|
||||
elif not option_ids:
|
||||
msg = await bot.send_message(
|
||||
chat_id=6394047531, text=f"{username} Отменил свой голос"
|
||||
|
||||
Reference in New Issue
Block a user