Compare commits

..

9 Commits

4
bot.py
View File

@@ -64,7 +64,7 @@ class Core(TasksHandlerMixin):
self.send_message('🤖 Поиски собеседника продолжаются')
def send_message(self, text, chat_id=None, reply_markup=None, remove_keyboard=True):
if not text:
if text is None:
return
if reply_markup is None and remove_keyboard:
reply_markup = ReplyKeyboardRemove()
@@ -121,7 +121,7 @@ class Core(TasksHandlerMixin):
if self.message.video_note:
self.send(chat_to_send, 'send_video_note', data=self.message.video_note.file_id)
if self.message.animation:
self.send(chat_to_send, 'send_animation', data=self.message.animation.file_id)
self.send(chat_to_send, 'send_animation', animation=self.message.animation.file_id)
self.send_message(self.message_text, chat_to_send)
def start_new_dialog(self, chat_ids):