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
| Name | Type | Required | Description |
|---|---|---|---|
Peers | []InputDialogPeerClass | yes | Peers |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 406 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | FROZEN_PARTICIPANT_MISSING | The current account is frozen, and cannot access the specified peer. |
| 400 | INPUT_PEERS_EMPTY | The specified peer array is empty. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getPeerDialogs#e470bcfd