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.

 Method schema is available as of layer 96. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
user_initiative 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 phoneCallDiscarded.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.

Result

Updates

Only users can use this method

Possible errors

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

Related pages

phoneCallDiscarded

Indicates a discarded phone call, see here » for more info on the full flow.

Phone calls

Telegram supports end-to-end-encrypted one-to-one voice and video calls.