mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Update API scheme on layer 217.
This commit is contained in:
@@ -76,6 +76,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
}
|
||||
return {};
|
||||
}, [&](const MTPDmessageMediaVideoStream &data) {
|
||||
const auto rtmp = data.is_rtmp_stream();
|
||||
return std::make_optional(data.vcall().match([&](
|
||||
const MTPDinputGroupCall &data) {
|
||||
auto call = (existingCall
|
||||
@@ -87,7 +88,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
data.vid().v,
|
||||
data.vaccess_hash().v,
|
||||
TimeId(),
|
||||
false, // rtmp
|
||||
rtmp,
|
||||
GroupCallOrigin::VideoStream);
|
||||
return StoryMedia{ std::move(call) };
|
||||
}, [](const auto &) {
|
||||
|
||||
@@ -98,8 +98,8 @@ bool TodoListData::applyCompletions(
|
||||
};
|
||||
for (auto &item : items) {
|
||||
const auto completion = lookup(item.id);
|
||||
const auto by = (completion && completion->vcompleted_by().v)
|
||||
? owner().user(UserId(completion->vcompleted_by().v)).get()
|
||||
const auto by = completion
|
||||
? owner().peer(peerFromMTP(completion->vcompleted_by())).get()
|
||||
: nullptr;
|
||||
const auto date = completion ? completion->vdate().v : TimeId();
|
||||
if (item.completedBy != by || item.completionDate != date) {
|
||||
|
||||
@@ -138,7 +138,7 @@ messageMediaGiveaway#aa073beb flags:# only_new_subscribers:flags.0?true winners_
|
||||
messageMediaGiveawayResults#ceaa3ea1 flags:# only_new_subscribers:flags.0?true refunded:flags.2?true channel_id:long additional_peers_count:flags.3?int launch_msg_id:int winners_count:int unclaimed_count:int winners:Vector<long> months:flags.4?int stars:flags.5?long prize_description:flags.1?string until_date:int = MessageMedia;
|
||||
messageMediaPaidMedia#a8852491 stars_amount:long extended_media:Vector<MessageExtendedMedia> = MessageMedia;
|
||||
messageMediaToDo#8a53b014 flags:# todo:TodoList completions:flags.0?Vector<TodoCompletion> = MessageMedia;
|
||||
messageMediaVideoStream#3f237b91 call:InputGroupCall = MessageMedia;
|
||||
messageMediaVideoStream#ca5cab89 flags:# rtmp_stream:flags.0?true call:InputGroupCall = MessageMedia;
|
||||
|
||||
messageActionEmpty#b6aef7b0 = MessageAction;
|
||||
messageActionChatCreate#bd47cbad title:string users:Vector<long> = MessageAction;
|
||||
@@ -557,6 +557,7 @@ inputPrivacyKeyAbout#3823cc40 = InputPrivacyKey;
|
||||
inputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey;
|
||||
inputPrivacyKeyStarGiftsAutoSave#e1732341 = InputPrivacyKey;
|
||||
inputPrivacyKeyNoPaidMessages#bdc597b4 = InputPrivacyKey;
|
||||
inputPrivacyKeySavedMusic#4dbe9226 = InputPrivacyKey;
|
||||
|
||||
privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey;
|
||||
privacyKeyChatInvite#500e6dfa = PrivacyKey;
|
||||
@@ -571,6 +572,7 @@ privacyKeyAbout#a486b761 = PrivacyKey;
|
||||
privacyKeyBirthday#2000a518 = PrivacyKey;
|
||||
privacyKeyStarGiftsAutoSave#2ca4fdf8 = PrivacyKey;
|
||||
privacyKeyNoPaidMessages#17d348d2 = PrivacyKey;
|
||||
privacyKeySavedMusic#ff7a571b = PrivacyKey;
|
||||
|
||||
inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule;
|
||||
inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule;
|
||||
@@ -2003,7 +2005,7 @@ todoItem#cba9a52f id:int title:TextWithEntities = TodoItem;
|
||||
|
||||
todoList#49b92a26 flags:# others_can_append:flags.0?true others_can_complete:flags.1?true title:TextWithEntities list:Vector<TodoItem> = TodoList;
|
||||
|
||||
todoCompletion#4cc120b7 id:int completed_by:long date:int = TodoCompletion;
|
||||
todoCompletion#221bb5e4 id:int completed_by:Peer date:int = TodoCompletion;
|
||||
|
||||
suggestedPost#e8e37e5 flags:# accepted:flags.1?true rejected:flags.2?true price:flags.3?StarsAmount schedule_date:flags.0?int = SuggestedPost;
|
||||
|
||||
@@ -2791,7 +2793,7 @@ stories.reorderAlbums#8535fbd9 peer:InputPeer order:Vector<int> = Bool;
|
||||
stories.deleteAlbum#8d3456d0 peer:InputPeer album_id:int = Bool;
|
||||
stories.getAlbums#25b3eac7 peer:InputPeer hash:long = stories.Albums;
|
||||
stories.getAlbumStories#ac806d61 peer:InputPeer album_id:int offset:int limit:int = stories.Stories;
|
||||
stories.startLive#b2db821d flags:# pinned:flags.2?true noforwards:flags.4?true rtmp_stream:flags.5?true peer:InputPeer caption:flags.0?string entities:flags.1?Vector<MessageEntity> privacy_rules:Vector<InputPrivacyRule> random_id:long = Updates;
|
||||
stories.startLive#d069ccde flags:# pinned:flags.2?true noforwards:flags.4?true rtmp_stream:flags.5?true peer:InputPeer caption:flags.0?string entities:flags.1?Vector<MessageEntity> privacy_rules:Vector<InputPrivacyRule> random_id:long messages_enabled:flags.6?Bool send_paid_messages_stars:flags.7?long = Updates;
|
||||
|
||||
premium.getBoostsList#60f67660 flags:# gifts:flags.0?true peer:InputPeer offset:string limit:int = premium.BoostsList;
|
||||
premium.getMyBoosts#be77b4a = premium.MyBoosts;
|
||||
|
||||
Reference in New Issue
Block a user