D
D
DADDDADA2021-07-17 14:52:46
Python
DADDDADA, 2021-07-17 14:52:46

How to make a VK bot send a message when adding it to a conversation?

Hello ! I have a simple bot written in python using the VKBottle library. I need to implement such a thing that when a bot is added to any conversation, it immediately sends a message.
For example:
user n invited the bot
bot: hello everyone!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WolfInChains, 2021-07-17
@DADDADADA

https://github.com/FallenAstaroth/VK-Bots/blob/mas...

S
slikkness, 2021-07-17
@slikkness

You check for the message action type, if it is "chat_invite_user" and the id is equal to the id of your group - send a message
https://vk.com/dev/objects/message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question