set_call_rating()¶
- async Client.set_call_rating()¶
Send quality rating and feedback for a finished phone call.
Usable by Users Bots- Parameters:
call_id (
int) – The unique phone call ID.access_hash (
int) – The access hash of the phone call.rating (
int) – Call rating from 1 to 5 stars.comment (
str, optional) – Comment or problem description. Defaults to empty string.user_initiative (
bool, optional) – Pass True if the rating is initiated by the user rather than requested by Telegram.
- Returns:
Updates– Updates resulting from the rating submission.
Example
await app.set_call_rating(call_id=123, access_hash=456, rating=5, comment="Great call quality!")