Layer 220
method Users
phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
UserInitiative flags.0?true Whether the user decided on their own initiative to rate the call
Peer InputPhoneCall The call to rate
Rating int Rating in 1-5 stars
Comment string An additional comment

Returns

Updates

Possible Errors

Code Type Description
400 CALL_PEER_INVALID The provided call peer object is invalid.

Gogram Example

// PhoneSetCallRating - using Params struct
result, err := client.PhoneSetCallRating(&tg.PhoneSetCallRatingParams{
    Peer: &tg.InputPhoneCall{},
    Rating: 0,
    Comment: "...",

    // Optional fields:
    // UserInitiative: true,
})
if err != nil {
    // handle error
}
// result is *tg.Updates