Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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')
Exemplo n.º 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
     )
Exemplo n.º 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)