SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vk_session = vk_api.VkApi(token=_token)
  2.     longpoll = VkBotLongPoll(vk_session, group_id='190835182')
  3.     for event in longpoll.listen():
  4.         if event.type == VkBotEventType.MESSAGE_NEW:
  5.             if event.message['from_id']==40828101:
  6.                     if event.message['text'].find('🎂') != -1:
  7.                         birthdayId.append(event.message['id'])
  8.                     elif event.message['text'].find('!') !=-1:
  9.                         vk_session.method('messages.send', {"peer_id": 40828101, "forward_messages": str(birthdayId[0:len(birthdayId)]),
  10.                                             'random_id': -837356})
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
Top