phone.PhoneCall

class pyrogram.raw.types.phone.PhoneCall

A VoIP phone call

Constructor of PhoneCall.

Details:
  • Layer: 223

  • ID: EC82E140

Parameters:
  • phone_call (PhoneCall) – The VoIP phone call

  • users (List of User) – VoIP phone call participants

Functions:

This object can be returned by 3 functions.

phone.RequestCall

Start a telegram phone call

phone.AcceptCall

Accept incoming call

phone.ConfirmCall

Complete phone call E2E encryption key exchange »

TL Schema

phone.phoneCall#ec82e140
phone_call:PhoneCall
users:Vector<User>

= phone.PhoneCall

Parameter Tree

PhoneCall
├── phone_callPhoneCall
│ ├── PhoneCallEmpty
│ │ └── idlong
│ ├── PhoneCallWaiting
│ │ ├── videotrue (optional)
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── dateint
│ │ ├── admin_idlong
│ │ ├── participant_idlong
│ │ ├── protocolPhoneCallProtocol
│ │ │ └── PhoneCallProtocol
│ │ │ ├── udp_p2ptrue (optional)
│ │ │ ├── udp_reflectortrue (optional)
│ │ │ ├── min_layerint
│ │ │ ├── max_layerint
│ │ │ └── library_versionsVector < string >
│ │ └── receive_dateint (optional)
│ ├── PhoneCallRequested
│ │ ├── videotrue (optional)
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── dateint
│ │ ├── admin_idlong
│ │ ├── participant_idlong
│ │ ├── g_a_hashbytes
│ │ └── protocolPhoneCallProtocol
│ │ └── PhoneCallProtocol
│ │ ├── udp_p2ptrue (optional)
│ │ ├── udp_reflectortrue (optional)
│ │ ├── min_layerint
│ │ ├── max_layerint
│ │ └── library_versionsVector < string >
│ ├── PhoneCallAccepted
│ │ ├── videotrue (optional)
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── dateint
│ │ ├── admin_idlong
│ │ ├── participant_idlong
│ │ ├── g_bbytes
│ │ └── protocolPhoneCallProtocol
│ │ └── PhoneCallProtocol
│ │ ├── udp_p2ptrue (optional)
│ │ ├── udp_reflectortrue (optional)
│ │ ├── min_layerint
│ │ ├── max_layerint
│ │ └── library_versionsVector < string >
│ ├── PhoneCall
│ │ ├── p2p_allowedtrue (optional)
│ │ ├── videotrue (optional)
│ │ ├── conference_supportedtrue (optional)
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── dateint
│ │ ├── admin_idlong
│ │ ├── participant_idlong
│ │ ├── g_a_or_bbytes
│ │ ├── key_fingerprintlong
│ │ ├── protocolPhoneCallProtocol
│ │ │ └── PhoneCallProtocol
│ │ │ ├── udp_p2ptrue (optional)
│ │ │ ├── udp_reflectortrue (optional)
│ │ │ ├── min_layerint
│ │ │ ├── max_layerint
│ │ │ └── library_versionsVector < string >
│ │ ├── connectionsVector < PhoneConnection >
│ │ │ ├── PhoneConnection
│ │ │ │ ├── tcptrue (optional)
│ │ │ │ ├── idlong
│ │ │ │ ├── ipstring
│ │ │ │ ├── ipv6string
│ │ │ │ ├── portint
│ │ │ │ └── peer_tagbytes
│ │ │ └── PhoneConnectionWebrtc
│ │ │ ├── turntrue (optional)
│ │ │ ├── stuntrue (optional)
│ │ │ ├── idlong
│ │ │ ├── ipstring
│ │ │ ├── ipv6string
│ │ │ ├── portint
│ │ │ ├── usernamestring
│ │ │ └── passwordstring
│ │ ├── start_dateint
│ │ └── custom_parametersDataJSON (optional)
│ │ └── DataJSON
│ │ └── datastring
│ └── PhoneCallDiscarded
│ ├── need_ratingtrue (optional)
│ ├── need_debugtrue (optional)
│ ├── videotrue (optional)
│ ├── idlong
│ ├── reasonPhoneCallDiscardReason (optional)
│ │ ├── PhoneCallDiscardReasonBusy
│ │ └── slugstring
│ └── durationint (optional)
└── usersVector < User >
├── UserEmpty
│ └── idlong
└── User
├── is_selftrue (optional)
├── contacttrue (optional)
├── mutual_contacttrue (optional)
├── deletedtrue (optional)
├── bottrue (optional)
├── bot_chat_historytrue (optional)
├── bot_nochatstrue (optional)
├── verifiedtrue (optional)
├── restrictedtrue (optional)
├── mintrue (optional)
├── bot_inline_geotrue (optional)
├── supporttrue (optional)
├── scamtrue (optional)
├── apply_min_phototrue (optional)
├── faketrue (optional)
├── bot_attach_menutrue (optional)
├── premiumtrue (optional)
├── attach_menu_enabledtrue (optional)
├── bot_can_edittrue (optional)
├── close_friendtrue (optional)
├── stories_hiddentrue (optional)
├── stories_unavailabletrue (optional)
├── contact_require_premiumtrue (optional)
├── bot_businesstrue (optional)
├── bot_has_main_apptrue (optional)
├── bot_forum_viewtrue (optional)
├── bot_forum_can_manage_topicstrue (optional)
├── idlong
├── access_hashlong (optional)
├── first_namestring (optional)
├── last_namestring (optional)
├── usernamestring (optional)
├── phonestring (optional)
├── photoUserProfilePhoto (optional)
│ ├── UserProfilePhotoEmpty
│ └── UserProfilePhoto
│ ├── has_videotrue (optional)
│ ├── personaltrue (optional)
│ ├── photo_idlong
│ ├── stripped_thumbbytes (optional)
│ └── dc_idint
├── statusUserStatus (optional)
│ ├── UserStatusEmpty
│ ├── UserStatusOnline
│ │ └── expiresint
│ ├── UserStatusOffline
│ │ └── was_onlineint
│ ├── UserStatusRecently
│ │ └── by_metrue (optional)
│ ├── UserStatusLastWeek
│ │ └── by_metrue (optional)
│ └── UserStatusLastMonth
│ └── by_metrue (optional)
├── bot_info_versionint (optional)
├── restriction_reasonVector < RestrictionReason > (optional)
│ └── RestrictionReason
│ ├── platformstring
│ ├── reasonstring
│ └── textstring
├── bot_inline_placeholderstring (optional)
├── lang_codestring (optional)
├── emoji_statusEmojiStatus (optional)
│ ├── EmojiStatusEmpty
│ ├── EmojiStatus
│ │ ├── document_idlong
│ │ └── untilint (optional)
│ │ ├── collectible_idlong
│ │ ├── document_idlong
│ │ ├── titlestring
│ │ ├── slugstring
│ │ ├── pattern_document_idlong
│ │ ├── center_colorint
│ │ ├── edge_colorint
│ │ ├── pattern_colorint
│ │ ├── text_colorint
│ │ └── untilint (optional)
│ ├── collectible_idlong
│ └── untilint (optional)
├── usernamesVector < Username > (optional)
│ └── Username
│ ├── editabletrue (optional)
│ ├── activetrue (optional)
│ └── usernamestring
├── stories_max_idRecentStory (optional)
│ └── RecentStory
│ ├── livetrue (optional)
│ └── max_idint (optional)
├── colorPeerColor (optional)
│ ├── PeerColor
│ │ ├── colorint (optional)
│ │ └── background_emoji_idlong (optional)
│ ├── PeerColorCollectible
│ │ ├── collectible_idlong
│ │ ├── gift_emoji_idlong
│ │ ├── background_emoji_idlong
│ │ ├── accent_colorint
│ │ ├── colorsVector < int >
│ │ ├── dark_accent_colorint (optional)
│ │ └── dark_colorsVector < int > (optional)
│ └── collectible_idlong
├── profile_colorPeerColor (optional)
│ ├── PeerColor
│ │ ├── colorint (optional)
│ │ └── background_emoji_idlong (optional)
│ ├── PeerColorCollectible
│ │ ├── collectible_idlong
│ │ ├── gift_emoji_idlong
│ │ ├── background_emoji_idlong
│ │ ├── accent_colorint
│ │ ├── colorsVector < int >
│ │ ├── dark_accent_colorint (optional)
│ │ └── dark_colorsVector < int > (optional)
│ └── collectible_idlong
├── bot_active_usersint (optional)
├── bot_verification_iconlong (optional)
└── send_paid_messages_starslong (optional)

Example

PhoneCall(
    phone_call=PhoneCallEmpty(id=0),
    users=[
            UserEmpty(id=0)
        ],
)