Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import vk_api
- import time
- from vk_api.longpoll import VkLongPoll, VkEventType
- from random import randint
- api = vk_api.VkApi(login=input("Login: "), password=input("Password: "), token=input("Token: "))
- peer_id = input("PeerID: ")
- def send(message):
- api.method('messages.send', {'peer_id': peer_id, 'message': message, "random_id": randint(-2147483648, 2147483648)})
- while True:
- time.sleep(1)
- send("Сейф 50")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement