Answer the question
In order to leave comments, you need to log in
How to respond to a user coming into a vk_api python conversation?
Hello members of the forum, how should I react to the arrival of a user in a conversation?
there is this code:
# ------- longpool ---------
for event in longpoll.listen():
if event.type == VkBotEventType.MESSAGE_NEW: # реакция на новые сообщения
Answer the question
In order to leave comments, you need to log in
if event.obj['message']['action']['type'] == 'chat_invite_user':
vk.messages.send(
peer_id=peer_id,
message='hello', #bot response
random_id=get_random_id(),
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question