Layer 227
MessagesGetPersonalChannelHistory
Fetch the message history of a user's personal channel.
method
Bots
messages.getPersonalChannelHistory#55fb0996 user_id:InputUser limit:int max_id:int min_id:int hash:long = messages.Messages;
Parameters
| Name | Type | Description |
|---|---|---|
| UserId | InputUser | The user whose personal channel history to fetch |
| Limit | int | Maximum number of results to return, see pagination |
| MaxId | int | If a positive value was transferred, the method will return only messages with IDs less than max_id |
| MinId | int | If a positive value was transferred, the method will return only messages with IDs more than min_id |
| Hash | long | Result hash |
Returns
messages.MessagesGogram Example
// MessagesGetPersonalChannelHistory - positional arguments result, err := client.MessagesGetPersonalChannelHistory(&tg.InputUserSelf{}, 42, 42, 42, int64(1234567890)) if err != nil { // handle error } // result is *tg.MessagesMessages
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |