Layer 227
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

Gogram 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.