Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ls(bot, update, args):
- chat = update.message.chat_id
- arg = ‘ ‘.join(x for x in args)
- result = run_command(«/usr/bin/php7.2 /home/***/bot/test.php «+arg)
- bot.sendMessage(chat_id=chat, text=textoutput)
- ls_handler = CommandHandler(‘ls’, ls, pass_args=True)
- dispatcher.add_handler(ls_handler)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement