Skip to content

Commit b993969

Browse files
committed
Add messageCall.unique_id.
1 parent 865d963 commit b993969

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

‎td/generate/scheme/td_api.tl‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4781,8 +4781,12 @@ messageChecklist list:checklist = MessageContent;
47814781
//@paid_media_caption Extended media caption; may be null if none
47824782
messageInvoice product_info:productInfo currency:string total_amount:int53 start_parameter:string is_test:Bool need_shipping_address:Bool receipt_message_id:int53 paid_media:PaidMedia paid_media_caption:formattedText = MessageContent;
47834783

4784-
//@description A message with information about an ended call @is_video True, if the call was a video call @discard_reason Reason why the call was discarded @duration Call duration, in seconds
4785-
messageCall is_video:Bool discard_reason:CallDiscardReason duration:int32 = MessageContent;
4784+
//@description A message with information about an ended call
4785+
//@unique_id Persistent unique call identifier; 0 for calls from other devices, which can't be passed as inputCallFromMessage
4786+
//@is_video True, if the call was a video call
4787+
//@discard_reason Reason why the call was discarded
4788+
//@duration Call duration, in seconds
4789+
messageCall unique_id:int64 is_video:Bool discard_reason:CallDiscardReason duration:int32 = MessageContent;
47864790

47874791
//@description A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration,
47884792
//-and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen.
@@ -6303,7 +6307,7 @@ groupCallId id:int32 = GroupCallId;
63036307
//@description A just ended call @call_id Identifier of the call
63046308
inputCallDiscarded call_id:int32 = InputCall;
63056309

6306-
//@description A call from a message of the type messageCall
6310+
//@description A call from a message of the type messageCall with non-zero messageCall.unique_id
63076311
//@chat_id Chat identifier of the message
63086312
//@message_id Message identifier
63096313
inputCallFromMessage chat_id:int53 message_id:int53 = InputCall;

‎td/telegram/MessageContent.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10391,7 +10391,8 @@ td_api::object_ptr<td_api::MessageContent> get_message_content_object(
1039110391
}
1039210392
case MessageContentType::Call: {
1039310393
const auto *m = static_cast<const MessageCall *>(content);
10394-
return make_tl_object<td_api::messageCall>(m->is_video, get_call_discard_reason_object(m->discard_reason),
10394+
return make_tl_object<td_api::messageCall>(m->call_access_hash == 0 ? static_cast<int64>(0) : m->call_id,
10395+
m->is_video, get_call_discard_reason_object(m->discard_reason),
1039510396
m->duration);
1039610397
}
1039710398
case MessageContentType::PaymentSuccessful: {

0 commit comments

Comments
 (0)