phone.discardCall

Refuse or end running call, see here » for more info on the full flow.

 Method schema is available as of layer 98. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
video flags.0?true Whether this is a video call
peer InputPhoneCall The phone call
duration int Call duration
reason PhoneCallDiscardReason Why was the call discarded
connection_id long Preferred libtgvoip relay ID

Result

Updates

Only users can use this method

Possible errors

Code Type Description
400 CALL_ALREADY_ACCEPTED The call was already accepted.
500 CALL_OCCUPY_FAILED The call failed because the user is already making another call.
400 CALL_PEER_INVALID The provided call peer object is invalid.

Related pages

Phone calls

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