Merge pull request 'fix' (#6) from master into dev

Reviewed-on: #6
This commit is contained in:
emmatveev 2025-03-29 00:34:30 +03:00
commit 20b8e35709

View File

@ -54,7 +54,7 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin):
if current_question is not None:
self.send("Вот ответ на вопрос", message.chat.id)
text = questions[current_question]['answer']
text_split = [text[i:i+1000] for i in range(0, len(text), 4000)]
text_split = [text[i:i+4000] for i in range(0, len(text), 4000)]
for elem in text_split:
self.send(elem, message.chat.id)
selected = randrange(len(questions))