Compare commits
2 Commits
a6cf5123ff
...
20b8e35709
Author | SHA1 | Date | |
---|---|---|---|
20b8e35709 | |||
![]() |
f55e1ada23 |
@ -54,7 +54,7 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin):
|
|||||||
if current_question is not None:
|
if current_question is not None:
|
||||||
self.send("Вот ответ на вопрос", message.chat.id)
|
self.send("Вот ответ на вопрос", message.chat.id)
|
||||||
text = questions[current_question]['answer']
|
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:
|
for elem in text_split:
|
||||||
self.send(elem, message.chat.id)
|
self.send(elem, message.chat.id)
|
||||||
selected = randrange(len(questions))
|
selected = randrange(len(questions))
|
||||||
|
Loading…
Reference in New Issue
Block a user