a guest Apr 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             if text == '!toadmin':
  2.                 bot.send_message(session_api, peer_id=sender, message="{0}, напишите сообщение админу! Для отмены напишите '!отмена' ".format(user_name))
  3.                 for event in longpoll.listen():
  4.                     if event.type == VkBotEventType.MESSAGE_NEW:
  5.                         response = text
  6.                         bot.send_message(session_api, peer_id=data.conf['admin_id'], message=response)
  7.                 break
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand