channels.getLeftChannels
Get a list of channels/supergroups we left, requires a takeout session, see here » for more info.
func (c *Client) ChannelsGetLeftChannels(ctx context.Context, offset int) (MessagesChatsClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ChannelsGetLeftChannels(ctx, offset)
if err != nil {
return err
}
_ = res // MessagesChatsClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Offset | int | yes | Offset for pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | TAKEOUT_INVALID | The specified takeout ID is invalid. |
| 403 | TAKEOUT_REQUIRED | A takeout session needs to be initialized first, see here » for more info. |
References
- Official documentation
- Generated Go reference
- TL definition:
channels.getLeftChannels#8341ecc0