mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Update API
This commit is contained in:
@@ -640,6 +640,7 @@ public extension Api {
|
||||
case channelAdminLogEventActionSendMessage(message: Api.Message)
|
||||
case channelAdminLogEventActionStartGroupCall(call: Api.InputGroupCall)
|
||||
case channelAdminLogEventActionStopPoll(message: Api.Message)
|
||||
case channelAdminLogEventActionToggleAntiSpam(newValue: Api.Bool)
|
||||
case channelAdminLogEventActionToggleForum(newValue: Api.Bool)
|
||||
case channelAdminLogEventActionToggleGroupCallSetting(joinMuted: Api.Bool)
|
||||
case channelAdminLogEventActionToggleInvites(newValue: Api.Bool)
|
||||
@@ -882,6 +883,12 @@ public extension Api {
|
||||
}
|
||||
message.serialize(buffer, true)
|
||||
break
|
||||
case .channelAdminLogEventActionToggleAntiSpam(let newValue):
|
||||
if boxed {
|
||||
buffer.appendInt32(1693675004)
|
||||
}
|
||||
newValue.serialize(buffer, true)
|
||||
break
|
||||
case .channelAdminLogEventActionToggleForum(let newValue):
|
||||
if boxed {
|
||||
buffer.appendInt32(46949251)
|
||||
@@ -1004,6 +1011,8 @@ public extension Api {
|
||||
return ("channelAdminLogEventActionStartGroupCall", [("call", String(describing: call))])
|
||||
case .channelAdminLogEventActionStopPoll(let message):
|
||||
return ("channelAdminLogEventActionStopPoll", [("message", String(describing: message))])
|
||||
case .channelAdminLogEventActionToggleAntiSpam(let newValue):
|
||||
return ("channelAdminLogEventActionToggleAntiSpam", [("newValue", String(describing: newValue))])
|
||||
case .channelAdminLogEventActionToggleForum(let newValue):
|
||||
return ("channelAdminLogEventActionToggleForum", [("newValue", String(describing: newValue))])
|
||||
case .channelAdminLogEventActionToggleGroupCallSetting(let joinMuted):
|
||||
@@ -1516,6 +1525,19 @@ public extension Api {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleAntiSpam(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
if let signature = reader.readInt32() {
|
||||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleAntiSpam(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleForum(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
if let signature = reader.readInt32() {
|
||||
|
||||
Reference in New Issue
Block a user