T
T
tyfh502021-06-20 21:39:35
Python
tyfh50, 2021-06-20 21:39:35

What is the peer_id on the bot side?

Greetings.
Why, when using peer_id in any method, with this value, writes None in the response.
For example, in messages.getConversationsById I specify the desired peer_id. Answer: None

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RINAMI, 2021-08-04
@RINAMI

Good afternoon, your peer_id is different from the peer_id of the bot, if the conversation you created has peer_id - 2000000000 + your id, the bot will have 2000000000 + conversation on the account, for example, if this is his first conversation, then peer_id is 2000000001 and so on.
PS if you want, for example, to send a message from the bot to the conversation, specify the chat_id: bot ID

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question