W
W
William Horn2019-11-22 00:17:08
System administration
William Horn, 2019-11-22 00:17:08

How to get the id of the message sent by the bot?

Good evening.
I don’t understand how to correctly get the id of the message that the bot sends. Needed to edit this post.
The vk api documentation says that the messages.send method returns the message id, but it always returns 0 to me

print(vk.method("messages.send", {"peer_id": 2000000001, "message": "test", "random_id": 0}))

In the console - 0.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2018-11-22
@POS_troi

Check whether the NetBios service is running on computers with the client installed (if Windows)

E
EvgenyCherny, 2019-11-22
@w_horn

At the moment there is no way to get the message ID in conversations (for groups), only in PM as far as I know ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question