Compare commits
4 Commits
9990e18982
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| e970eecb24 | |||
| 3a19bdfdd5 | |||
| 4b261543ed | |||
| 243b9e8c9c |
4
bot.py
4
bot.py
@@ -64,7 +64,7 @@ class Core(TasksHandlerMixin):
|
|||||||
self.send_message('🤖 Поиски собеседника продолжаются')
|
self.send_message('🤖 Поиски собеседника продолжаются')
|
||||||
|
|
||||||
def send_message(self, text, chat_id=None, reply_markup=None, remove_keyboard=True):
|
def send_message(self, text, chat_id=None, reply_markup=None, remove_keyboard=True):
|
||||||
if text is None:
|
if not text:
|
||||||
return
|
return
|
||||||
if reply_markup is None and remove_keyboard:
|
if reply_markup is None and remove_keyboard:
|
||||||
reply_markup = ReplyKeyboardRemove()
|
reply_markup = ReplyKeyboardRemove()
|
||||||
@@ -121,7 +121,7 @@ class Core(TasksHandlerMixin):
|
|||||||
if self.message.video_note:
|
if self.message.video_note:
|
||||||
self.send(chat_to_send, 'send_video_note', data=self.message.video_note.file_id)
|
self.send(chat_to_send, 'send_video_note', data=self.message.video_note.file_id)
|
||||||
if self.message.animation:
|
if self.message.animation:
|
||||||
self.send(chat_to_send, 'send_animation', animation=self.message.animation.file_id)
|
self.send(chat_to_send, 'send_animation', data=self.message.animation.file_id)
|
||||||
self.send_message(self.message_text, chat_to_send)
|
self.send_message(self.message_text, chat_to_send)
|
||||||
|
|
||||||
def start_new_dialog(self, chat_ids):
|
def start_new_dialog(self, chat_ids):
|
||||||
|
|||||||
Reference in New Issue
Block a user