Hello!

There is a working method for working with the user, the messages.getById method works all ok.

But when I connect the community to the API , I make a request, I receive private messages, not community messages.

For communities, messages.getById not supported?

Thank you in advance!

    1 answer 1

    As the documentation says, it is possible:

    This method can be called with the community access key. Permissions required: messages.

    Or do you need to get messages from a simple account from the community?

    • Yes, I generated the community key, but I call messages.getById, specifying the message id, I get json from private messages of my profile - Alexander Ivanov
    • @AlexanderIvanov, because you are submitting your token in the request, and not the community token. The access_token parameter must be a community token (key). - neluzhin
    • But this is not true, I am passing on community access_token - Alexander Ivanov
    • Just now, just in case, I generated a new one, the same nonsense. Maybe you need to call not messages.getById? @terron - Alexander Ivanov
    • Found everything, thanks! And the truth) - Alexander Ivanov