phone.PhoneCall
- class pyrogram.raw.types.phone.PhoneCall
A VoIP phone call
Constructor of
PhoneCall.- Details:
Layer:
223ID:
EC82E140
- Parameters:
- Functions:
This object can be returned by 3 functions.
Start a telegram phone call
Accept incoming call
Complete phone call E2E encryption key exchange »
TL Schema
phone.phoneCall#ec82e140
phone_call:PhoneCall
users:Vector<User>
= phone.PhoneCall
Parameter Tree
PhoneCall
├── phone_call →
PhoneCall│ ├──
PhoneCallEmpty│ │ └── id →
long│ ├──
PhoneCallWaiting│ │ ├── video →
true (optional)│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── date →
int│ │ ├── admin_id →
long│ │ ├── participant_id →
long│ │ ├── protocol →
PhoneCallProtocol│ │ │ └──
PhoneCallProtocol│ │ │ ├── udp_p2p →
true (optional)│ │ │ ├── udp_reflector →
true (optional)│ │ │ ├── min_layer →
int│ │ │ ├── max_layer →
int│ │ │ └── library_versions →
Vector < string >│ │ └── receive_date →
int (optional)│ ├──
PhoneCallRequested│ │ ├── video →
true (optional)│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── date →
int│ │ ├── admin_id →
long│ │ ├── participant_id →
long│ │ ├── g_a_hash →
bytes│ │ └── protocol →
PhoneCallProtocol│ │ └──
PhoneCallProtocol│ │ ├── udp_p2p →
true (optional)│ │ ├── udp_reflector →
true (optional)│ │ ├── min_layer →
int│ │ ├── max_layer →
int│ │ └── library_versions →
Vector < string >│ ├──
PhoneCallAccepted│ │ ├── video →
true (optional)│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── date →
int│ │ ├── admin_id →
long│ │ ├── participant_id →
long│ │ ├── g_b →
bytes│ │ └── protocol →
PhoneCallProtocol│ │ └──
PhoneCallProtocol│ │ ├── udp_p2p →
true (optional)│ │ ├── udp_reflector →
true (optional)│ │ ├── min_layer →
int│ │ ├── max_layer →
int│ │ └── library_versions →
Vector < string >│ ├──
PhoneCall│ │ ├── p2p_allowed →
true (optional)│ │ ├── video →
true (optional)│ │ ├── conference_supported →
true (optional)│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── date →
int│ │ ├── admin_id →
long│ │ ├── participant_id →
long│ │ ├── g_a_or_b →
bytes│ │ ├── key_fingerprint →
long│ │ ├── protocol →
PhoneCallProtocol│ │ │ └──
PhoneCallProtocol│ │ │ ├── udp_p2p →
true (optional)│ │ │ ├── udp_reflector →
true (optional)│ │ │ ├── min_layer →
int│ │ │ ├── max_layer →
int│ │ │ └── library_versions →
Vector < string >│ │ ├── connections →
Vector < PhoneConnection >│ │ │ ├──
PhoneConnection│ │ │ │ ├── tcp →
true (optional)│ │ │ │ ├── id →
long│ │ │ │ ├── ip →
string│ │ │ │ ├── ipv6 →
string│ │ │ │ ├── port →
int│ │ │ │ └── peer_tag →
bytes│ │ │ └──
PhoneConnectionWebrtc│ │ │ ├── turn →
true (optional)│ │ │ ├── stun →
true (optional)│ │ │ ├── id →
long│ │ │ ├── ip →
string│ │ │ ├── ipv6 →
string│ │ │ ├── port →
int│ │ │ ├── username →
string│ │ │ └── password →
string│ │ ├── start_date →
int│ │ └── custom_parameters →
DataJSON (optional)│ │ └──
DataJSON│ │ └── data →
string│ └──
PhoneCallDiscarded│ ├── need_rating →
true (optional)│ ├── need_debug →
true (optional)│ ├── video →
true (optional)│ ├── id →
long│ ├── reason →
PhoneCallDiscardReason (optional)│ │ ├──
PhoneCallDiscardReasonMissed│ │ ├──
PhoneCallDiscardReasonDisconnect│ │ ├──
PhoneCallDiscardReasonHangup│ │ ├──
PhoneCallDiscardReasonBusy│ │ └── slug →
string│ └── duration →
int (optional)└── users →
Vector < User >├──
UserEmpty│ └── id →
long└──
User├── is_self →
true (optional)├── contact →
true (optional)├── mutual_contact →
true (optional)├── deleted →
true (optional)├── bot →
true (optional)├── bot_chat_history →
true (optional)├── bot_nochats →
true (optional)├── verified →
true (optional)├── restricted →
true (optional)├── min →
true (optional)├── bot_inline_geo →
true (optional)├── support →
true (optional)├── scam →
true (optional)├── apply_min_photo →
true (optional)├── fake →
true (optional)├── bot_attach_menu →
true (optional)├── premium →
true (optional)├── attach_menu_enabled →
true (optional)├── bot_can_edit →
true (optional)├── close_friend →
true (optional)├── stories_hidden →
true (optional)├── stories_unavailable →
true (optional)├── contact_require_premium →
true (optional)├── bot_business →
true (optional)├── bot_has_main_app →
true (optional)├── bot_forum_view →
true (optional)├── bot_forum_can_manage_topics →
true (optional)├── id →
long├── access_hash →
long (optional)├── first_name →
string (optional)├── last_name →
string (optional)├── username →
string (optional)├── phone →
string (optional)├── photo →
UserProfilePhoto (optional)│ ├──
UserProfilePhotoEmpty│ └──
UserProfilePhoto│ ├── has_video →
true (optional)│ ├── personal →
true (optional)│ ├── photo_id →
long│ ├── stripped_thumb →
bytes (optional)│ └── dc_id →
int├── status →
UserStatus (optional)│ ├──
UserStatusEmpty│ ├──
UserStatusOnline│ │ └── expires →
int│ ├──
UserStatusOffline│ │ └── was_online →
int│ ├──
UserStatusRecently│ │ └── by_me →
true (optional)│ ├──
UserStatusLastWeek│ │ └── by_me →
true (optional)│ └──
UserStatusLastMonth│ └── by_me →
true (optional)├── bot_info_version →
int (optional)├── restriction_reason →
Vector < RestrictionReason > (optional)│ └──
RestrictionReason│ ├── platform →
string│ ├── reason →
string│ └── text →
string├── bot_inline_placeholder →
string (optional)├── lang_code →
string (optional)├── emoji_status →
EmojiStatus (optional)│ ├──
EmojiStatusEmpty│ ├──
EmojiStatus│ │ ├── document_id →
long│ │ └── until →
int (optional)│ ├──
EmojiStatusCollectible│ │ ├── collectible_id →
long│ │ ├── document_id →
long│ │ ├── title →
string│ │ ├── slug →
string│ │ ├── pattern_document_id →
long│ │ ├── center_color →
int│ │ ├── edge_color →
int│ │ ├── pattern_color →
int│ │ ├── text_color →
int│ │ └── until →
int (optional)│ ├── collectible_id →
long│ └── until →
int (optional)├── usernames →
Vector < Username > (optional)│ └──
Username│ ├── editable →
true (optional)│ ├── active →
true (optional)│ └── username →
string├── stories_max_id →
RecentStory (optional)│ └──
RecentStory│ ├── live →
true (optional)│ └── max_id →
int (optional)├── color →
PeerColor (optional)│ ├──
PeerColor│ │ ├── color →
int (optional)│ │ └── background_emoji_id →
long (optional)│ ├──
PeerColorCollectible│ │ ├── collectible_id →
long│ │ ├── gift_emoji_id →
long│ │ ├── background_emoji_id →
long│ │ ├── accent_color →
int│ │ ├── colors →
Vector < int >│ │ ├── dark_accent_color →
int (optional)│ │ └── dark_colors →
Vector < int > (optional)│ └── collectible_id →
long├── profile_color →
PeerColor (optional)│ ├──
PeerColor│ │ ├── color →
int (optional)│ │ └── background_emoji_id →
long (optional)│ ├──
PeerColorCollectible│ │ ├── collectible_id →
long│ │ ├── gift_emoji_id →
long│ │ ├── background_emoji_id →
long│ │ ├── accent_color →
int│ │ ├── colors →
Vector < int >│ │ ├── dark_accent_color →
int (optional)│ │ └── dark_colors →
Vector < int > (optional)│ └── collectible_id →
long├── bot_active_users →
int (optional)├── bot_verification_icon →
long (optional)└── send_paid_messages_stars →
long (optional)Example
PhoneCall(
phone_call=PhoneCallEmpty(id=0),
users=[
UserEmpty(id=0)
],
)