MessageActionPhoneCall

class pyrogram.raw.types.MessageActionPhoneCall

A phone call

Constructor of MessageAction.

Details:
  • Layer: 223

  • ID: 80E11A7F

Parameters:
  • call_id (int 64-bit) – Call ID

  • video (bool, optional) – Is this a video call?

  • reason (PhoneCallDiscardReason, optional) – If the call has ended, the reason why it ended

  • duration (int 32-bit, optional) – Duration of the call in seconds

TL Schema

messageActionPhoneCall#80e11a7f
flags:#
video:flags.2?true
call_id:long
reason:flags.0?PhoneCallDiscardReason
duration:flags.1?int

= MessageAction

Parameter Tree

MessageActionPhoneCall
├── videotrue (optional)
├── call_idlong
├── reasonPhoneCallDiscardReason (optional)
│ └── slugstring
└── durationint (optional)

Example

MessageActionPhoneCall(
    call_id=0,
)