Returns messages by their identifiers.
This method requires the following permissions: messages:read.
Parameters
message_ids
string
Comma-separated list of up to 200 message identifiers.
extended
boolean
Whether to return information about users related to these messages.
By default false.
fields
string
Comma-separated list of user profile fields to be returned.
Result
If extended is false, an array of messages.
If extended is true, an object with items containing an array of messages and profiles containing an array of user objects.