telegram api method · layer 229 · #b2cbc1c0

phone.discardCall

usable by users

Refuse or end running call

definition

phone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
videoflags.0?trueWhether this is a video call
peerInputPhoneCallThe phone call
durationintCall duration
reasonPhoneCallDiscardReasonWhy was the call discarded
connection_idlongPreferred libtgvoip relay ID

returns

Updates

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CALL_ALREADY_ACCEPTEDThe call was already accepted.
400CALL_OCCUPY_FAILEDThe call failed because the user is already making another call.
400CALL_PEER_INVALIDThe provided call peer object is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
500CALL_OCCUPY_FAILEDThe call failed because the user is already making another call.

history

present in layers 62–229 · constructor id changed 2×

idlayers
#5dfbcddc62
#78d413a665–97
#b2cbc1c098–229