Layer 227
constructor
updateChatParticipantRank#bd8367b9 chat_id:long user_id:long rank:string version:int = Update;

Parameters

Name Type Description
ChatId long Basic group ID.
UserId long User ID.
Rank string The new tag.
Version int Used similarly to pts values to deduplicate/update outdated chat information as specified here.

Returns

Update

Gogram Example

// Creating UpdateChatParticipantRank constructor
obj := &tg.UpdateChatParticipantRank{
    ChatId: int64(1234567890),
    UserId: int64(1234567890),
    Rank: "Hello, World!",
    Version: 42,
}