Answer the question
In order to leave comments, you need to log in
Why does an error occur while working with the VK API when using the reply_to argument in the messages.send method?
It is necessary to reply to the previous message from the conversation on behalf of the bot, when using
the reply_to argument, an error occurs:
vk_api.exceptions.ApiError: [100] One of the parameters specified was missing or invalid: cannot reply this message
but the message does not forward (does not attach)
I get the message Id from the "conversation_message_id" field,
here is the code of the message sending method itself:
def write_msg(session,user_id, message,replyId): #Write message to user
rand=random.randint(-9223372036854775807,9223372036854775807)
session.method('messages.send', {'peer_id': user_id,'random_id':rand ,'message': str(message),"reply_to":int(replyId)})
Answer the question
In order to leave comments, you need to log in
When using forward_messages, the bot does not give errors, but the message does not forward (does not attach)
I get the message Id from the "conversation_message_id" field
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question