Skip to main content

messages.getPeerDialogs

Get dialog info of specified peers

func (c *Client) MessagesGetPeerDialogs(ctx context.Context, peers []InputDialogPeerClass) (*MessagesPeerDialogs, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetPeerDialogs(ctx, peers)
if err != nil {
return err
}
_ = res // *MessagesPeerDialogs
return nil
})

Parameters

NameTypeRequiredDescription
Peers[]InputDialogPeerClassyesPeers

Returns

*MessagesPeerDialogs

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
406CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400FROZEN_PARTICIPANT_MISSINGThe current account is frozen, and cannot access the specified peer.
400INPUT_PEERS_EMPTYThe specified peer array is empty.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.

References