master #4

Merged
emmatveev merged 3 commits from master into dev 2025-03-29 00:23:45 +03:00
Showing only changes of commit 8761d8ff65 - Show all commits

View File

@ -53,9 +53,7 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin):
current_question = store.get(message.chat.id)
if current_question is not None:
self.send("Вот ответ на вопрос", message.chat.id)
text_split = [current_question['answer'][i:i+1000] for i in range(0, len(current_question['answer']), 1000)]
for elem in text_split:
self.send(elem, message.chat.id)
self.send(current_question['answer'], message.chat.id)
selected = randrange(len(questions))
store[message.chat.id] = selected
self.send("Следующий вопрос: " + questions[selected]['question'], message.chat.id)