[WIP] Privacy update

This commit is contained in:
Isaac
2024-01-05 10:55:59 +04:00
parent f27952b7c2
commit fb517e49c9
68 changed files with 4913 additions and 3974 deletions

View File

@@ -569,6 +569,7 @@ public extension Api {
case updateRecentStickers
case updateSavedDialogPinned(flags: Int32, peer: Api.DialogPeer)
case updateSavedGifs
case updateSavedReactionTags
case updateSavedRingtones
case updateSentStoryReaction(peer: Api.Peer, storyId: Int32, reaction: Api.Reaction)
case updateServiceNotification(flags: Int32, inboxDate: Int32?, type: String, message: String, media: Api.MessageMedia, entities: [Api.MessageEntity])
@@ -1534,6 +1535,12 @@ public extension Api {
buffer.appendInt32(-1821035490)
}
break
case .updateSavedReactionTags:
if boxed {
buffer.appendInt32(969307186)
}
break
case .updateSavedRingtones:
if boxed {
@@ -1897,6 +1904,8 @@ public extension Api {
return ("updateSavedDialogPinned", [("flags", flags as Any), ("peer", peer as Any)])
case .updateSavedGifs:
return ("updateSavedGifs", [])
case .updateSavedReactionTags:
return ("updateSavedReactionTags", [])
case .updateSavedRingtones:
return ("updateSavedRingtones", [])
case .updateSentStoryReaction(let peer, let storyId, let reaction):
@@ -3848,6 +3857,9 @@ public extension Api {
public static func parse_updateSavedGifs(_ reader: BufferReader) -> Update? {
return Api.Update.updateSavedGifs
}
public static func parse_updateSavedReactionTags(_ reader: BufferReader) -> Update? {
return Api.Update.updateSavedReactionTags
}
public static func parse_updateSavedRingtones(_ reader: BufferReader) -> Update? {
return Api.Update.updateSavedRingtones
}