phone.setCallRating
Rate a call, returns info about the rating message sent to the official VoIP bot, see here » for more info on the full flow.
Rate a call, returns info about the rating message sent to the official VoIP bot, see [here »](https://core.telegram.org/api/calls.md#call-rating) for more info on the full flow.
| Name | Type | Required | Description |
|---|---|---|---|
user_initiative | true | No | Whether the user decided on their own initiative to rate the call, must NOT be set if rating was requested by the server with [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating`. |
peer | InputPhoneCall | Yes | The call to rate |
rating | int | Yes | Rating in `1-5` stars |
comment | string | Yes | An additional comment with problem hashtags, see [here »](https://core.telegram.org/api/calls.md#call-rating) for more info on the full flow. |
Replies
Updates
MTProto RPC
- 400 · CALL_PEER_INVALID — The provided call peer object is invalid.