Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. def ls(bot, update, args):
  2. chat = update.message.chat_id
  3. arg = ‘ ‘.join(x for x in args)
  4. result = run_command(«/usr/bin/php7.2 /home/***/bot/test.php «+arg)
  5. bot.sendMessage(chat_id=chat, text=textoutput)
  6.  
  7. ls_handler = CommandHandler(‘ls’, ls, pass_args=True)
  8. dispatcher.add_handler(ls_handler)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement