messages.editChatParticipantRank
Edit a group participant's tag ».
func (c *Client) MessagesEditChatParticipantRank(ctx context.Context, request *MessagesEditChatParticipantRankRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesEditChatParticipantRank(ctx, &tg.MessagesEditChatParticipantRankRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The basic group/supergroup. |
Participant | InputPeerClass | yes | The participant. |
Rank | string | yes | The new tag. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
messages.editChatParticipantRank#a00f32b0