Пример #1
0
 def run_query(self, message: Message, father: BotFather):
     father.send_message(chat_id=message.chat.id,
                         text=LyricBot.get_lyric(
                             message.text.split(',')[0],
                             message.text.split(',')[1]),
                         reply_to_message_id=message.message_id,
                         disable_web_page_preview=True)
Пример #2
0
 def run_query(self, message: Message, father: BotFather):
     father.send_message(chat_id=message.chat.id,
                         text=GoogleBot.search_google(message.text),
                         reply_to_message_id=message.message_id)
Пример #3
0
 def run_query(self, message: Message, father: BotFather):
     father.send_message(text=str(PythonBot.interpreter(message.text)),
                         chat_id=message.chat.id,
                         reply_to_message_id=message.message_id)
Пример #4
0
 def run_query(self, message: Message, father: BotFather):
     father.send_message(chat_id=message.chat.id,
                         text=LyricBot.get_lyric(message.text.split(',')[0], message.text.split(',')[1]),
                         reply_to_message_id=message.message_id,
                         disable_web_page_preview=True)
Пример #5
0
 def run_query(self, message: Message, father: BotFather):
     father.send_chat_action(message.chat.id, 'upload_video')
     for (path, name) in self.youtube_download(message.text):
         father.send_video(video=path, chat_id=message.chat.id,
                           caption=name)
         father.send_chat_action(message.chat.id, 'upload_video')
Пример #6
0
 def run_query(self, message: Message, father: BotFather):
     father.send_message(
         chat_id=message.chat.id, text=GoogleBot.search_google(message.text), reply_to_message_id=message.message_id
     )
Пример #7
0
 def run_query(self, message: Message, father: BotFather):
     father.send_message(text=str(PythonBot.interpreter(message.text)), chat_id=message.chat.id,
                         reply_to_message_id=message.message_id)