示例#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)