S
S
Setaz2132020-02-02 15:22:45
css
Setaz213, 2020-02-02 15:22:45

How to connect longpool to VK page?

The code:

import vk_api
import requests
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType

session = requests.Session()
vk_session = vk_api.VkApi(token='токен')
vk = vk_session.get_api()
longpool = VkBotLongPoll(vk_session)
vk.messages.send(random_id=0,user_id=айди,message="OK")

This is a token from the page, but how to connect longpool if it requires a group ID?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ragtime Kitty, 2019-05-13
@testest

Appearance through the usual @keyframes and forwards
To rebuild the header, as already said, track the scroll and add a class. There are a couple of lines. What exactly are the difficulties?
Eg

M
MamaLuyba, 2019-05-13
@MamaLuyba

you track the scroll, and there you already want it, then you turn it back.

S
Sergey Kotov, 2019-05-13
@liqrizz

setTimeout offsetTop. transform:translate transition

0
0ralo, 2020-02-02
@Setaz213

import vk_api
from vk_api.longpoll import VkLongPoll, VkEventType

session = VkApi(token=token)
vk = session.get_api()
longpoll = VkLongPoll(session)

Use long pool per page, not per group

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question