phone.DiscardCall

class pyrogram.raw.functions.phone.DiscardCall

Refuse or end running call

Details:
  • Layer: 223

  • ID: B2CBC1C0

Parameters:
  • peer (InputPhoneCall) – The phone call

  • duration (int 32-bit) – Call duration

  • reason (PhoneCallDiscardReason) – Why was the call discarded

  • connection_id (int 64-bit) – Preferred libtgvoip relay ID

  • video (bool, optional) – Whether this is a video call

Returns:

Updates

TL Schema

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

= Updates

Parameter Tree

DiscardCall
├── videotrue (optional)
├── peerInputPhoneCall
│ └── InputPhoneCall
│ ├── idlong
│ └── access_hashlong
├── durationint
├── reasonPhoneCallDiscardReason
│ └── slugstring
└── connection_idlong

Example

await app.invoke(
    DiscardCall(
        video=None,
        peer=InputPhoneCall(
            id=0,
            access_hash=0
        ),
        duration=0,
        reason=PhoneCallDiscardReasonMissed(),
        connection_id=0,
    )
)