phone.DiscardCall
- class pyrogram.raw.functions.phone.DiscardCall
Refuse or end running call
- Details:
Layer:
223ID:
B2CBC1C0
- Parameters:
peer (
InputPhoneCall) – The phone callduration (
int32-bit) – Call durationreason (
PhoneCallDiscardReason) – Why was the call discardedconnection_id (
int64-bit) – Preferred libtgvoip relay IDvideo (
bool, optional) – Whether this is a video call
- Returns:
TL Schema
phone.discardCall#b2cbc1c0
flags:#
video:flags.0?true
peer:InputPhoneCall
duration:int
reason:PhoneCallDiscardReason
connection_id:long
= Updates
Parameter Tree
DiscardCall
├── video →
true (optional)├── peer →
InputPhoneCall│ └──
InputPhoneCall│ ├── id →
long│ └── access_hash →
long├── duration →
int├── reason →
PhoneCallDiscardReason│ └── slug →
string└── connection_id →
longExample
await app.invoke(
DiscardCall(
video=None,
peer=InputPhoneCall(
id=0,
access_hash=0
),
duration=0,
reason=PhoneCallDiscardReasonMissed(),
connection_id=0,
)
)