Layer 227
PhoneSetCallRating
Rate a call, returns info about the rating message sent to the official Vo IP bot, see here for more info on the full flow.
method
Users
phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| UserInitiative | flags .0? true | Whether the user decided on their own initiative to rate the call, must NOT be set if rating was requested by the server with phone Call Discarded. need_rating. |
| Peer | InputPhoneCall | The call to rate |
| Rating | int | Rating in 1-5 stars |
| Comment | string | An additional comment with problem hashtags, see here for more info on the full flow. |
Returns
UpdatesGogram Example
// PhoneSetCallRating - positional arguments result, err := client.PhoneSetCallRating(nil, &tg.InputPhoneCall{}, 42, "Hello, World!") if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CALL_PEER_INVALID | The provided call peer object is invalid. |