R
R
Renat Ataev2019-12-09 18:44:26
Python
Renat Ataev, 2019-12-09 18:44:26

Bot VK, private messages and conversations?

How to write an algorithm if the bot was contacted with a specific command so that it sends this text to the conversation

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2019-12-09
@anerev

Just delete the command text in the message line via .replace

D
Daniel, 2019-12-10
@dadyarri

1. Remove command text from message: https://www.tutorialspoint.com/python/string_repla...
2. Send message to conversation: https://vk.com/dev/messages.send (need to use peer_id argument, which if the bot is in the same conversation will be equal to 2000000001)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question