Answer the question
In order to leave comments, you need to log in
How to mark messages as read in vk python bot?
I have a bot for the community in VK
, the connection goes like this:
import vk_api
import config
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
vk_session = vk_api.VkApi(token=config.token)
longpoll = VkBotLongPoll(vk_session, config.group_id)
vk = vk_session.get_api()
vk.messages.send(peer_id=peer_id, random_id=random.getrandbits(32), message=message)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question