Guest User

Untitled

a guest
Jan 22nd, 2020
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. birthdayId = []
  2.  
  3. def main():
  4. vk_session = vk_api.VkApi(token=_token)
  5. longpoll = VkBotLongPoll(vk_session, group_id='190835182')
  6. for event in longpoll.listen():
  7. if event.type == VkBotEventType.MESSAGE_NEW:
  8. if event.message['text'].find('🎂') != -1:
  9. birthdayId.append(event.message['id'])
  10. elif event.message['text'].find('!') !=-1:
  11. vk_session.method('messages.send', {"peer_id": 40828101, "forward_messages": str(birthdayId),
  12. 'random_id': random.randint(-2147483648, +2147483648)})
RAW Paste Data