Compare commits
9 Commits
prod
...
9990e18982
| Author | SHA1 | Date | |
|---|---|---|---|
| 9990e18982 | |||
| 1cc4e9ee2d | |||
| 2d7a04bc7f | |||
| e131826519 | |||
| 8161954db9 | |||
| 3241b25d25 | |||
| 696f1cb2ed | |||
| 93af06d985 | |||
| f74b605572 |
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 not text:
|
if text is None:
|
||||||
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', 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)
|
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