#import "ApiLayer48.h" #import static const char *Api48__Serializer_Key = "Api48__Serializer"; @interface Api48__Number : NSNumber { NSNumber *_value; } @end @implementation Api48__Number - (instancetype)initWithNumber:(NSNumber *)number { self = [super init]; if (self != nil) { _value = number; } return self; } - (char)charValue { return [_value charValue]; } - (unsigned char)unsignedCharValue { return [_value unsignedCharValue]; } - (short)shortValue { return [_value shortValue]; } - (unsigned short)unsignedShortValue { return [_value unsignedShortValue]; } - (int)intValue { return [_value intValue]; } - (unsigned int)unsignedIntValue { return [_value unsignedIntValue]; } - (long)longValue { return [_value longValue]; } - (unsigned long)unsignedLongValue { return [_value unsignedLongValue]; } - (long long)longLongValue { return [_value longLongValue]; } - (unsigned long long)unsignedLongLongValue { return [_value unsignedLongLongValue]; } - (float)floatValue { return [_value floatValue]; } - (double)doubleValue { return [_value doubleValue]; } - (BOOL)boolValue { return [_value boolValue]; } - (NSInteger)integerValue { return [_value integerValue]; } - (NSUInteger)unsignedIntegerValue { return [_value unsignedIntegerValue]; } - (NSString *)stringValue { return [_value stringValue]; } - (NSComparisonResult)compare:(NSNumber *)otherNumber { return [_value compare:otherNumber]; } - (BOOL)isEqualToNumber:(NSNumber *)number { return [_value isEqualToNumber:number]; } - (NSString *)descriptionWithLocale:(id)locale { return [_value descriptionWithLocale:locale]; } - (void)getValue:(void *)value { [_value getValue:value]; } - (const char *)objCType { return [_value objCType]; } - (NSUInteger)hash { return [_value hash]; } - (instancetype)copyWithZone:(NSZone *)__unused zone { return self; } @end @interface Api48__Serializer : NSObject @property (nonatomic) int32_t constructorSignature; @property (nonatomic, copy) bool (^serializeBlock)(id object, NSMutableData *); @end @implementation Api48__Serializer - (instancetype)initWithConstructorSignature:(int32_t)constructorSignature serializeBlock:(bool (^)(id, NSMutableData *))serializeBlock { self = [super init]; if (self != nil) { self.constructorSignature = constructorSignature; self.serializeBlock = serializeBlock; } return self; } + (id)addSerializerToObject:(id)object withConstructorSignature:(int32_t)constructorSignature serializeBlock:(bool (^)(id, NSMutableData *))serializeBlock { if (object != nil) objc_setAssociatedObject(object, Api48__Serializer_Key, [[Api48__Serializer alloc] initWithConstructorSignature:constructorSignature serializeBlock:serializeBlock], OBJC_ASSOCIATION_RETAIN_NONATOMIC); return object; } + (id)addSerializerToObject:(id)object serializer:(Api48__Serializer *)serializer { if (object != nil) objc_setAssociatedObject(object, Api48__Serializer_Key, serializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); return object; } @end @interface Api48__UnboxedTypeMetaInfo : NSObject @property (nonatomic, readonly) int32_t constructorSignature; @end @implementation Api48__UnboxedTypeMetaInfo - (instancetype)initWithConstructorSignature:(int32_t)constructorSignature { self = [super init]; if (self != nil) { _constructorSignature = constructorSignature; } return self; } @end @interface Api48__PreferNSDataTypeMetaInfo : NSObject @end @implementation Api48__PreferNSDataTypeMetaInfo + (instancetype)preferNSDataTypeMetaInfo { static Api48__PreferNSDataTypeMetaInfo *instance = nil; static dispatch_once_t t; dispatch_once(&t, ^ { instance = [[Api48__PreferNSDataTypeMetaInfo alloc] init]; }); return instance; } @end @interface Api48__BoxedTypeMetaInfo : NSObject @end @implementation Api48__BoxedTypeMetaInfo + (instancetype)boxedTypeMetaInfo { static Api48__BoxedTypeMetaInfo *instance = nil; static dispatch_once_t t; dispatch_once(&t, ^ { instance = [[Api48__BoxedTypeMetaInfo alloc] init]; }); return instance; } @end @implementation Api48__Environment + (id (^)(NSData *data, NSUInteger *offset, id metaInfo))parserByConstructorSignature:(int32_t)constructorSignature { static NSMutableDictionary *parsers = nil; static dispatch_once_t t; dispatch_once(&t, ^ { parsers = [[NSMutableDictionary alloc] init]; parsers[@((int32_t)0xA8509BDA)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo) { if (*offset + 4 > data.length) return nil; int32_t value = 0; [data getBytes:(void *)&value range:NSMakeRange(*offset, 4)]; *offset += 4; return @(value); } copy]; parsers[@((int32_t)0x22076CBA)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo) { if (*offset + 8 > data.length) return nil; int64_t value = 0; [data getBytes:(void *)&value range:NSMakeRange(*offset, 8)]; *offset += 8; return @(value); } copy]; parsers[@((int32_t)0x2210C154)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo) { if (*offset + 8 > data.length) return nil; double value = 0; [data getBytes:(void *)&value range:NSMakeRange(*offset, 8)]; *offset += 8; return @(value); } copy]; parsers[@((int32_t)0xB5286E24)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo) { if (*offset + 1 > data.length) return nil; uint8_t tmp = 0; [data getBytes:(void *)&tmp range:NSMakeRange(*offset, 1)]; *offset += 1; int paddingBytes = 0; int32_t length = tmp; if (length == 254) { length = 0; if (*offset + 3 > data.length) return nil; [data getBytes:((uint8_t *)&length) + 1 range:NSMakeRange(*offset, 3)]; *offset += 3; length >>= 8; paddingBytes = (((length % 4) == 0 ? length : (length + 4 - (length % 4)))) - length; } else paddingBytes = ((((length + 1) % 4) == 0 ? (length + 1) : ((length + 1) + 4 - ((length + 1) % 4)))) - (length + 1); bool isData = [metaInfo isKindOfClass:[Api48__PreferNSDataTypeMetaInfo class]]; id object = nil; if (length > 0) { if (*offset + length > data.length) return nil; if (isData) object = [[NSData alloc] initWithBytes:((uint8_t *)data.bytes) + *offset length:length]; else object = [[NSString alloc] initWithBytes:((uint8_t *)data.bytes) + *offset length:length encoding:NSUTF8StringEncoding]; *offset += length; } *offset += paddingBytes; return object == nil ? (isData ? [NSData data] : @"") : object; } copy]; parsers[@((int32_t)0x1cb5c415)] = [^id (NSData *data, NSUInteger *offset, id metaInfo) { if (*offset + 4 > data.length) return nil; int32_t count = 0; [data getBytes:(void *)&count range:NSMakeRange(*offset, 4)]; *offset += 4; if (count < 0) return nil; bool isBoxed = false; int32_t unboxedConstructorSignature = 0; if ([metaInfo isKindOfClass:[Api48__BoxedTypeMetaInfo class]]) isBoxed = true; else if ([metaInfo isKindOfClass:[Api48__UnboxedTypeMetaInfo class]]) unboxedConstructorSignature = ((Api48__UnboxedTypeMetaInfo *)metaInfo).constructorSignature; else return nil; NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:(NSUInteger)count]; for (int32_t i = 0; i < count; i++) { int32_t itemConstructorSignature = 0; if (isBoxed) { if (*offset + 4 > data.length) return nil; [data getBytes:(void *)&itemConstructorSignature range:NSMakeRange(*offset, 4)]; *offset += 4; } else itemConstructorSignature = unboxedConstructorSignature; id item = [Api48__Environment parseObject:data offset:offset implicitSignature:itemConstructorSignature metaInfo:nil]; if (item == nil) return nil; [array addObject:item]; } return array; } copy]; parsers[@((int32_t)0xb60a24a6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_StickerSet * set = nil; int32_t set_signature = 0; [data getBytes:(void *)&set_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((set = [Api48__Environment parseObject:data offset:_offset implicitSignature:set_signature metaInfo:nil]) == nil) return nil; NSArray * packs = nil; int32_t packs_signature = 0; [data getBytes:(void *)&packs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((packs = [Api48__Environment parseObject:data offset:_offset implicitSignature:packs_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * documents = nil; int32_t documents_signature = 0; [data getBytes:(void *)&documents_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((documents = [Api48__Environment parseObject:data offset:_offset implicitSignature:documents_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_StickerSet messages_stickerSetWithSet:set packs:packs documents:documents]; } copy]; parsers[@((int32_t)0x68afa7d4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * country = nil; if ((country = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * state = nil; if ((state = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * city = nil; if ((city = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * district = nil; if ((district = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * street = nil; if ((street = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputGeoPlaceName inputGeoPlaceNameWithCountry:country state:state city:city district:district street:street]; } copy]; parsers[@((int32_t)0xe4c123d6)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputGeoPoint inputGeoPointEmpty]; } copy]; parsers[@((int32_t)0xf3b7acc9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * lat = nil; if ((lat = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; NSNumber * plong = nil; if ((plong = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; return [Api48_InputGeoPoint inputGeoPointWithLat:lat plong:plong]; } copy]; parsers[@((int32_t)0x40e9002a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Chat * chat = nil; int32_t chat_signature = 0; [data getBytes:(void *)&chat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chat = [Api48__Environment parseObject:data offset:_offset implicitSignature:chat_signature metaInfo:nil]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Chat messages_chatWithChat:chat users:users]; } copy]; parsers[@((int32_t)0x2e02a614)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_ChatParticipants * participants = nil; int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((participants = [Api48__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:nil]) == nil) return nil; Api48_Photo * chatPhoto = nil; int32_t chatPhoto_signature = 0; [data getBytes:(void *)&chatPhoto_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chatPhoto = [Api48__Environment parseObject:data offset:_offset implicitSignature:chatPhoto_signature metaInfo:nil]) == nil) return nil; Api48_PeerNotifySettings * notifySettings = nil; int32_t notifySettings_signature = 0; [data getBytes:(void *)¬ifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((notifySettings = [Api48__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil) return nil; Api48_ExportedChatInvite * exportedInvite = nil; int32_t exportedInvite_signature = 0; [data getBytes:(void *)&exportedInvite_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((exportedInvite = [Api48__Environment parseObject:data offset:_offset implicitSignature:exportedInvite_signature metaInfo:nil]) == nil) return nil; NSArray * botInfo = nil; int32_t botInfo_signature = 0; [data getBytes:(void *)&botInfo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((botInfo = [Api48__Environment parseObject:data offset:_offset implicitSignature:botInfo_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_ChatFull chatFullWithPid:pid participants:participants chatPhoto:chatPhoto notifySettings:notifySettings exportedInvite:exportedInvite botInfo:botInfo]; } copy]; parsers[@((int32_t)0x9e341ddf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * about = nil; if ((about = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * participantsCount = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((participantsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * adminsCount = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((adminsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * kickedCount = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((kickedCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * readInboxMaxId = nil; if ((readInboxMaxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadCount = nil; if ((unreadCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadImportantCount = nil; if ((unreadImportantCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Photo * chatPhoto = nil; int32_t chatPhoto_signature = 0; [data getBytes:(void *)&chatPhoto_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chatPhoto = [Api48__Environment parseObject:data offset:_offset implicitSignature:chatPhoto_signature metaInfo:nil]) == nil) return nil; Api48_PeerNotifySettings * notifySettings = nil; int32_t notifySettings_signature = 0; [data getBytes:(void *)¬ifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((notifySettings = [Api48__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil) return nil; Api48_ExportedChatInvite * exportedInvite = nil; int32_t exportedInvite_signature = 0; [data getBytes:(void *)&exportedInvite_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((exportedInvite = [Api48__Environment parseObject:data offset:_offset implicitSignature:exportedInvite_signature metaInfo:nil]) == nil) return nil; NSArray * botInfo = nil; int32_t botInfo_signature = 0; [data getBytes:(void *)&botInfo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((botInfo = [Api48__Environment parseObject:data offset:_offset implicitSignature:botInfo_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * migratedFromChatId = nil; if (flags != nil && ([flags intValue] & (1 << 4))) { if ((migratedFromChatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * migratedFromMaxId = nil; if (flags != nil && ([flags intValue] & (1 << 4))) { if ((migratedFromMaxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } return [Api48_ChatFull channelFullWithFlags:flags pid:pid about:about participantsCount:participantsCount adminsCount:adminsCount kickedCount:kickedCount readInboxMaxId:readInboxMaxId unreadCount:unreadCount unreadImportantCount:unreadImportantCount chatPhoto:chatPhoto notifySettings:notifySettings exportedInvite:exportedInvite botInfo:botInfo migratedFromChatId:migratedFromChatId migratedFromMaxId:migratedFromMaxId]; } copy]; parsers[@((int32_t)0xc8d7493e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChatParticipant chatParticipantWithUserId:userId inviterId:inviterId date:date]; } copy]; parsers[@((int32_t)0xda13538a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChatParticipant chatParticipantCreatorWithUserId:userId]; } copy]; parsers[@((int32_t)0xe2d6e436)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChatParticipant chatParticipantAdminWithUserId:userId inviterId:inviterId date:date]; } copy]; parsers[@((int32_t)0x5d75a138)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * seq = nil; if ((seq = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_updates_Difference updates_differenceEmptyWithDate:date seq:seq]; } copy]; parsers[@((int32_t)0xf49ca0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * pnewMessages = nil; int32_t pnewMessages_signature = 0; [data getBytes:(void *)&pnewMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pnewMessages = [Api48__Environment parseObject:data offset:_offset implicitSignature:pnewMessages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * pnewEncryptedMessages = nil; int32_t pnewEncryptedMessages_signature = 0; [data getBytes:(void *)&pnewEncryptedMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pnewEncryptedMessages = [Api48__Environment parseObject:data offset:_offset implicitSignature:pnewEncryptedMessages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * otherUpdates = nil; int32_t otherUpdates_signature = 0; [data getBytes:(void *)&otherUpdates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((otherUpdates = [Api48__Environment parseObject:data offset:_offset implicitSignature:otherUpdates_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; Api48_updates_State * state = nil; int32_t state_signature = 0; [data getBytes:(void *)&state_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((state = [Api48__Environment parseObject:data offset:_offset implicitSignature:state_signature metaInfo:nil]) == nil) return nil; return [Api48_updates_Difference updates_differenceWithPnewMessages:pnewMessages pnewEncryptedMessages:pnewEncryptedMessages otherUpdates:otherUpdates chats:chats users:users state:state]; } copy]; parsers[@((int32_t)0xa8fb1981)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * pnewMessages = nil; int32_t pnewMessages_signature = 0; [data getBytes:(void *)&pnewMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pnewMessages = [Api48__Environment parseObject:data offset:_offset implicitSignature:pnewMessages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * pnewEncryptedMessages = nil; int32_t pnewEncryptedMessages_signature = 0; [data getBytes:(void *)&pnewEncryptedMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pnewEncryptedMessages = [Api48__Environment parseObject:data offset:_offset implicitSignature:pnewEncryptedMessages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * otherUpdates = nil; int32_t otherUpdates_signature = 0; [data getBytes:(void *)&otherUpdates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((otherUpdates = [Api48__Environment parseObject:data offset:_offset implicitSignature:otherUpdates_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; Api48_updates_State * intermediateState = nil; int32_t intermediateState_signature = 0; [data getBytes:(void *)&intermediateState_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((intermediateState = [Api48__Environment parseObject:data offset:_offset implicitSignature:intermediateState_signature metaInfo:nil]) == nil) return nil; return [Api48_updates_Difference updates_differenceSliceWithPnewMessages:pnewMessages pnewEncryptedMessages:pnewEncryptedMessages otherUpdates:otherUpdates chats:chats users:users intermediateState:intermediateState]; } copy]; parsers[@((int32_t)0x479357c0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * method = nil; if ((method = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * params = nil; int32_t params_signature = 0; [data getBytes:(void *)¶ms_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((params = [Api48__Environment parseObject:data offset:_offset implicitSignature:params_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_SchemeMethod schemeMethodWithPid:pid method:method params:params type:type]; } copy]; parsers[@((int32_t)0xade6b004)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPhotoCrop inputPhotoCropAuto]; } copy]; parsers[@((int32_t)0xd9915325)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * cropLeft = nil; if ((cropLeft = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; NSNumber * cropTop = nil; if ((cropTop = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; NSNumber * cropWidth = nil; if ((cropWidth = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; return [Api48_InputPhotoCrop inputPhotoCropWithCropLeft:cropLeft cropTop:cropTop cropWidth:cropWidth]; } copy]; parsers[@((int32_t)0x2331b22d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_Photo photoEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0x559dc1e2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_GeoPoint * geo = nil; int32_t geo_signature = 0; [data getBytes:(void *)&geo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((geo = [Api48__Environment parseObject:data offset:_offset implicitSignature:geo_signature metaInfo:nil]) == nil) return nil; Api48_Bool * unread = nil; int32_t unread_signature = 0; [data getBytes:(void *)&unread_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((unread = [Api48__Environment parseObject:data offset:_offset implicitSignature:unread_signature metaInfo:nil]) == nil) return nil; NSArray * sizes = nil; int32_t sizes_signature = 0; [data getBytes:(void *)&sizes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sizes = [Api48__Environment parseObject:data offset:_offset implicitSignature:sizes_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Photo wallPhotoWithPid:pid accessHash:accessHash userId:userId date:date caption:caption geo:geo unread:unread sizes:sizes]; } copy]; parsers[@((int32_t)0xcded42fe)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * sizes = nil; int32_t sizes_signature = 0; [data getBytes:(void *)&sizes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sizes = [Api48__Environment parseObject:data offset:_offset implicitSignature:sizes_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Photo photoWithPid:pid accessHash:accessHash date:date sizes:sizes]; } copy]; parsers[@((int32_t)0x9ba2d800)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Chat chatEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0x2d85832c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Chat channelForbiddenWithPid:pid accessHash:accessHash title:title]; } copy]; parsers[@((int32_t)0x7328bdb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Chat chatForbiddenWithPid:pid title:title]; } copy]; parsers[@((int32_t)0xd91cdd54)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_ChatPhoto * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; NSNumber * participantsCount = nil; if ((participantsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_InputChannel * migratedTo = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { int32_t migratedTo_signature = 0; [data getBytes:(void *)&migratedTo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((migratedTo = [Api48__Environment parseObject:data offset:_offset implicitSignature:migratedTo_signature metaInfo:nil]) == nil) return nil; } return [Api48_Chat chatWithFlags:flags pid:pid title:title photo:photo participantsCount:participantsCount date:date version:version migratedTo:migratedTo]; } copy]; parsers[@((int32_t)0x4b1b7506)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * username = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((username = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } Api48_ChatPhoto * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * restrictionReason = nil; if (flags != nil && ([flags intValue] & (1 << 9))) { if ((restrictionReason = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } return [Api48_Chat channelWithFlags:flags pid:pid accessHash:accessHash title:title username:username photo:photo date:date version:version restrictionReason:restrictionReason]; } copy]; parsers[@((int32_t)0x5a686d7c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Chat * chat = nil; int32_t chat_signature = 0; [data getBytes:(void *)&chat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chat = [Api48__Environment parseObject:data offset:_offset implicitSignature:chat_signature metaInfo:nil]) == nil) return nil; return [Api48_ChatInvite chatInviteAlreadyWithChat:chat]; } copy]; parsers[@((int32_t)0x93e99b60)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_ChatInvite chatInviteWithFlags:flags title:title]; } copy]; parsers[@((int32_t)0x6262c36c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * requests = nil; int32_t requests_signature = 0; [data getBytes:(void *)&requests_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((requests = [Api48__Environment parseObject:data offset:_offset implicitSignature:requests_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Requests contacts_requestsWithRequests:requests users:users]; } copy]; parsers[@((int32_t)0x6f585b8c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * requests = nil; int32_t requests_signature = 0; [data getBytes:(void *)&requests_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((requests = [Api48__Environment parseObject:data offset:_offset implicitSignature:requests_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Requests contacts_requestsSliceWithCount:count requests:requests users:users]; } copy]; parsers[@((int32_t)0xf56ee2a8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * participants = nil; int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((participants = [Api48__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_channels_ChannelParticipants channels_channelParticipantsWithCount:count participants:participants users:users]; } copy]; parsers[@((int32_t)0x3819538f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * country = nil; if ((country = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * state = nil; if ((state = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * city = nil; if ((city = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * district = nil; if ((district = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * street = nil; if ((street = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_GeoPlaceName geoPlaceNameWithCountry:country state:state city:city district:district street:street]; } copy]; parsers[@((int32_t)0x5a89ac5b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_User * user = nil; int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((user = [Api48__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil) return nil; Api48_contacts_Link * link = nil; int32_t link_signature = 0; [data getBytes:(void *)&link_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((link = [Api48__Environment parseObject:data offset:_offset implicitSignature:link_signature metaInfo:nil]) == nil) return nil; Api48_Photo * profilePhoto = nil; int32_t profilePhoto_signature = 0; [data getBytes:(void *)&profilePhoto_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((profilePhoto = [Api48__Environment parseObject:data offset:_offset implicitSignature:profilePhoto_signature metaInfo:nil]) == nil) return nil; Api48_PeerNotifySettings * notifySettings = nil; int32_t notifySettings_signature = 0; [data getBytes:(void *)¬ifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((notifySettings = [Api48__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil) return nil; Api48_Bool * blocked = nil; int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((blocked = [Api48__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:nil]) == nil) return nil; Api48_BotInfo * botInfo = nil; int32_t botInfo_signature = 0; [data getBytes:(void *)&botInfo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((botInfo = [Api48__Environment parseObject:data offset:_offset implicitSignature:botInfo_signature metaInfo:nil]) == nil) return nil; return [Api48_UserFull userFullWithUser:user link:link profilePhoto:profilePhoto notifySettings:notifySettings blocked:blocked botInfo:botInfo]; } copy]; parsers[@((int32_t)0xf03064d8)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPeerNotifyEvents inputPeerNotifyEventsEmpty]; } copy]; parsers[@((int32_t)0xe86a2c74)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPeerNotifyEvents inputPeerNotifyEventsAll]; } copy]; parsers[@((int32_t)0xee8c1e86)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputChannel inputChannelEmpty]; } copy]; parsers[@((int32_t)0xafeb712e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputChannel inputChannelWithChannelId:channelId accessHash:accessHash]; } copy]; parsers[@((int32_t)0x5d8c6cc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * ipAddress = nil; if ((ipAddress = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * port = nil; if ((port = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_DcOption dcOptionWithFlags:flags pid:pid ipAddress:ipAddress port:port]; } copy]; parsers[@((int32_t)0xe8346f53)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * minId = nil; if ((minId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * maxId = nil; if ((maxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageGroup messageGroupWithMinId:minId maxId:maxId count:count date:date]; } copy]; parsers[@((int32_t)0xb7b72ab3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * email = nil; if ((email = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_account_PasswordSettings account_passwordSettingsWithEmail:email]; } copy]; parsers[@((int32_t)0x8987f311)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * critical = nil; int32_t critical_signature = 0; [data getBytes:(void *)&critical_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((critical = [Api48__Environment parseObject:data offset:_offset implicitSignature:critical_signature metaInfo:nil]) == nil) return nil; NSString * url = nil; if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * text = nil; if ((text = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_help_AppUpdate help_appUpdateWithPid:pid critical:critical url:url text:text]; } copy]; parsers[@((int32_t)0xc45a6536)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_help_AppUpdate help_noAppUpdate]; } copy]; parsers[@((int32_t)0xd0d9b163)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_ChannelParticipant * participant = nil; int32_t participant_signature = 0; [data getBytes:(void *)&participant_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((participant = [Api48__Environment parseObject:data offset:_offset implicitSignature:participant_signature metaInfo:nil]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_channels_ChannelParticipant channels_channelParticipantWithParticipant:participant users:users]; } copy]; parsers[@((int32_t)0x96a0c63e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_messages_Message * message = nil; int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil) return nil; Api48_contacts_Link * link = nil; int32_t link_signature = 0; [data getBytes:(void *)&link_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((link = [Api48__Environment parseObject:data offset:_offset implicitSignature:link_signature metaInfo:nil]) == nil) return nil; return [Api48_contacts_SentLink contacts_sentLinkWithMessage:message link:link]; } copy]; parsers[@((int32_t)0xb285a0c6)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantRole channelRoleEmpty]; } copy]; parsers[@((int32_t)0x9618d975)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantRole channelRoleModerator]; } copy]; parsers[@((int32_t)0x820bfe8c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantRole channelRoleEditor]; } copy]; parsers[@((int32_t)0xaa963b05)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileUnknown]; } copy]; parsers[@((int32_t)0x7efe0e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileJpeg]; } copy]; parsers[@((int32_t)0xcae1aadf)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileGif]; } copy]; parsers[@((int32_t)0xa4f63c0)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_filePng]; } copy]; parsers[@((int32_t)0xae1e508d)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_filePdf]; } copy]; parsers[@((int32_t)0x528a0677)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileMp3]; } copy]; parsers[@((int32_t)0x4b09ebbc)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileMov]; } copy]; parsers[@((int32_t)0x40bc6f52)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_filePartial]; } copy]; parsers[@((int32_t)0xb3cea0e4)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileMp4]; } copy]; parsers[@((int32_t)0x1081464c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_storage_FileType storage_fileWebp]; } copy]; parsers[@((int32_t)0x1837c364)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputEncryptedFile inputEncryptedFileEmpty]; } copy]; parsers[@((int32_t)0x64bd0306)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * parts = nil; if ((parts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * md5Checksum = nil; if ((md5Checksum = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * keyFingerprint = nil; if ((keyFingerprint = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_InputEncryptedFile inputEncryptedFileUploadedWithPid:pid parts:parts md5Checksum:md5Checksum keyFingerprint:keyFingerprint]; } copy]; parsers[@((int32_t)0x5a17b5e5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputEncryptedFile inputEncryptedFileWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0x2dc173c8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * parts = nil; if ((parts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * keyFingerprint = nil; if ((keyFingerprint = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_InputEncryptedFile inputEncryptedFileBigUploadedWithPid:pid parts:parts keyFingerprint:keyFingerprint]; } copy]; parsers[@((int32_t)0x560f8935)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_messages_SentEncryptedMessage messages_sentEncryptedMessageWithDate:date]; } copy]; parsers[@((int32_t)0x9493ff32)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_EncryptedFile * file = nil; int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((file = [Api48__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil) return nil; return [Api48_messages_SentEncryptedMessage messages_sentEncryptedFileWithDate:date file:file]; } copy]; parsers[@((int32_t)0x1f486803)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * link = nil; if ((link = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_ExportedMessageLink exportedMessageLinkWithLink:link]; } copy]; parsers[@((int32_t)0xff036af1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_User * user = nil; int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((user = [Api48__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil) return nil; return [Api48_auth_Authorization auth_authorizationWithUser:user]; } copy]; parsers[@((int32_t)0xf52ff27f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * parts = nil; if ((parts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * name = nil; if ((name = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * md5Checksum = nil; if ((md5Checksum = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputFile inputFileWithPid:pid parts:parts name:name md5Checksum:md5Checksum]; } copy]; parsers[@((int32_t)0xfa4f0bb5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * parts = nil; if ((parts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * name = nil; if ((name = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputFile inputFileBigWithPid:pid parts:parts name:name]; } copy]; parsers[@((int32_t)0x9db1bc6d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Peer peerUserWithUserId:userId]; } copy]; parsers[@((int32_t)0xbad0e5bb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Peer peerChatWithChatId:chatId]; } copy]; parsers[@((int32_t)0xbddde532)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Peer peerChannelWithChannelId:channelId]; } copy]; parsers[@((int32_t)0x9d05049)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_UserStatus userStatusEmpty]; } copy]; parsers[@((int32_t)0xedb93949)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * expires = nil; if ((expires = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_UserStatus userStatusOnlineWithExpires:expires]; } copy]; parsers[@((int32_t)0x8c703f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * wasOnline = nil; if ((wasOnline = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_UserStatus userStatusOfflineWithWasOnline:wasOnline]; } copy]; parsers[@((int32_t)0xe26f42f1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_UserStatus userStatusRecently]; } copy]; parsers[@((int32_t)0x7bf09fc)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_UserStatus userStatusLastWeek]; } copy]; parsers[@((int32_t)0x77ebc742)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_UserStatus userStatusLastMonth]; } copy]; parsers[@((int32_t)0xc1dd804a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Peer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; NSNumber * topMessage = nil; if ((topMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * readInboxMaxId = nil; if ((readInboxMaxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadCount = nil; if ((unreadCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_PeerNotifySettings * notifySettings = nil; int32_t notifySettings_signature = 0; [data getBytes:(void *)¬ifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((notifySettings = [Api48__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil) return nil; return [Api48_Dialog dialogWithPeer:peer topMessage:topMessage readInboxMaxId:readInboxMaxId unreadCount:unreadCount notifySettings:notifySettings]; } copy]; parsers[@((int32_t)0x5b8496b2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Peer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; NSNumber * topMessage = nil; if ((topMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * topImportantMessage = nil; if ((topImportantMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * readInboxMaxId = nil; if ((readInboxMaxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadCount = nil; if ((unreadCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadImportantCount = nil; if ((unreadImportantCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_PeerNotifySettings * notifySettings = nil; int32_t notifySettings_signature = 0; [data getBytes:(void *)¬ifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((notifySettings = [Api48__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Dialog dialogChannelWithPeer:peer topMessage:topMessage topImportantMessage:topImportantMessage readInboxMaxId:readInboxMaxId unreadCount:unreadCount unreadImportantCount:unreadImportantCount notifySettings:notifySettings pts:pts]; } copy]; parsers[@((int32_t)0xaf7e0394)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_help_AppChangelog help_appChangelogEmpty]; } copy]; parsers[@((int32_t)0x4668e6bd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * text = nil; if ((text = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_help_AppChangelog help_appChangelogWithText:text]; } copy]; parsers[@((int32_t)0x16bf744e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_SendMessageAction sendMessageTypingAction]; } copy]; parsers[@((int32_t)0xfd5ec8f5)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_SendMessageAction sendMessageCancelAction]; } copy]; parsers[@((int32_t)0xa187d66f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_SendMessageAction sendMessageRecordVideoAction]; } copy]; parsers[@((int32_t)0xd52f73f7)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_SendMessageAction sendMessageRecordAudioAction]; } copy]; parsers[@((int32_t)0x176f8ba1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_SendMessageAction sendMessageGeoLocationAction]; } copy]; parsers[@((int32_t)0x628cbc6f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_SendMessageAction sendMessageChooseContactAction]; } copy]; parsers[@((int32_t)0xe9763aec)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * progress = nil; if ((progress = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_SendMessageAction sendMessageUploadVideoActionWithProgress:progress]; } copy]; parsers[@((int32_t)0xf351d7ab)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * progress = nil; if ((progress = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_SendMessageAction sendMessageUploadAudioActionWithProgress:progress]; } copy]; parsers[@((int32_t)0xaa0cd9e4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * progress = nil; if ((progress = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_SendMessageAction sendMessageUploadDocumentActionWithProgress:progress]; } copy]; parsers[@((int32_t)0xd1d34a26)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * progress = nil; if ((progress = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_SendMessageAction sendMessageUploadPhotoActionWithProgress:progress]; } copy]; parsers[@((int32_t)0xbc2eab30)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PrivacyKey privacyKeyStatusTimestamp]; } copy]; parsers[@((int32_t)0x500e6dfa)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PrivacyKey privacyKeyChatInvite]; } copy]; parsers[@((int32_t)0x4e90bfd6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * randomId = nil; if ((randomId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_Update updateMessageIDWithPid:pid randomId:randomId]; } copy]; parsers[@((int32_t)0xd15de04d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateRestoreMessagesWithMessages:messages pts:pts]; } copy]; parsers[@((int32_t)0x7761198)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_ChatParticipants * participants = nil; int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((participants = [Api48__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateChatParticipantsWithParticipants:participants]; } copy]; parsers[@((int32_t)0x1bfbd823)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_UserStatus * status = nil; int32_t status_signature = 0; [data getBytes:(void *)&status_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((status = [Api48__Environment parseObject:data offset:_offset implicitSignature:status_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateUserStatusWithUserId:userId status:status]; } copy]; parsers[@((int32_t)0x2575bbb9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateContactRegisteredWithUserId:userId date:date]; } copy]; parsers[@((int32_t)0x5f83b963)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * contacts = nil; int32_t contacts_signature = 0; [data getBytes:(void *)&contacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((contacts = [Api48__Environment parseObject:data offset:_offset implicitSignature:contacts_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Update updateContactLocatedWithContacts:contacts]; } copy]; parsers[@((int32_t)0x6f690963)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateActivationWithUserId:userId]; } copy]; parsers[@((int32_t)0x8f06529a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * authKeyId = nil; if ((authKeyId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * device = nil; if ((device = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * location = nil; if ((location = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Update updateNewAuthorizationWithAuthKeyId:authKeyId date:date device:device location:location]; } copy]; parsers[@((int32_t)0xdad7490e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_PhoneCall * phoneCall = nil; int32_t phoneCall_signature = 0; [data getBytes:(void *)&phoneCall_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((phoneCall = [Api48__Environment parseObject:data offset:_offset implicitSignature:phoneCall_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updatePhoneCallRequestedWithPhoneCall:phoneCall]; } copy]; parsers[@((int32_t)0x5609ff88)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSData * aOrB = nil; if ((aOrB = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; Api48_PhoneConnection * connection = nil; int32_t connection_signature = 0; [data getBytes:(void *)&connection_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((connection = [Api48__Environment parseObject:data offset:_offset implicitSignature:connection_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updatePhoneCallConfirmedWithPid:pid aOrB:aOrB connection:connection]; } copy]; parsers[@((int32_t)0x31ae2cc2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_Update updatePhoneCallDeclinedWithPid:pid]; } copy]; parsers[@((int32_t)0x95313b0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_UserProfilePhoto * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; Api48_Bool * previous = nil; int32_t previous_signature = 0; [data getBytes:(void *)&previous_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((previous = [Api48__Environment parseObject:data offset:_offset implicitSignature:previous_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateUserPhotoWithUserId:userId date:date photo:photo previous:previous]; } copy]; parsers[@((int32_t)0x12bcbd9a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_EncryptedMessage * message = nil; int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil) return nil; NSNumber * qts = nil; if ((qts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateNewEncryptedMessageWithMessage:message qts:qts]; } copy]; parsers[@((int32_t)0x1710f156)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateEncryptedChatTypingWithChatId:chatId]; } copy]; parsers[@((int32_t)0xb4a2e88d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_EncryptedChat * chat = nil; int32_t chat_signature = 0; [data getBytes:(void *)&chat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chat = [Api48__Environment parseObject:data offset:_offset implicitSignature:chat_signature metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateEncryptionWithChat:chat date:date]; } copy]; parsers[@((int32_t)0x38fe25b7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * maxDate = nil; if ((maxDate = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateEncryptedMessagesReadWithChatId:chatId maxDate:maxDate date:date]; } copy]; parsers[@((int32_t)0x6e5f8c22)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChatParticipantDeleteWithChatId:chatId userId:userId version:version]; } copy]; parsers[@((int32_t)0x8e5e9873)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * dcOptions = nil; int32_t dcOptions_signature = 0; [data getBytes:(void *)&dcOptions_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((dcOptions = [Api48__Environment parseObject:data offset:_offset implicitSignature:dcOptions_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Update updateDcOptionsWithDcOptions:dcOptions]; } copy]; parsers[@((int32_t)0x80ece81a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * blocked = nil; int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((blocked = [Api48__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateUserBlockedWithUserId:userId blocked:blocked]; } copy]; parsers[@((int32_t)0xbec268ef)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_NotifyPeer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; Api48_PeerNotifySettings * notifySettings = nil; int32_t notifySettings_signature = 0; [data getBytes:(void *)¬ifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((notifySettings = [Api48__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateNotifySettingsWithPeer:peer notifySettings:notifySettings]; } copy]; parsers[@((int32_t)0x5c486927)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_SendMessageAction * action = nil; int32_t action_signature = 0; [data getBytes:(void *)&action_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((action = [Api48__Environment parseObject:data offset:_offset implicitSignature:action_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateUserTypingWithUserId:userId action:action]; } copy]; parsers[@((int32_t)0x9a65ea1f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_SendMessageAction * action = nil; int32_t action_signature = 0; [data getBytes:(void *)&action_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((action = [Api48__Environment parseObject:data offset:_offset implicitSignature:action_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateChatUserTypingWithChatId:chatId userId:userId action:action]; } copy]; parsers[@((int32_t)0xa7332b73)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * firstName = nil; if ((firstName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * lastName = nil; if ((lastName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * username = nil; if ((username = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Update updateUserNameWithUserId:userId firstName:firstName lastName:lastName username:username]; } copy]; parsers[@((int32_t)0x382dd3e4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_MessageMedia * media = nil; int32_t media_signature = 0; [data getBytes:(void *)&media_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((media = [Api48__Environment parseObject:data offset:_offset implicitSignature:media_signature metaInfo:nil]) == nil) return nil; Api48_Bool * popup = nil; int32_t popup_signature = 0; [data getBytes:(void *)&popup_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((popup = [Api48__Environment parseObject:data offset:_offset implicitSignature:popup_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateServiceNotificationWithType:type message:message media:media popup:popup]; } copy]; parsers[@((int32_t)0xee3b272a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_PrivacyKey * key = nil; int32_t key_signature = 0; [data getBytes:(void *)&key_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((key = [Api48__Environment parseObject:data offset:_offset implicitSignature:key_signature metaInfo:nil]) == nil) return nil; NSArray * rules = nil; int32_t rules_signature = 0; [data getBytes:(void *)&rules_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((rules = [Api48__Environment parseObject:data offset:_offset implicitSignature:rules_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Update updatePrivacyWithKey:key rules:rules]; } copy]; parsers[@((int32_t)0x12b9417b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * phone = nil; if ((phone = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Update updateUserPhoneWithUserId:userId phone:phone]; } copy]; parsers[@((int32_t)0x1f2b0afd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Message * message = nil; int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateNewMessageWithMessage:message pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x2e5ab668)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateReadMessagesWithMessages:messages pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0xa20db0e5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateDeleteMessagesWithMessages:messages pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x9961fd5c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Peer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; NSNumber * maxId = nil; if ((maxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateReadHistoryInboxWithPeer:peer maxId:maxId pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x2f2f21bf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Peer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; NSNumber * maxId = nil; if ((maxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateReadHistoryOutboxWithPeer:peer maxId:maxId pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x9d2e67c5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_ContactLink * myLink = nil; int32_t myLink_signature = 0; [data getBytes:(void *)&myLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((myLink = [Api48__Environment parseObject:data offset:_offset implicitSignature:myLink_signature metaInfo:nil]) == nil) return nil; Api48_ContactLink * foreignLink = nil; int32_t foreignLink_signature = 0; [data getBytes:(void *)&foreignLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((foreignLink = [Api48__Environment parseObject:data offset:_offset implicitSignature:foreignLink_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateContactLinkWithUserId:userId myLink:myLink foreignLink:foreignLink]; } copy]; parsers[@((int32_t)0x68c13933)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateReadMessagesContentsWithMessages:messages pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0xea4b0e5c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChatParticipantAddWithChatId:chatId userId:userId inviterId:inviterId date:date version:version]; } copy]; parsers[@((int32_t)0x7f891213)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_WebPage * webpage = nil; int32_t webpage_signature = 0; [data getBytes:(void *)&webpage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((webpage = [Api48__Environment parseObject:data offset:_offset implicitSignature:webpage_signature metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateWebPageWithWebpage:webpage pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x60946422)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChannelTooLongWithChannelId:channelId]; } copy]; parsers[@((int32_t)0xb6d45656)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChannelWithChannelId:channelId]; } copy]; parsers[@((int32_t)0xc36c1e3c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_MessageGroup * group = nil; int32_t group_signature = 0; [data getBytes:(void *)&group_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((group = [Api48__Environment parseObject:data offset:_offset implicitSignature:group_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateChannelGroupWithChannelId:channelId group:group]; } copy]; parsers[@((int32_t)0x62ba04d9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Message * message = nil; int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateNewChannelMessageWithMessage:message pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x4214f37f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * maxId = nil; if ((maxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateReadChannelInboxWithChannelId:channelId maxId:maxId]; } copy]; parsers[@((int32_t)0xc37521c9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateDeleteChannelMessagesWithChannelId:channelId messages:messages pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x98a12b4b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * views = nil; if ((views = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChannelMessageViewsWithChannelId:channelId pid:pid views:views]; } copy]; parsers[@((int32_t)0x6e947941)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * enabled = nil; int32_t enabled_signature = 0; [data getBytes:(void *)&enabled_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((enabled = [Api48__Environment parseObject:data offset:_offset implicitSignature:enabled_signature metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChatAdminsWithChatId:chatId enabled:enabled version:version]; } copy]; parsers[@((int32_t)0xb6901959)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * isAdmin = nil; int32_t isAdmin_signature = 0; [data getBytes:(void *)&isAdmin_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((isAdmin = [Api48__Environment parseObject:data offset:_offset implicitSignature:isAdmin_signature metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateChatParticipantAdminWithChatId:chatId userId:userId isAdmin:isAdmin version:version]; } copy]; parsers[@((int32_t)0x688a30aa)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_messages_StickerSet * stickerset = nil; int32_t stickerset_signature = 0; [data getBytes:(void *)&stickerset_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((stickerset = [Api48__Environment parseObject:data offset:_offset implicitSignature:stickerset_signature metaInfo:nil]) == nil) return nil; return [Api48_Update updateNewStickerSetWithStickerset:stickerset]; } copy]; parsers[@((int32_t)0xf0dfb451)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * order = nil; int32_t order_signature = 0; [data getBytes:(void *)&order_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((order = [Api48__Environment parseObject:data offset:_offset implicitSignature:order_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil) return nil; return [Api48_Update updateStickerSetsOrderWithOrder:order]; } copy]; parsers[@((int32_t)0x43ae3dec)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Update updateStickerSets]; } copy]; parsers[@((int32_t)0x9375341e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Update updateSavedGifs]; } copy]; parsers[@((int32_t)0xc01eea08)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * queryId = nil; if ((queryId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * query = nil; if ((query = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Update updateBotInlineQueryWithQueryId:queryId userId:userId query:query offset:offset]; } copy]; parsers[@((int32_t)0x1b3f4df7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Message * message = nil; int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Update updateEditChannelMessageWithMessage:message pts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0x15ebac1d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChannelParticipant channelParticipantWithUserId:userId date:date]; } copy]; parsers[@((int32_t)0xa3289a6d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChannelParticipant channelParticipantSelfWithUserId:userId inviterId:inviterId date:date]; } copy]; parsers[@((int32_t)0x91057fef)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChannelParticipant channelParticipantModeratorWithUserId:userId inviterId:inviterId date:date]; } copy]; parsers[@((int32_t)0x98192d61)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChannelParticipant channelParticipantEditorWithUserId:userId inviterId:inviterId date:date]; } copy]; parsers[@((int32_t)0x8cc5e69a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * kickedBy = nil; if ((kickedBy = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChannelParticipant channelParticipantKickedWithUserId:userId kickedBy:kickedBy date:date]; } copy]; parsers[@((int32_t)0xe3e2e1f9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChannelParticipant channelParticipantCreatorWithUserId:userId]; } copy]; parsers[@((int32_t)0x1c138d15)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * blocked = nil; int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((blocked = [Api48__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Blocked contacts_blockedWithBlocked:blocked users:users]; } copy]; parsers[@((int32_t)0x900802a1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * blocked = nil; int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((blocked = [Api48__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Blocked contacts_blockedSliceWithCount:count blocked:blocked users:users]; } copy]; parsers[@((int32_t)0xc4b9f9bb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * code = nil; if ((code = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * text = nil; if ((text = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Error errorWithCode:code text:text]; } copy]; parsers[@((int32_t)0x59aefc57)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * code = nil; if ((code = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * nDescription = nil; if ((nDescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * debug = nil; if ((debug = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * requestParams = nil; if ((requestParams = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Error richErrorWithCode:code type:type nDescription:nDescription debug:debug requestParams:requestParams]; } copy]; parsers[@((int32_t)0xe144acaf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_GeoPoint * location = nil; int32_t location_signature = 0; [data getBytes:(void *)&location_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((location = [Api48__Environment parseObject:data offset:_offset implicitSignature:location_signature metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * distance = nil; if ((distance = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ContactLocated contactLocatedWithUserId:userId location:location date:date distance:distance]; } copy]; parsers[@((int32_t)0xc1257157)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * phash = nil; if ((phash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_Bool * hidden = nil; int32_t hidden_signature = 0; [data getBytes:(void *)&hidden_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hidden = [Api48__Environment parseObject:data offset:_offset implicitSignature:hidden_signature metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * distance = nil; if ((distance = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ContactLocated contactLocatedPreviewWithPhash:phash hidden:hidden date:date distance:distance]; } copy]; parsers[@((int32_t)0xa2fa4880)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * text = nil; if ((text = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_KeyboardButton keyboardButtonWithText:text]; } copy]; parsers[@((int32_t)0xd3680c61)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_UserStatus * status = nil; int32_t status_signature = 0; [data getBytes:(void *)&status_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((status = [Api48__Environment parseObject:data offset:_offset implicitSignature:status_signature metaInfo:nil]) == nil) return nil; return [Api48_ContactStatus contactStatusWithUserId:userId status:status]; } copy]; parsers[@((int32_t)0xe17e23c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_PhotoSize photoSizeEmptyWithType:type]; } copy]; parsers[@((int32_t)0x77bfb61b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_FileLocation * location = nil; int32_t location_signature = 0; [data getBytes:(void *)&location_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((location = [Api48__Environment parseObject:data offset:_offset implicitSignature:location_signature metaInfo:nil]) == nil) return nil; NSNumber * w = nil; if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * h = nil; if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * size = nil; if ((size = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_PhotoSize photoSizeWithType:type location:location w:w h:h size:size]; } copy]; parsers[@((int32_t)0xe9a734fa)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_FileLocation * location = nil; int32_t location_signature = 0; [data getBytes:(void *)&location_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((location = [Api48__Environment parseObject:data offset:_offset implicitSignature:location_signature metaInfo:nil]) == nil) return nil; NSNumber * w = nil; if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * h = nil; if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * bytes = nil; if ((bytes = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_PhotoSize photoCachedSizeWithType:type location:location w:w h:h bytes:bytes]; } copy]; parsers[@((int32_t)0xf1749a22)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_messages_Stickers messages_stickersNotModified]; } copy]; parsers[@((int32_t)0x8a8ecd32)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * phash = nil; if ((phash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * stickers = nil; int32_t stickers_signature = 0; [data getBytes:(void *)&stickers_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((stickers = [Api48__Environment parseObject:data offset:_offset implicitSignature:stickers_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Stickers messages_stickersWithPhash:phash stickers:stickers]; } copy]; parsers[@((int32_t)0x40f5c53a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * noSuggestions = nil; int32_t noSuggestions_signature = 0; [data getBytes:(void *)&noSuggestions_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((noSuggestions = [Api48__Environment parseObject:data offset:_offset implicitSignature:noSuggestions_signature metaInfo:nil]) == nil) return nil; Api48_Bool * hideContacts = nil; int32_t hideContacts_signature = 0; [data getBytes:(void *)&hideContacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hideContacts = [Api48__Environment parseObject:data offset:_offset implicitSignature:hideContacts_signature metaInfo:nil]) == nil) return nil; Api48_Bool * hideLocated = nil; int32_t hideLocated_signature = 0; [data getBytes:(void *)&hideLocated_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hideLocated = [Api48__Environment parseObject:data offset:_offset implicitSignature:hideLocated_signature metaInfo:nil]) == nil) return nil; Api48_Bool * hideLastVisit = nil; int32_t hideLastVisit_signature = 0; [data getBytes:(void *)&hideLastVisit_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hideLastVisit = [Api48__Environment parseObject:data offset:_offset implicitSignature:hideLastVisit_signature metaInfo:nil]) == nil) return nil; return [Api48_GlobalPrivacySettings globalPrivacySettingsWithNoSuggestions:noSuggestions hideContacts:hideContacts hideLocated:hideLocated hideLastVisit:hideLastVisit]; } copy]; parsers[@((int32_t)0x450a1c0a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * nextOffset = nil; if ((nextOffset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * results = nil; int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((results = [Api48__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_FoundGifs messages_foundGifsWithNextOffset:nextOffset results:results]; } copy]; parsers[@((int32_t)0x7c596b46)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * volumeId = nil; if ((volumeId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * localId = nil; if ((localId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * secret = nil; if ((secret = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_FileLocation fileLocationUnavailableWithVolumeId:volumeId localId:localId secret:secret]; } copy]; parsers[@((int32_t)0x53d69076)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * dcId = nil; if ((dcId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * volumeId = nil; if ((volumeId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * localId = nil; if ((localId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * secret = nil; if ((secret = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_FileLocation fileLocationWithDcId:dcId volumeId:volumeId localId:localId secret:secret]; } copy]; parsers[@((int32_t)0xb8bc5b0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputPeer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; return [Api48_InputNotifyPeer inputNotifyPeerWithPeer:peer]; } copy]; parsers[@((int32_t)0x193b4417)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputNotifyPeer inputNotifyUsers]; } copy]; parsers[@((int32_t)0x4a95e84e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputNotifyPeer inputNotifyChats]; } copy]; parsers[@((int32_t)0xa429b886)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputNotifyPeer inputNotifyAll]; } copy]; parsers[@((int32_t)0xed18c118)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * randomId = nil; if ((randomId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * bytes = nil; if ((bytes = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; Api48_EncryptedFile * file = nil; int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((file = [Api48__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil) return nil; return [Api48_EncryptedMessage encryptedMessageWithRandomId:randomId chatId:chatId date:date bytes:bytes file:file]; } copy]; parsers[@((int32_t)0x23734b06)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * randomId = nil; if ((randomId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * bytes = nil; if ((bytes = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_EncryptedMessage encryptedMessageServiceWithRandomId:randomId chatId:chatId date:date bytes:bytes]; } copy]; parsers[@((int32_t)0xde3f3c79)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantsFilter channelParticipantsRecent]; } copy]; parsers[@((int32_t)0xb4608969)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantsFilter channelParticipantsAdmins]; } copy]; parsers[@((int32_t)0x3c37bb7a)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantsFilter channelParticipantsKicked]; } copy]; parsers[@((int32_t)0xb0d1865b)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelParticipantsFilter channelParticipantsBots]; } copy]; parsers[@((int32_t)0xeb1477e8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_WebPage webPageEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0xc586da1c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_WebPage webPagePendingWithPid:pid date:date]; } copy]; parsers[@((int32_t)0xca820ed7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSString * url = nil; if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * displayUrl = nil; if ((displayUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * type = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * siteName = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((siteName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * title = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * pdescription = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((pdescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } Api48_Photo * photo = nil; if (flags != nil && ([flags intValue] & (1 << 4))) { int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; } NSString * embedUrl = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { if ((embedUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * embedType = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { if ((embedType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSNumber * embedWidth = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((embedWidth = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * embedHeight = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((embedHeight = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * duration = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { if ((duration = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSString * author = nil; if (flags != nil && ([flags intValue] & (1 << 8))) { if ((author = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } Api48_Document * document = nil; if (flags != nil && ([flags intValue] & (1 << 9))) { int32_t document_signature = 0; [data getBytes:(void *)&document_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((document = [Api48__Environment parseObject:data offset:_offset implicitSignature:document_signature metaInfo:nil]) == nil) return nil; } return [Api48_WebPage webPageWithFlags:flags pid:pid url:url displayUrl:displayUrl type:type siteName:siteName title:title pdescription:pdescription photo:photo embedUrl:embedUrl embedType:embedType embedWidth:embedWidth embedHeight:embedHeight duration:duration author:author document:document]; } copy]; parsers[@((int32_t)0x2e43e587)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputBotInlineMessage inputBotInlineMessageMediaAutoWithCaption:caption]; } copy]; parsers[@((int32_t)0xadf0df71)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * entities = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((entities = [Api48__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } return [Api48_InputBotInlineMessage inputBotInlineMessageTextWithFlags:flags message:message entities:entities]; } copy]; parsers[@((int32_t)0x77608b83)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * buttons = nil; int32_t buttons_signature = 0; [data getBytes:(void *)&buttons_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((buttons = [Api48__Environment parseObject:data offset:_offset implicitSignature:buttons_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_KeyboardButtonRow keyboardButtonRowWithButtons:buttons]; } copy]; parsers[@((int32_t)0xcd303b41)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * shortName = nil; if ((shortName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * nHash = nil; if ((nHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_StickerSet stickerSetWithFlags:flags pid:pid accessHash:accessHash title:title shortName:shortName count:count nHash:nHash]; } copy]; parsers[@((int32_t)0x20212ca8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Photo * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_photos_Photo photos_photoWithPhoto:photo users:users]; } copy]; parsers[@((int32_t)0xf392b7f4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * clientId = nil; if ((clientId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSString * phone = nil; if ((phone = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * firstName = nil; if ((firstName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * lastName = nil; if ((lastName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputContact inputPhoneContactWithClientId:clientId phone:phone firstName:firstName lastName:lastName]; } copy]; parsers[@((int32_t)0x6f8b8cb2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * contacts = nil; int32_t contacts_signature = 0; [data getBytes:(void *)&contacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((contacts = [Api48__Environment parseObject:data offset:_offset implicitSignature:contacts_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Contacts contacts_contactsWithContacts:contacts users:users]; } copy]; parsers[@((int32_t)0xb74ba9d2)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_contacts_Contacts contacts_contactsNotModified]; } copy]; parsers[@((int32_t)0x94d42ee7)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelMessagesFilter channelMessagesFilterEmpty]; } copy]; parsers[@((int32_t)0xcd77d957)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * ranges = nil; int32_t ranges_signature = 0; [data getBytes:(void *)&ranges_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((ranges = [Api48__Environment parseObject:data offset:_offset implicitSignature:ranges_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_ChannelMessagesFilter channelMessagesFilterWithFlags:flags ranges:ranges]; } copy]; parsers[@((int32_t)0xfa01232e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChannelMessagesFilter channelMessagesFilterCollapsed]; } copy]; parsers[@((int32_t)0x137948a5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * emailPattern = nil; if ((emailPattern = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_auth_PasswordRecovery auth_passwordRecoveryWithEmailPattern:emailPattern]; } copy]; parsers[@((int32_t)0x1170b0a3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * queryId = nil; if ((queryId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSString * nextOffset = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((nextOffset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSArray * results = nil; int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((results = [Api48__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_BotResults messages_botResultsWithFlags:flags queryId:queryId nextOffset:nextOffset results:results]; } copy]; parsers[@((int32_t)0x72f0eaae)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputDocument inputDocumentEmpty]; } copy]; parsers[@((int32_t)0x18798952)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputDocument inputDocumentWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0x7f077ad9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Peer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_ResolvedPeer contacts_resolvedPeerWithPeer:peer chats:chats users:users]; } copy]; parsers[@((int32_t)0x9664f57f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputMedia inputMediaEmpty]; } copy]; parsers[@((int32_t)0xf9c44144)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputGeoPoint * geoPoint = nil; int32_t geoPoint_signature = 0; [data getBytes:(void *)&geoPoint_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((geoPoint = [Api48__Environment parseObject:data offset:_offset implicitSignature:geoPoint_signature metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaGeoPointWithGeoPoint:geoPoint]; } copy]; parsers[@((int32_t)0xa6e45987)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * phoneNumber = nil; if ((phoneNumber = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * firstName = nil; if ((firstName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * lastName = nil; if ((lastName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaContactWithPhoneNumber:phoneNumber firstName:firstName lastName:lastName]; } copy]; parsers[@((int32_t)0xf7aff1c0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputFile * file = nil; int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((file = [Api48__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaUploadedPhotoWithFile:file caption:caption]; } copy]; parsers[@((int32_t)0xe9bfb4f3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputPhoto * pid = nil; int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaPhotoWithPid:pid caption:caption]; } copy]; parsers[@((int32_t)0x2827a81a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputGeoPoint * geoPoint = nil; int32_t geoPoint_signature = 0; [data getBytes:(void *)&geoPoint_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((geoPoint = [Api48__Environment parseObject:data offset:_offset implicitSignature:geoPoint_signature metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * address = nil; if ((address = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * provider = nil; if ((provider = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * venueId = nil; if ((venueId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaVenueWithGeoPoint:geoPoint title:title address:address provider:provider venueId:venueId]; } copy]; parsers[@((int32_t)0x4843b0fd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * url = nil; if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * q = nil; if ((q = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaGifExternalWithUrl:url q:q]; } copy]; parsers[@((int32_t)0x1d89306d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputFile * file = nil; int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((file = [Api48__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil) return nil; NSString * mimeType = nil; if ((mimeType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * attributes = nil; int32_t attributes_signature = 0; [data getBytes:(void *)&attributes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((attributes = [Api48__Environment parseObject:data offset:_offset implicitSignature:attributes_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaUploadedDocumentWithFile:file mimeType:mimeType attributes:attributes caption:caption]; } copy]; parsers[@((int32_t)0xad613491)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputFile * file = nil; int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((file = [Api48__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil) return nil; Api48_InputFile * thumb = nil; int32_t thumb_signature = 0; [data getBytes:(void *)&thumb_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((thumb = [Api48__Environment parseObject:data offset:_offset implicitSignature:thumb_signature metaInfo:nil]) == nil) return nil; NSString * mimeType = nil; if ((mimeType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * attributes = nil; int32_t attributes_signature = 0; [data getBytes:(void *)&attributes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((attributes = [Api48__Environment parseObject:data offset:_offset implicitSignature:attributes_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaUploadedThumbDocumentWithFile:file thumb:thumb mimeType:mimeType attributes:attributes caption:caption]; } copy]; parsers[@((int32_t)0x1a77f29c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputDocument * pid = nil; int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputMedia inputMediaDocumentWithPid:pid caption:caption]; } copy]; parsers[@((int32_t)0x7f3b18ea)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPeer inputPeerEmpty]; } copy]; parsers[@((int32_t)0x7da07ec9)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPeer inputPeerSelf]; } copy]; parsers[@((int32_t)0x179be863)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_InputPeer inputPeerChatWithChatId:chatId]; } copy]; parsers[@((int32_t)0x7b8e7de6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputPeer inputPeerUserWithUserId:userId accessHash:accessHash]; } copy]; parsers[@((int32_t)0x20adaef8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputPeer inputPeerChannelWithChannelId:channelId accessHash:accessHash]; } copy]; parsers[@((int32_t)0xf911c994)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * mutual = nil; int32_t mutual_signature = 0; [data getBytes:(void *)&mutual_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((mutual = [Api48__Environment parseObject:data offset:_offset implicitSignature:mutual_signature metaInfo:nil]) == nil) return nil; return [Api48_Contact contactWithUserId:userId mutual:mutual]; } copy]; parsers[@((int32_t)0xf897d33e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_Document * document = nil; int32_t document_signature = 0; [data getBytes:(void *)&document_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((document = [Api48__Environment parseObject:data offset:_offset implicitSignature:document_signature metaInfo:nil]) == nil) return nil; Api48_BotInlineMessage * sendMessage = nil; int32_t sendMessage_signature = 0; [data getBytes:(void *)&sendMessage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sendMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:sendMessage_signature metaInfo:nil]) == nil) return nil; return [Api48_BotInlineResult botInlineMediaResultDocumentWithPid:pid type:type document:document sendMessage:sendMessage]; } copy]; parsers[@((int32_t)0xc5528587)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_Photo * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; Api48_BotInlineMessage * sendMessage = nil; int32_t sendMessage_signature = 0; [data getBytes:(void *)&sendMessage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sendMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:sendMessage_signature metaInfo:nil]) == nil) return nil; return [Api48_BotInlineResult botInlineMediaResultPhotoWithPid:pid type:type photo:photo sendMessage:sendMessage]; } copy]; parsers[@((int32_t)0x9bebaeb9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * title = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * pdescription = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((pdescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * url = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * thumbUrl = nil; if (flags != nil && ([flags intValue] & (1 << 4))) { if ((thumbUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * contentUrl = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { if ((contentUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * contentType = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { if ((contentType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSNumber * w = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * h = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * duration = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { if ((duration = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } Api48_BotInlineMessage * sendMessage = nil; int32_t sendMessage_signature = 0; [data getBytes:(void *)&sendMessage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sendMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:sendMessage_signature metaInfo:nil]) == nil) return nil; return [Api48_BotInlineResult botInlineResultWithFlags:flags pid:pid type:type title:title pdescription:pdescription url:url thumbUrl:thumbUrl contentUrl:contentUrl contentType:contentType w:w h:h duration:duration sendMessage:sendMessage]; } copy]; parsers[@((int32_t)0x64ff9fd5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Chats messages_chatsWithChats:chats]; } copy]; parsers[@((int32_t)0xd22a1c60)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_contacts_MyLink contacts_myLinkEmpty]; } copy]; parsers[@((int32_t)0x6c69efee)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * contact = nil; int32_t contact_signature = 0; [data getBytes:(void *)&contact_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((contact = [Api48__Environment parseObject:data offset:_offset implicitSignature:contact_signature metaInfo:nil]) == nil) return nil; return [Api48_contacts_MyLink contacts_myLinkRequestedWithContact:contact]; } copy]; parsers[@((int32_t)0xc240ebd9)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_contacts_MyLink contacts_myLinkContact]; } copy]; parsers[@((int32_t)0xd09e07b)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPrivacyRule inputPrivacyValueAllowContacts]; } copy]; parsers[@((int32_t)0x184b35ce)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPrivacyRule inputPrivacyValueAllowAll]; } copy]; parsers[@((int32_t)0x131cc67f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_InputPrivacyRule inputPrivacyValueAllowUsersWithUsers:users]; } copy]; parsers[@((int32_t)0xba52007)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPrivacyRule inputPrivacyValueDisallowContacts]; } copy]; parsers[@((int32_t)0xd66b66c9)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPrivacyRule inputPrivacyValueDisallowAll]; } copy]; parsers[@((int32_t)0x90110467)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_InputPrivacyRule inputPrivacyValueDisallowUsersWithUsers:users]; } copy]; parsers[@((int32_t)0xc0e24635)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSData * random = nil; if ((random = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_messages_DhConfig messages_dhConfigNotModifiedWithRandom:random]; } copy]; parsers[@((int32_t)0x2c221edd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * g = nil; if ((g = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * p = nil; if ((p = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * random = nil; if ((random = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_messages_DhConfig messages_dhConfigWithG:g p:p version:version random:random]; } copy]; parsers[@((int32_t)0xdf969c2d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * bytes = nil; if ((bytes = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_auth_ExportedAuthorization auth_exportedAuthorizationWithPid:pid bytes:bytes]; } copy]; parsers[@((int32_t)0x59f24214)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ContactRequest contactRequestWithUserId:userId date:date]; } copy]; parsers[@((int32_t)0xb45c69d1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_messages_AffectedHistory messages_affectedHistoryWithPts:pts ptsCount:ptsCount offset:offset]; } copy]; parsers[@((int32_t)0xf19c121e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_account_PasswordInputSettings account_passwordInputSettings]; } copy]; parsers[@((int32_t)0xb86fd3cf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * fromId = nil; if ((fromId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * editBy = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((editBy = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * editDate = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((editDate = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_channels_MessageEditData channels_messageEditDataWithFlags:flags fromId:fromId editBy:editBy editDate:editDate users:users]; } copy]; parsers[@((int32_t)0xe5d7d19c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_ChatFull * fullChat = nil; int32_t fullChat_signature = 0; [data getBytes:(void *)&fullChat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((fullChat = [Api48__Environment parseObject:data offset:_offset implicitSignature:fullChat_signature metaInfo:nil]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_ChatFull messages_chatFullWithFullChat:fullChat chats:chats users:users]; } copy]; parsers[@((int32_t)0x133421f8)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_contacts_ForeignLink contacts_foreignLinkUnknown]; } copy]; parsers[@((int32_t)0xa7801f47)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * hasPhone = nil; int32_t hasPhone_signature = 0; [data getBytes:(void *)&hasPhone_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hasPhone = [Api48__Environment parseObject:data offset:_offset implicitSignature:hasPhone_signature metaInfo:nil]) == nil) return nil; return [Api48_contacts_ForeignLink contacts_foreignLinkRequestedWithHasPhone:hasPhone]; } copy]; parsers[@((int32_t)0x1bea8ce1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_contacts_ForeignLink contacts_foreignLinkMutual]; } copy]; parsers[@((int32_t)0xf141b5e1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputEncryptedChat inputEncryptedChatWithChatId:chatId accessHash:accessHash]; } copy]; parsers[@((int32_t)0xae636f24)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * feature = nil; if ((feature = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * nDescription = nil; if ((nDescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_DisabledFeature disabledFeatureWithFeature:feature nDescription:nDescription]; } copy]; parsers[@((int32_t)0xc21f497e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_EncryptedFile encryptedFileEmpty]; } copy]; parsers[@((int32_t)0x4a70994c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * size = nil; if ((size = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * dcId = nil; if ((dcId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * keyFingerprint = nil; if ((keyFingerprint = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_EncryptedFile encryptedFileWithPid:pid accessHash:accessHash size:size dcId:dcId keyFingerprint:keyFingerprint]; } copy]; parsers[@((int32_t)0x9fd40bd8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Peer * peer = nil; int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((peer = [Api48__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil) return nil; return [Api48_NotifyPeer notifyPeerWithPeer:peer]; } copy]; parsers[@((int32_t)0xb4c83b4c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_NotifyPeer notifyUsers]; } copy]; parsers[@((int32_t)0xc007cec3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_NotifyPeer notifyChats]; } copy]; parsers[@((int32_t)0x74d07c60)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_NotifyPeer notifyAll]; } copy]; parsers[@((int32_t)0x4f96cb18)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPrivacyKey inputPrivacyKeyStatusTimestamp]; } copy]; parsers[@((int32_t)0xbdfb0426)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPrivacyKey inputPrivacyKeyChatInvite]; } copy]; parsers[@((int32_t)0xa03e5b85)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ReplyMarkup replyKeyboardHideWithFlags:flags]; } copy]; parsers[@((int32_t)0xf4108aa0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ReplyMarkup replyKeyboardForceReplyWithFlags:flags]; } copy]; parsers[@((int32_t)0x3502758c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * rows = nil; int32_t rows_signature = 0; [data getBytes:(void *)&rows_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((rows = [Api48__Environment parseObject:data offset:_offset implicitSignature:rows_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_ReplyMarkup replyKeyboardMarkupWithFlags:flags rows:rows]; } copy]; parsers[@((int32_t)0x3ace484c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_ContactLink * myLink = nil; int32_t myLink_signature = 0; [data getBytes:(void *)&myLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((myLink = [Api48__Environment parseObject:data offset:_offset implicitSignature:myLink_signature metaInfo:nil]) == nil) return nil; Api48_ContactLink * foreignLink = nil; int32_t foreignLink_signature = 0; [data getBytes:(void *)&foreignLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((foreignLink = [Api48__Environment parseObject:data offset:_offset implicitSignature:foreignLink_signature metaInfo:nil]) == nil) return nil; Api48_User * user = nil; int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((user = [Api48__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil) return nil; return [Api48_contacts_Link contacts_linkWithMyLink:myLink foreignLink:foreignLink user:user]; } copy]; parsers[@((int32_t)0x561bc879)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ContactBlocked contactBlockedWithUserId:userId date:date]; } copy]; parsers[@((int32_t)0x811ea28e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * phoneRegistered = nil; int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((phoneRegistered = [Api48__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil) return nil; return [Api48_auth_CheckedPhone auth_checkedPhoneWithPhoneRegistered:phoneRegistered]; } copy]; parsers[@((int32_t)0xb98886cf)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputUser inputUserEmpty]; } copy]; parsers[@((int32_t)0xf7c1b13f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputUser inputUserSelf]; } copy]; parsers[@((int32_t)0xd8292816)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputUser inputUserWithUserId:userId accessHash:accessHash]; } copy]; parsers[@((int32_t)0xa8e1e989)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * predicate = nil; if ((predicate = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * params = nil; int32_t params_signature = 0; [data getBytes:(void *)¶ms_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((params = [Api48__Environment parseObject:data offset:_offset implicitSignature:params_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_SchemeType schemeTypeWithPid:pid predicate:predicate params:params type:type]; } copy]; parsers[@((int32_t)0x96a18d5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_storage_FileType * type = nil; int32_t type_signature = 0; [data getBytes:(void *)&type_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:type_signature metaInfo:nil]) == nil) return nil; NSNumber * mtime = nil; if ((mtime = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * bytes = nil; if ((bytes = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_upload_File upload_fileWithType:type mtime:mtime bytes:bytes]; } copy]; parsers[@((int32_t)0xae30253)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * minId = nil; if ((minId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * maxId = nil; if ((maxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageRange messageRangeWithMinId:minId maxId:maxId]; } copy]; parsers[@((int32_t)0x317ceef4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * expires = nil; if ((expires = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * testMode = nil; int32_t testMode_signature = 0; [data getBytes:(void *)&testMode_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((testMode = [Api48__Environment parseObject:data offset:_offset implicitSignature:testMode_signature metaInfo:nil]) == nil) return nil; NSNumber * thisDc = nil; if ((thisDc = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * dcOptions = nil; int32_t dcOptions_signature = 0; [data getBytes:(void *)&dcOptions_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((dcOptions = [Api48__Environment parseObject:data offset:_offset implicitSignature:dcOptions_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * chatSizeMax = nil; if ((chatSizeMax = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * megagroupSizeMax = nil; if ((megagroupSizeMax = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * forwardedCountMax = nil; if ((forwardedCountMax = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * onlineUpdatePeriodMs = nil; if ((onlineUpdatePeriodMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * offlineBlurTimeoutMs = nil; if ((offlineBlurTimeoutMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * offlineIdleTimeoutMs = nil; if ((offlineIdleTimeoutMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * onlineCloudTimeoutMs = nil; if ((onlineCloudTimeoutMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * notifyCloudDelayMs = nil; if ((notifyCloudDelayMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * notifyDefaultDelayMs = nil; if ((notifyDefaultDelayMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * chatBigSize = nil; if ((chatBigSize = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pushChatPeriodMs = nil; if ((pushChatPeriodMs = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pushChatLimit = nil; if ((pushChatLimit = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * savedGifsLimit = nil; if ((savedGifsLimit = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * editTimeLimit = nil; if ((editTimeLimit = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * disabledFeatures = nil; int32_t disabledFeatures_signature = 0; [data getBytes:(void *)&disabledFeatures_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((disabledFeatures = [Api48__Environment parseObject:data offset:_offset implicitSignature:disabledFeatures_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Config configWithDate:date expires:expires testMode:testMode thisDc:thisDc dcOptions:dcOptions chatSizeMax:chatSizeMax megagroupSizeMax:megagroupSizeMax forwardedCountMax:forwardedCountMax onlineUpdatePeriodMs:onlineUpdatePeriodMs offlineBlurTimeoutMs:offlineBlurTimeoutMs offlineIdleTimeoutMs:offlineIdleTimeoutMs onlineCloudTimeoutMs:onlineCloudTimeoutMs notifyCloudDelayMs:notifyCloudDelayMs notifyDefaultDelayMs:notifyDefaultDelayMs chatBigSize:chatBigSize pushChatPeriodMs:pushChatPeriodMs pushChatLimit:pushChatLimit savedGifsLimit:savedGifsLimit editTimeLimit:editTimeLimit disabledFeatures:disabledFeatures]; } copy]; parsers[@((int32_t)0xc27ac8c7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * command = nil; if ((command = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * pdescription = nil; if ((pdescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_BotCommand botCommandWithCommand:command pdescription:pdescription]; } copy]; parsers[@((int32_t)0xaad7f4a7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * results = nil; int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((results = [Api48__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Located contacts_locatedWithResults:results users:users]; } copy]; parsers[@((int32_t)0x84d19185)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_messages_AffectedMessages messages_affectedMessagesWithPts:pts ptsCount:ptsCount]; } copy]; parsers[@((int32_t)0xe8025ca2)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_messages_SavedGifs messages_savedGifsNotModified]; } copy]; parsers[@((int32_t)0x2e0709a5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * phash = nil; if ((phash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * gifs = nil; int32_t gifs_signature = 0; [data getBytes:(void *)&gifs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((gifs = [Api48__Environment parseObject:data offset:_offset implicitSignature:gifs_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_SavedGifs messages_savedGifsWithPhash:phash gifs:gifs]; } copy]; parsers[@((int32_t)0x2194f56e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ResponseIndirect responseIndirect]; } copy]; parsers[@((int32_t)0xccb03657)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * sizes = nil; int32_t sizes_signature = 0; [data getBytes:(void *)&sizes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sizes = [Api48__Environment parseObject:data offset:_offset implicitSignature:sizes_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * color = nil; if ((color = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_WallPaper wallPaperWithPid:pid title:title sizes:sizes color:color]; } copy]; parsers[@((int32_t)0x63117f24)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * bgColor = nil; if ((bgColor = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * color = nil; if ((color = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_WallPaper wallPaperSolidWithPid:pid title:title bgColor:bgColor color:color]; } copy]; parsers[@((int32_t)0x8c718e87)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Messages messages_messagesWithMessages:messages chats:chats users:users]; } copy]; parsers[@((int32_t)0xb446ae3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Messages messages_messagesSliceWithCount:count messages:messages chats:chats users:users]; } copy]; parsers[@((int32_t)0xbc0f17bc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * collapsed = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { int32_t collapsed_signature = 0; [data getBytes:(void *)&collapsed_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((collapsed = [Api48__Environment parseObject:data offset:_offset implicitSignature:collapsed_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Messages messages_channelMessagesWithFlags:flags pts:pts count:count messages:messages collapsed:collapsed chats:chats users:users]; } copy]; parsers[@((int32_t)0x3cf5727a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * phoneRegistered = nil; int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((phoneRegistered = [Api48__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil) return nil; NSString * phoneCodeHash = nil; if ((phoneCodeHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * phoneCodeTest = nil; if ((phoneCodeTest = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_auth_SentCode auth_sentCodePreviewWithPhoneRegistered:phoneRegistered phoneCodeHash:phoneCodeHash phoneCodeTest:phoneCodeTest]; } copy]; parsers[@((int32_t)0x1a1e1fae)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * phoneRegistered = nil; int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((phoneRegistered = [Api48__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil) return nil; return [Api48_auth_SentCode auth_sentPassPhraseWithPhoneRegistered:phoneRegistered]; } copy]; parsers[@((int32_t)0xefed51d9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * phoneRegistered = nil; int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((phoneRegistered = [Api48__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil) return nil; NSString * phoneCodeHash = nil; if ((phoneCodeHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * sendCallTimeout = nil; if ((sendCallTimeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * isPassword = nil; int32_t isPassword_signature = 0; [data getBytes:(void *)&isPassword_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((isPassword = [Api48__Environment parseObject:data offset:_offset implicitSignature:isPassword_signature metaInfo:nil]) == nil) return nil; return [Api48_auth_SentCode auth_sentCodeWithPhoneRegistered:phoneRegistered phoneCodeHash:phoneCodeHash sendCallTimeout:sendCallTimeout isPassword:isPassword]; } copy]; parsers[@((int32_t)0xe325edcf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * phoneRegistered = nil; int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((phoneRegistered = [Api48__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil) return nil; NSString * phoneCodeHash = nil; if ((phoneCodeHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * sendCallTimeout = nil; if ((sendCallTimeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_Bool * isPassword = nil; int32_t isPassword_signature = 0; [data getBytes:(void *)&isPassword_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((isPassword = [Api48__Environment parseObject:data offset:_offset implicitSignature:isPassword_signature metaInfo:nil]) == nil) return nil; return [Api48_auth_SentCode auth_sentAppCodeWithPhoneRegistered:phoneRegistered phoneCodeHash:phoneCodeHash sendCallTimeout:sendCallTimeout isPassword:isPassword]; } copy]; parsers[@((int32_t)0x8a5d855e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * g = nil; if ((g = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * p = nil; if ((p = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * ringTimeout = nil; if ((ringTimeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * expires = nil; if ((expires = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_phone_DhConfig phone_dhConfigWithG:g p:p ringTimeout:ringTimeout expires:expires]; } copy]; parsers[@((int32_t)0x1ca48f57)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputChatPhoto inputChatPhotoEmpty]; } copy]; parsers[@((int32_t)0x94254732)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputFile * file = nil; int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((file = [Api48__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil) return nil; Api48_InputPhotoCrop * crop = nil; int32_t crop_signature = 0; [data getBytes:(void *)&crop_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((crop = [Api48__Environment parseObject:data offset:_offset implicitSignature:crop_signature metaInfo:nil]) == nil) return nil; return [Api48_InputChatPhoto inputChatUploadedPhotoWithFile:file crop:crop]; } copy]; parsers[@((int32_t)0xb2e1bf08)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_InputPhoto * pid = nil; int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil) return nil; Api48_InputPhotoCrop * crop = nil; int32_t crop_signature = 0; [data getBytes:(void *)&crop_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((crop = [Api48__Environment parseObject:data offset:_offset implicitSignature:crop_signature metaInfo:nil]) == nil) return nil; return [Api48_InputChatPhoto inputChatPhotoWithPid:pid crop:crop]; } copy]; parsers[@((int32_t)0xe317af7e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Updates updatesTooLong]; } copy]; parsers[@((int32_t)0x78d4dec1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Update * update = nil; int32_t update_signature = 0; [data getBytes:(void *)&update_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((update = [Api48__Environment parseObject:data offset:_offset implicitSignature:update_signature metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Updates updateShortWithUpdate:update date:date]; } copy]; parsers[@((int32_t)0x725b04c3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * updates = nil; int32_t updates_signature = 0; [data getBytes:(void *)&updates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((updates = [Api48__Environment parseObject:data offset:_offset implicitSignature:updates_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * seqStart = nil; if ((seqStart = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * seq = nil; if ((seq = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Updates updatesCombinedWithUpdates:updates users:users chats:chats date:date seqStart:seqStart seq:seq]; } copy]; parsers[@((int32_t)0x74ae4240)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * updates = nil; int32_t updates_signature = 0; [data getBytes:(void *)&updates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((updates = [Api48__Environment parseObject:data offset:_offset implicitSignature:updates_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * seq = nil; if ((seq = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Updates updatesWithUpdates:updates users:users chats:chats date:date seq:seq]; } copy]; parsers[@((int32_t)0x11f1331c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_MessageMedia * media = nil; if (flags != nil && ([flags intValue] & (1 << 9))) { int32_t media_signature = 0; [data getBytes:(void *)&media_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((media = [Api48__Environment parseObject:data offset:_offset implicitSignature:media_signature metaInfo:nil]) == nil) return nil; } NSArray * entities = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((entities = [Api48__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } return [Api48_Updates updateShortSentMessageWithFlags:flags pid:pid pts:pts ptsCount:ptsCount date:date media:media entities:entities]; } copy]; parsers[@((int32_t)0x914fbf11)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_MessageFwdHeader * fwdFrom = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { int32_t fwdFrom_signature = 0; [data getBytes:(void *)&fwdFrom_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((fwdFrom = [Api48__Environment parseObject:data offset:_offset implicitSignature:fwdFrom_signature metaInfo:nil]) == nil) return nil; } NSNumber * viaBotId = nil; if (flags != nil && ([flags intValue] & (1 << 11))) { if ((viaBotId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * replyToMsgId = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((replyToMsgId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSArray * entities = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((entities = [Api48__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } return [Api48_Updates updateShortMessageWithFlags:flags pid:pid userId:userId message:message pts:pts ptsCount:ptsCount date:date fwdFrom:fwdFrom viaBotId:viaBotId replyToMsgId:replyToMsgId entities:entities]; } copy]; parsers[@((int32_t)0x16812688)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * fromId = nil; if ((fromId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * ptsCount = nil; if ((ptsCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_MessageFwdHeader * fwdFrom = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { int32_t fwdFrom_signature = 0; [data getBytes:(void *)&fwdFrom_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((fwdFrom = [Api48__Environment parseObject:data offset:_offset implicitSignature:fwdFrom_signature metaInfo:nil]) == nil) return nil; } NSNumber * viaBotId = nil; if (flags != nil && ([flags intValue] & (1 << 11))) { if ((viaBotId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * replyToMsgId = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((replyToMsgId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSArray * entities = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((entities = [Api48__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } return [Api48_Updates updateShortChatMessageWithFlags:flags pid:pid fromId:fromId chatId:chatId message:message pts:pts ptsCount:ptsCount date:date fwdFrom:fwdFrom viaBotId:viaBotId replyToMsgId:replyToMsgId entities:entities]; } copy]; parsers[@((int32_t)0x69796de9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * apiId = nil; if ((apiId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * deviceModel = nil; if ((deviceModel = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * systemVersion = nil; if ((systemVersion = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * appVersion = nil; if ((appVersion = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * langCode = nil; if ((langCode = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSObject * query = nil; int32_t query_signature = 0; [data getBytes:(void *)&query_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((query = [Api48__Environment parseObject:data offset:_offset implicitSignature:query_signature metaInfo:nil]) == nil) return nil; return [Api48_InitConnection pinitConnectionWithApiId:apiId deviceModel:deviceModel systemVersion:systemVersion appVersion:appVersion langCode:langCode query:query]; } copy]; parsers[@((int32_t)0x3ded6320)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessageMedia messageMediaEmpty]; } copy]; parsers[@((int32_t)0x56e0d474)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_GeoPoint * geo = nil; int32_t geo_signature = 0; [data getBytes:(void *)&geo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((geo = [Api48__Environment parseObject:data offset:_offset implicitSignature:geo_signature metaInfo:nil]) == nil) return nil; return [Api48_MessageMedia messageMediaGeoWithGeo:geo]; } copy]; parsers[@((int32_t)0x5e7d2f39)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * phoneNumber = nil; if ((phoneNumber = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * firstName = nil; if ((firstName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * lastName = nil; if ((lastName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageMedia messageMediaContactWithPhoneNumber:phoneNumber firstName:firstName lastName:lastName userId:userId]; } copy]; parsers[@((int32_t)0x9f84f49e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessageMedia messageMediaUnsupported]; } copy]; parsers[@((int32_t)0xa32dd600)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_WebPage * webpage = nil; int32_t webpage_signature = 0; [data getBytes:(void *)&webpage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((webpage = [Api48__Environment parseObject:data offset:_offset implicitSignature:webpage_signature metaInfo:nil]) == nil) return nil; return [Api48_MessageMedia messageMediaWebPageWithWebpage:webpage]; } copy]; parsers[@((int32_t)0x3d8ce53d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Photo * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageMedia messageMediaPhotoWithPhoto:photo caption:caption]; } copy]; parsers[@((int32_t)0x7912b71f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_GeoPoint * geo = nil; int32_t geo_signature = 0; [data getBytes:(void *)&geo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((geo = [Api48__Environment parseObject:data offset:_offset implicitSignature:geo_signature metaInfo:nil]) == nil) return nil; NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * address = nil; if ((address = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * provider = nil; if ((provider = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * venueId = nil; if ((venueId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageMedia messageMediaVenueWithGeo:geo title:title address:address provider:provider venueId:venueId]; } copy]; parsers[@((int32_t)0xf3e02ea8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Document * document = nil; int32_t document_signature = 0; [data getBytes:(void *)&document_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((document = [Api48__Environment parseObject:data offset:_offset implicitSignature:document_signature metaInfo:nil]) == nil) return nil; NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageMedia messageMediaDocumentWithDocument:document caption:caption]; } copy]; parsers[@((int32_t)0x56730bcc)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Null null]; } copy]; parsers[@((int32_t)0x6c37c15c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * w = nil; if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * h = nil; if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_DocumentAttribute documentAttributeImageSizeWithW:w h:h]; } copy]; parsers[@((int32_t)0x11b58939)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_DocumentAttribute documentAttributeAnimated]; } copy]; parsers[@((int32_t)0x5910cccb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * duration = nil; if ((duration = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * w = nil; if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * h = nil; if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_DocumentAttribute documentAttributeVideoWithDuration:duration w:w h:h]; } copy]; parsers[@((int32_t)0x15590068)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * fileName = nil; if ((fileName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_DocumentAttribute documentAttributeFilenameWithFileName:fileName]; } copy]; parsers[@((int32_t)0x3a556302)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * alt = nil; if ((alt = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_InputStickerSet * stickerset = nil; int32_t stickerset_signature = 0; [data getBytes:(void *)&stickerset_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((stickerset = [Api48__Environment parseObject:data offset:_offset implicitSignature:stickerset_signature metaInfo:nil]) == nil) return nil; return [Api48_DocumentAttribute documentAttributeStickerWithAlt:alt stickerset:stickerset]; } copy]; parsers[@((int32_t)0x9852f9c6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * duration = nil; if ((duration = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * title = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * performer = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((performer = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSData * waveform = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((waveform = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; } return [Api48_DocumentAttribute documentAttributeAudioWithFlags:flags duration:duration title:title performer:performer waveform:waveform]; } copy]; parsers[@((int32_t)0x1250abde)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * authorizations = nil; int32_t authorizations_signature = 0; [data getBytes:(void *)&authorizations_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((authorizations = [Api48__Environment parseObject:data offset:_offset implicitSignature:authorizations_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_account_Authorizations account_authorizationsWithAuthorizations:authorizations]; } copy]; parsers[@((int32_t)0x37c1011c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ChatPhoto chatPhotoEmpty]; } copy]; parsers[@((int32_t)0x6153276a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_FileLocation * photoSmall = nil; int32_t photoSmall_signature = 0; [data getBytes:(void *)&photoSmall_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photoSmall = [Api48__Environment parseObject:data offset:_offset implicitSignature:photoSmall_signature metaInfo:nil]) == nil) return nil; Api48_FileLocation * photoBig = nil; int32_t photoBig_signature = 0; [data getBytes:(void *)&photoBig_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photoBig = [Api48__Environment parseObject:data offset:_offset implicitSignature:photoBig_signature metaInfo:nil]) == nil) return nil; return [Api48_ChatPhoto chatPhotoWithPhotoSmall:photoSmall photoBig:photoBig]; } copy]; parsers[@((int32_t)0xffb62b95)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputStickerSet inputStickerSetEmpty]; } copy]; parsers[@((int32_t)0x9de7a269)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputStickerSet inputStickerSetIDWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0x861cc8a0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * shortName = nil; if ((shortName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputStickerSet inputStickerSetShortNameWithShortName:shortName]; } copy]; parsers[@((int32_t)0xbb2e37ce)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_BotInfo botInfoEmpty]; } copy]; parsers[@((int32_t)0x9cf585d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * shareText = nil; if ((shareText = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * pdescription = nil; if ((pdescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * commands = nil; int32_t commands_signature = 0; [data getBytes:(void *)&commands_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((commands = [Api48__Environment parseObject:data offset:_offset implicitSignature:commands_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_BotInfo botInfoWithUserId:userId version:version shareText:shareText pdescription:pdescription commands:commands]; } copy]; parsers[@((int32_t)0x5649dcc5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * results = nil; int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((results = [Api48__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Suggested contacts_suggestedWithResults:results users:users]; } copy]; parsers[@((int32_t)0xa56c2a3e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * qts = nil; if ((qts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * seq = nil; if ((seq = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadCount = nil; if ((unreadCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_updates_State updates_stateWithPts:pts qts:qts date:date seq:seq unreadCount:unreadCount]; } copy]; parsers[@((int32_t)0x162ecc1f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * url = nil; if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * thumbUrl = nil; if ((thumbUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * contentUrl = nil; if ((contentUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * contentType = nil; if ((contentType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * w = nil; if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * h = nil; if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_FoundGif foundGifWithUrl:url thumbUrl:thumbUrl contentUrl:contentUrl contentType:contentType w:w h:h]; } copy]; parsers[@((int32_t)0x9c750409)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * url = nil; if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_Photo * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; Api48_Document * document = nil; int32_t document_signature = 0; [data getBytes:(void *)&document_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((document = [Api48__Environment parseObject:data offset:_offset implicitSignature:document_signature metaInfo:nil]) == nil) return nil; return [Api48_FoundGif foundGifCachedWithUrl:url photo:photo document:document]; } copy]; parsers[@((int32_t)0x200250ba)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_User userEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0xd10d979a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; } NSString * firstName = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((firstName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * lastName = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((lastName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * username = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((username = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * phone = nil; if (flags != nil && ([flags intValue] & (1 << 4))) { if ((phone = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } Api48_UserProfilePhoto * photo = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; } Api48_UserStatus * status = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { int32_t status_signature = 0; [data getBytes:(void *)&status_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((status = [Api48__Environment parseObject:data offset:_offset implicitSignature:status_signature metaInfo:nil]) == nil) return nil; } NSNumber * botInfoVersion = nil; if (flags != nil && ([flags intValue] & (1 << 14))) { if ((botInfoVersion = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSString * restrictionReason = nil; if (flags != nil && ([flags intValue] & (1 << 18))) { if ((restrictionReason = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * botInlinePlaceholder = nil; if (flags != nil && ([flags intValue] & (1 << 19))) { if ((botInlinePlaceholder = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } return [Api48_User userWithFlags:flags pid:pid accessHash:accessHash firstName:firstName lastName:lastName username:username phone:phone photo:photo status:status botInfoVersion:botInfoVersion restrictionReason:restrictionReason botInlinePlaceholder:botInlinePlaceholder]; } copy]; parsers[@((int32_t)0x83e5de54)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Message messageEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0xc09be45f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * fromId = nil; if (flags != nil && ([flags intValue] & (1 << 8))) { if ((fromId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } Api48_Peer * toId = nil; int32_t toId_signature = 0; [data getBytes:(void *)&toId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((toId = [Api48__Environment parseObject:data offset:_offset implicitSignature:toId_signature metaInfo:nil]) == nil) return nil; Api48_MessageFwdHeader * fwdFrom = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { int32_t fwdFrom_signature = 0; [data getBytes:(void *)&fwdFrom_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((fwdFrom = [Api48__Environment parseObject:data offset:_offset implicitSignature:fwdFrom_signature metaInfo:nil]) == nil) return nil; } NSNumber * viaBotId = nil; if (flags != nil && ([flags intValue] & (1 << 11))) { if ((viaBotId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * replyToMsgId = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((replyToMsgId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_MessageMedia * media = nil; if (flags != nil && ([flags intValue] & (1 << 9))) { int32_t media_signature = 0; [data getBytes:(void *)&media_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((media = [Api48__Environment parseObject:data offset:_offset implicitSignature:media_signature metaInfo:nil]) == nil) return nil; } Api48_ReplyMarkup * replyMarkup = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { int32_t replyMarkup_signature = 0; [data getBytes:(void *)&replyMarkup_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((replyMarkup = [Api48__Environment parseObject:data offset:_offset implicitSignature:replyMarkup_signature metaInfo:nil]) == nil) return nil; } NSArray * entities = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((entities = [Api48__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } NSNumber * views = nil; if (flags != nil && ([flags intValue] & (1 << 10))) { if ((views = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * editDate = nil; if (flags != nil && ([flags intValue] & (1 << 15))) { if ((editDate = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } return [Api48_Message messageWithFlags:flags pid:pid fromId:fromId toId:toId fwdFrom:fwdFrom viaBotId:viaBotId replyToMsgId:replyToMsgId date:date message:message media:media replyMarkup:replyMarkup entities:entities views:views editDate:editDate]; } copy]; parsers[@((int32_t)0xc06b9607)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * fromId = nil; if (flags != nil && ([flags intValue] & (1 << 8))) { if ((fromId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } Api48_Peer * toId = nil; int32_t toId_signature = 0; [data getBytes:(void *)&toId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((toId = [Api48__Environment parseObject:data offset:_offset implicitSignature:toId_signature metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_MessageAction * action = nil; int32_t action_signature = 0; [data getBytes:(void *)&action_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((action = [Api48__Environment parseObject:data offset:_offset implicitSignature:action_signature metaInfo:nil]) == nil) return nil; return [Api48_Message messageServiceWithFlags:flags pid:pid fromId:fromId toId:toId date:date action:action]; } copy]; parsers[@((int32_t)0x14637196)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * volumeId = nil; if ((volumeId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * localId = nil; if ((localId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * secret = nil; if ((secret = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputFileLocation inputFileLocationWithVolumeId:volumeId localId:localId secret:secret]; } copy]; parsers[@((int32_t)0xf5235d55)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputFileLocation inputEncryptedFileLocationWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0x4e45abe9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputFileLocation inputDocumentFileLocationWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0x1117dd5f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_GeoPoint geoPointEmpty]; } copy]; parsers[@((int32_t)0x2049d70c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * plong = nil; if ((plong = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; NSNumber * lat = nil; if ((lat = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; return [Api48_GeoPoint geoPointWithPlong:plong lat:lat]; } copy]; parsers[@((int32_t)0x6e9e21ca)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * plong = nil; if ((plong = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; NSNumber * lat = nil; if ((lat = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil) return nil; Api48_GeoPlaceName * name = nil; int32_t name_signature = 0; [data getBytes:(void *)&name_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((name = [Api48__Environment parseObject:data offset:_offset implicitSignature:name_signature metaInfo:nil]) == nil) return nil; return [Api48_GeoPoint geoPlaceWithPlong:plong lat:lat name:name]; } copy]; parsers[@((int32_t)0x1e36fded)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputPhoneCall inputPhoneCallWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0xa384b779)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ReceivedNotifyMessage receivedNotifyMessageWithPid:pid flags:flags]; } copy]; parsers[@((int32_t)0xfc900c2b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_ChatParticipant * selfParticipant = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { int32_t selfParticipant_signature = 0; [data getBytes:(void *)&selfParticipant_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((selfParticipant = [Api48__Environment parseObject:data offset:_offset implicitSignature:selfParticipant_signature metaInfo:nil]) == nil) return nil; } return [Api48_ChatParticipants chatParticipantsForbiddenWithFlags:flags chatId:chatId selfParticipant:selfParticipant]; } copy]; parsers[@((int32_t)0x3f460fed)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * participants = nil; int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((participants = [Api48__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChatParticipants chatParticipantsWithChatId:chatId participants:participants version:version]; } copy]; parsers[@((int32_t)0x8e1a1775)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * country = nil; if ((country = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * thisDc = nil; if ((thisDc = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * nearestDc = nil; if ((nearestDc = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_NearestDc nearestDcWithCountry:country thisDc:thisDc nearestDc:nearestDc]; } copy]; parsers[@((int32_t)0x8dca6aa5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * photos = nil; int32_t photos_signature = 0; [data getBytes:(void *)&photos_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photos = [Api48__Environment parseObject:data offset:_offset implicitSignature:photos_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_photos_Photos photos_photosWithPhotos:photos users:users]; } copy]; parsers[@((int32_t)0x15051f54)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * photos = nil; int32_t photos_signature = 0; [data getBytes:(void *)&photos_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photos = [Api48__Environment parseObject:data offset:_offset implicitSignature:photos_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_photos_Photos photos_photosSliceWithCount:count photos:photos users:users]; } copy]; parsers[@((int32_t)0xad524315)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * imported = nil; int32_t imported_signature = 0; [data getBytes:(void *)&imported_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((imported = [Api48__Environment parseObject:data offset:_offset implicitSignature:imported_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * retryContacts = nil; int32_t retryContacts_signature = 0; [data getBytes:(void *)&retryContacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((retryContacts = [Api48__Environment parseObject:data offset:_offset implicitSignature:retryContacts_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_ImportedContacts contacts_importedContactsWithImported:imported retryContacts:retryContacts users:users]; } copy]; parsers[@((int32_t)0xbc799737)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Bool boolFalse]; } copy]; parsers[@((int32_t)0x997275b5)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Bool boolTrue]; } copy]; parsers[@((int32_t)0xc786ddcb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * fromId = nil; if (flags != nil && ([flags intValue] & (1 << 0))) { if ((fromId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * channelId = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * channelPost = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((channelPost = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } return [Api48_MessageFwdHeader messageFwdHeaderWithFlags:flags fromId:fromId date:date channelId:channelId channelPost:channelPost]; } copy]; parsers[@((int32_t)0x17c6b5f6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * phoneNumber = nil; if ((phoneNumber = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_User * user = nil; int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((user = [Api48__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil) return nil; return [Api48_help_Support help_supportWithPhoneNumber:phoneNumber user:user]; } copy]; parsers[@((int32_t)0x3631cf4c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * distance = nil; if ((distance = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ChatLocated chatLocatedWithChatId:chatId distance:distance]; } copy]; parsers[@((int32_t)0x57e2f66c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterEmpty]; } copy]; parsers[@((int32_t)0x9609a51c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterPhotos]; } copy]; parsers[@((int32_t)0x9fc00e65)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterVideo]; } copy]; parsers[@((int32_t)0x56e9f0e4)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterPhotoVideo]; } copy]; parsers[@((int32_t)0x9eddf188)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterDocument]; } copy]; parsers[@((int32_t)0xd95e73bb)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterPhotoVideoDocuments]; } copy]; parsers[@((int32_t)0x50f5c392)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterVoice]; } copy]; parsers[@((int32_t)0x3751b49e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessagesFilter inputMessagesFilterMusic]; } copy]; parsers[@((int32_t)0x15ba6c40)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * dialogs = nil; int32_t dialogs_signature = 0; [data getBytes:(void *)&dialogs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((dialogs = [Api48__Environment parseObject:data offset:_offset implicitSignature:dialogs_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Dialogs messages_dialogsWithDialogs:dialogs messages:messages chats:chats users:users]; } copy]; parsers[@((int32_t)0x71e094f3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * count = nil; if ((count = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * dialogs = nil; int32_t dialogs_signature = 0; [data getBytes:(void *)&dialogs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((dialogs = [Api48__Environment parseObject:data offset:_offset implicitSignature:dialogs_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Dialogs messages_dialogsSliceWithCount:count dialogs:dialogs messages:messages chats:chats users:users]; } copy]; parsers[@((int32_t)0x18cb9f78)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_help_InviteText help_inviteTextWithMessage:message]; } copy]; parsers[@((int32_t)0x3de191a1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * mutualContacts = nil; if ((mutualContacts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_ContactSuggested contactSuggestedWithUserId:userId mutualContacts:mutualContacts]; } copy]; parsers[@((int32_t)0xfc56e87d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * caption = nil; if ((caption = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_BotInlineMessage botInlineMessageMediaAutoWithCaption:caption]; } copy]; parsers[@((int32_t)0xa56197a9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * message = nil; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * entities = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((entities = [Api48__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; } return [Api48_BotInlineMessage botInlineMessageTextWithFlags:flags message:message entities:entities]; } copy]; parsers[@((int32_t)0x38935eb2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * muteUntil = nil; if ((muteUntil = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * sound = nil; if ((sound = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_InputPeerNotifySettings inputPeerNotifySettingsWithFlags:flags muteUntil:muteUntil sound:sound]; } copy]; parsers[@((int32_t)0x69df3769)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ExportedChatInvite chatInviteEmpty]; } copy]; parsers[@((int32_t)0xfc2e05bc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * link = nil; if ((link = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_ExportedChatInvite chatInviteExportedWithLink:link]; } copy]; parsers[@((int32_t)0x3203df8c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * dcId = nil; if ((dcId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * ipAddress = nil; if ((ipAddress = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * pings = nil; int32_t pings_signature = 0; [data getBytes:(void *)&pings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pings = [Api48__Environment parseObject:data offset:_offset implicitSignature:pings_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return [Api48_DcNetworkStats dcPingStatsWithDcId:dcId ipAddress:ipAddress pings:pings]; } copy]; parsers[@((int32_t)0x7bf2e6f6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * phash = nil; if ((phash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * deviceModel = nil; if ((deviceModel = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * platform = nil; if ((platform = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * systemVersion = nil; if ((systemVersion = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * apiId = nil; if ((apiId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * appName = nil; if ((appName = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * appVersion = nil; if ((appVersion = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * dateCreated = nil; if ((dateCreated = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * dateActive = nil; if ((dateActive = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * ip = nil; if ((ip = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * country = nil; if ((country = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * region = nil; if ((region = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_Authorization authorizationWithPhash:phash flags:flags deviceModel:deviceModel platform:platform systemVersion:systemVersion apiId:apiId appName:appName appVersion:appVersion dateCreated:dateCreated dateActive:dateActive ip:ip country:country region:region]; } copy]; parsers[@((int32_t)0xe86602c3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_messages_AllStickers messages_allStickersNotModified]; } copy]; parsers[@((int32_t)0xedfd405f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * phash = nil; if ((phash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * sets = nil; int32_t sets_signature = 0; [data getBytes:(void *)&sets_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sets = [Api48__Environment parseObject:data offset:_offset implicitSignature:sets_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_AllStickers messages_allStickersWithPhash:phash sets:sets]; } copy]; parsers[@((int32_t)0x26bc3c3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PhoneConnection phoneConnectionNotReady]; } copy]; parsers[@((int32_t)0x3a84026a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * server = nil; if ((server = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * port = nil; if ((port = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * streamId = nil; if ((streamId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_PhoneConnection phoneConnectionWithServer:server port:port streamId:streamId]; } copy]; parsers[@((int32_t)0xb8d0afdf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * days = nil; if ((days = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_AccountDaysTTL accountDaysTTLWithDays:days]; } copy]; parsers[@((int32_t)0x4e6ef65e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * schemeRaw = nil; if ((schemeRaw = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * types = nil; int32_t types_signature = 0; [data getBytes:(void *)&types_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((types = [Api48__Environment parseObject:data offset:_offset implicitSignature:types_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * methods = nil; int32_t methods_signature = 0; [data getBytes:(void *)&methods_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((methods = [Api48__Environment parseObject:data offset:_offset implicitSignature:methods_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSNumber * version = nil; if ((version = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_Scheme schemeWithSchemeRaw:schemeRaw types:types methods:methods version:version]; } copy]; parsers[@((int32_t)0x263c9c58)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_Scheme schemeNotModified]; } copy]; parsers[@((int32_t)0x96dabc18)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSData * pnewSalt = nil; if ((pnewSalt = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; NSString * emailUnconfirmedPattern = nil; if ((emailUnconfirmedPattern = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_account_Password account_noPasswordWithPnewSalt:pnewSalt emailUnconfirmedPattern:emailUnconfirmedPattern]; } copy]; parsers[@((int32_t)0x7c18141c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSData * currentSalt = nil; if ((currentSalt = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; NSData * pnewSalt = nil; if ((pnewSalt = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; NSString * hint = nil; if ((hint = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; Api48_Bool * hasRecovery = nil; int32_t hasRecovery_signature = 0; [data getBytes:(void *)&hasRecovery_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hasRecovery = [Api48__Environment parseObject:data offset:_offset implicitSignature:hasRecovery_signature metaInfo:nil]) == nil) return nil; NSString * emailUnconfirmedPattern = nil; if ((emailUnconfirmedPattern = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_account_Password account_passwordWithCurrentSalt:currentSalt pnewSalt:pnewSalt hint:hint hasRecovery:hasRecovery emailUnconfirmedPattern:emailUnconfirmedPattern]; } copy]; parsers[@((int32_t)0x2cbbe15a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * title = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * pdescription = nil; if (flags != nil && ([flags intValue] & (1 << 2))) { if ((pdescription = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * url = nil; if (flags != nil && ([flags intValue] & (1 << 3))) { if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * thumbUrl = nil; if (flags != nil && ([flags intValue] & (1 << 4))) { if ((thumbUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * contentUrl = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { if ((contentUrl = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSString * contentType = nil; if (flags != nil && ([flags intValue] & (1 << 5))) { if ((contentType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; } NSNumber * w = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((w = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * h = nil; if (flags != nil && ([flags intValue] & (1 << 6))) { if ((h = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * duration = nil; if (flags != nil && ([flags intValue] & (1 << 7))) { if ((duration = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } Api48_InputBotInlineMessage * sendMessage = nil; int32_t sendMessage_signature = 0; [data getBytes:(void *)&sendMessage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((sendMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:sendMessage_signature metaInfo:nil]) == nil) return nil; return [Api48_InputBotInlineResult inputBotInlineResultWithFlags:flags pid:pid type:type title:title pdescription:pdescription url:url thumbUrl:thumbUrl contentUrl:contentUrl contentType:contentType w:w h:h duration:duration sendMessage:sendMessage]; } copy]; parsers[@((int32_t)0x554abb6f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * rules = nil; int32_t rules_signature = 0; [data getBytes:(void *)&rules_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((rules = [Api48__Environment parseObject:data offset:_offset implicitSignature:rules_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_account_PrivacyRules account_privacyRulesWithRules:rules users:users]; } copy]; parsers[@((int32_t)0x3f4e0648)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_messages_Message messages_messageEmpty]; } copy]; parsers[@((int32_t)0xff90c417)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Message * message = nil; int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((message = [Api48__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_messages_Message messages_messageWithMessage:message chats:chats users:users]; } copy]; parsers[@((int32_t)0xfffe1bac)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PrivacyRule privacyValueAllowContacts]; } copy]; parsers[@((int32_t)0x65427b82)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PrivacyRule privacyValueAllowAll]; } copy]; parsers[@((int32_t)0x4d5bbe0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return [Api48_PrivacyRule privacyValueAllowUsersWithUsers:users]; } copy]; parsers[@((int32_t)0xf888fa1a)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PrivacyRule privacyValueDisallowContacts]; } copy]; parsers[@((int32_t)0x8b73e763)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PrivacyRule privacyValueDisallowAll]; } copy]; parsers[@((int32_t)0xc7f49b7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return [Api48_PrivacyRule privacyValueDisallowUsersWithUsers:users]; } copy]; parsers[@((int32_t)0xa4f58c4c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * phoneCodeHash = nil; if ((phoneCodeHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * sendCallTimeout = nil; if ((sendCallTimeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_account_SentChangePhoneCode account_sentChangePhoneCodeWithPhoneCodeHash:phoneCodeHash sendCallTimeout:sendCallTimeout]; } copy]; parsers[@((int32_t)0xb6aef7b0)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessageAction messageActionEmpty]; } copy]; parsers[@((int32_t)0xa6638b9a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return [Api48_MessageAction messageActionChatCreateWithTitle:title users:users]; } copy]; parsers[@((int32_t)0xb5a1ce5a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChatEditTitleWithTitle:title]; } copy]; parsers[@((int32_t)0x7fcb13a8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Photo * photo = nil; int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photo = [Api48__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChatEditPhotoWithPhoto:photo]; } copy]; parsers[@((int32_t)0x95e3fbef)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessageAction messageActionChatDeletePhoto]; } copy]; parsers[@((int32_t)0xb2ae9b0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChatDeleteUserWithUserId:userId]; } copy]; parsers[@((int32_t)0xfc479b0f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { Api48_Bool * hasPhone = nil; int32_t hasPhone_signature = 0; [data getBytes:(void *)&hasPhone_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((hasPhone = [Api48__Environment parseObject:data offset:_offset implicitSignature:hasPhone_signature metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionSentRequestWithHasPhone:hasPhone]; } copy]; parsers[@((int32_t)0x7f07d76c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_MessageAction messageActionAcceptRequest]; } copy]; parsers[@((int32_t)0xf89cf5e8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * inviterId = nil; if ((inviterId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChatJoinedByLinkWithInviterId:inviterId]; } copy]; parsers[@((int32_t)0x95d2ac92)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChannelCreateWithTitle:title]; } copy]; parsers[@((int32_t)0x51bdb021)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * channelId = nil; if ((channelId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChatMigrateToWithChannelId:channelId]; } copy]; parsers[@((int32_t)0xb055eaee)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * title = nil; if ((title = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * chatId = nil; if ((chatId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageAction messageActionChannelMigrateFromWithTitle:title chatId:chatId]; } copy]; parsers[@((int32_t)0x488a7337)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return [Api48_MessageAction messageActionChatAddUserWithUsers:users]; } copy]; parsers[@((int32_t)0x5366c915)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_PhoneCall phoneCallEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0xec7bbe3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * calleeId = nil; if ((calleeId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_PhoneCall phoneCallWithPid:pid accessHash:accessHash date:date userId:userId calleeId:calleeId]; } copy]; parsers[@((int32_t)0xadd53cb3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PeerNotifyEvents peerNotifyEventsEmpty]; } copy]; parsers[@((int32_t)0x6d1ded88)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PeerNotifyEvents peerNotifyEventsAll]; } copy]; parsers[@((int32_t)0x5f4f9247)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ContactLink contactLinkUnknown]; } copy]; parsers[@((int32_t)0xfeedd3ad)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ContactLink contactLinkNone]; } copy]; parsers[@((int32_t)0x268f3f59)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ContactLink contactLinkHasPhone]; } copy]; parsers[@((int32_t)0xd502c2d0)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_ContactLink contactLinkContact]; } copy]; parsers[@((int32_t)0x424f8614)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSData * bytes = nil; if ((bytes = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_help_AppPrefs help_appPrefsWithBytes:bytes]; } copy]; parsers[@((int32_t)0x1aa1f784)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSArray * results = nil; int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((results = [Api48__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_contacts_Found contacts_foundWithResults:results chats:chats users:users]; } copy]; parsers[@((int32_t)0x70a68512)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_PeerNotifySettings peerNotifySettingsEmpty]; } copy]; parsers[@((int32_t)0x9acda4c0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * muteUntil = nil; if ((muteUntil = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * sound = nil; if ((sound = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_PeerNotifySettings peerNotifySettingsWithFlags:flags muteUntil:muteUntil sound:sound]; } copy]; parsers[@((int32_t)0x21b59bef)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * name = nil; if ((name = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSString * type = nil; if ((type = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_SchemeParam schemeParamWithName:name type:type]; } copy]; parsers[@((int32_t)0x12b299d4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSString * emoticon = nil; if ((emoticon = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSArray * documents = nil; int32_t documents_signature = 0; [data getBytes:(void *)&documents_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((documents = [Api48__Environment parseObject:data offset:_offset implicitSignature:documents_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil) return nil; return [Api48_StickerPack stickerPackWithEmoticon:emoticon documents:documents]; } copy]; parsers[@((int32_t)0x4f11bae1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_UserProfilePhoto userProfilePhotoEmpty]; } copy]; parsers[@((int32_t)0xd559d8c8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * photoId = nil; if ((photoId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; Api48_FileLocation * photoSmall = nil; int32_t photoSmall_signature = 0; [data getBytes:(void *)&photoSmall_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photoSmall = [Api48__Environment parseObject:data offset:_offset implicitSignature:photoSmall_signature metaInfo:nil]) == nil) return nil; Api48_FileLocation * photoBig = nil; int32_t photoBig_signature = 0; [data getBytes:(void *)&photoBig_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((photoBig = [Api48__Environment parseObject:data offset:_offset implicitSignature:photoBig_signature metaInfo:nil]) == nil) return nil; return [Api48_UserProfilePhoto userProfilePhotoWithPhotoId:photoId photoSmall:photoSmall photoBig:photoBig]; } copy]; parsers[@((int32_t)0x3e11affb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * timeout = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((timeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } return [Api48_updates_ChannelDifference updates_channelDifferenceEmptyWithFlags:flags pts:pts timeout:timeout]; } copy]; parsers[@((int32_t)0x5e167646)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * timeout = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((timeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSNumber * topMessage = nil; if ((topMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * topImportantMessage = nil; if ((topImportantMessage = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * readInboxMaxId = nil; if ((readInboxMaxId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadCount = nil; if ((unreadCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * unreadImportantCount = nil; if ((unreadImportantCount = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * messages = nil; int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((messages = [Api48__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_updates_ChannelDifference updates_channelDifferenceTooLongWithFlags:flags pts:pts timeout:timeout topMessage:topMessage topImportantMessage:topImportantMessage readInboxMaxId:readInboxMaxId unreadCount:unreadCount unreadImportantCount:unreadImportantCount messages:messages chats:chats users:users]; } copy]; parsers[@((int32_t)0x2064674e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * flags = nil; if ((flags = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * pts = nil; if ((pts = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * timeout = nil; if (flags != nil && ([flags intValue] & (1 << 1))) { if ((timeout = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; } NSArray * pnewMessages = nil; int32_t pnewMessages_signature = 0; [data getBytes:(void *)&pnewMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((pnewMessages = [Api48__Environment parseObject:data offset:_offset implicitSignature:pnewMessages_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * otherUpdates = nil; int32_t otherUpdates_signature = 0; [data getBytes:(void *)&otherUpdates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((otherUpdates = [Api48__Environment parseObject:data offset:_offset implicitSignature:otherUpdates_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * chats = nil; int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((chats = [Api48__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; NSArray * users = nil; int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((users = [Api48__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_updates_ChannelDifference updates_channelDifferenceWithFlags:flags pts:pts timeout:timeout pnewMessages:pnewMessages otherUpdates:otherUpdates chats:chats users:users]; } copy]; parsers[@((int32_t)0xbb92ba95)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityUnknownWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0xfa04579d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityMentionWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x6f635b0d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityHashtagWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x6cef8ac7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityBotCommandWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x6ed02538)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityUrlWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x64e475c2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityEmailWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0xbd610bc9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityBoldWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x826f8b60)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityItalicWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x28a20571)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityCodeWithOffset:offset length:length]; } copy]; parsers[@((int32_t)0x73924be0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * language = nil; if ((language = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityPreWithOffset:offset length:length language:language]; } copy]; parsers[@((int32_t)0x76a6d327)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * offset = nil; if ((offset = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * length = nil; if ((length = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * url = nil; if ((url = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; return [Api48_MessageEntity messageEntityTextUrlWithOffset:offset length:length url:url]; } copy]; parsers[@((int32_t)0x1cd7bf0d)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo) { return [Api48_InputPhoto inputPhotoEmpty]; } copy]; parsers[@((int32_t)0xfb95c6c4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_InputPhoto inputPhotoWithPid:pid accessHash:accessHash]; } copy]; parsers[@((int32_t)0xab7ec0a0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_EncryptedChat encryptedChatEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0x3bf703dc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * adminId = nil; if ((adminId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * participantId = nil; if ((participantId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_EncryptedChat encryptedChatWaitingWithPid:pid accessHash:accessHash date:date adminId:adminId participantId:participantId]; } copy]; parsers[@((int32_t)0x13d6dd27)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; return [Api48_EncryptedChat encryptedChatDiscardedWithPid:pid]; } copy]; parsers[@((int32_t)0xc878527e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * adminId = nil; if ((adminId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * participantId = nil; if ((participantId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * gA = nil; if ((gA = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; return [Api48_EncryptedChat encryptedChatRequestedWithPid:pid accessHash:accessHash date:date adminId:adminId participantId:participantId gA:gA]; } copy]; parsers[@((int32_t)0xfa56ce36)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * adminId = nil; if ((adminId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * participantId = nil; if ((participantId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSData * gAOrB = nil; if ((gAOrB = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api48__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil) return nil; NSNumber * keyFingerprint = nil; if ((keyFingerprint = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_EncryptedChat encryptedChatWithPid:pid accessHash:accessHash date:date adminId:adminId participantId:participantId gAOrB:gAOrB keyFingerprint:keyFingerprint]; } copy]; parsers[@((int32_t)0x36f8c871)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_Document documentEmptyWithPid:pid]; } copy]; parsers[@((int32_t)0xf9a39f4f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * pid = nil; if ((pid = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * accessHash = nil; if ((accessHash = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; NSNumber * date = nil; if ((date = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSString * mimeType = nil; if ((mimeType = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil) return nil; NSNumber * size = nil; if ((size = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; Api48_PhotoSize * thumb = nil; int32_t thumb_signature = 0; [data getBytes:(void *)&thumb_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((thumb = [Api48__Environment parseObject:data offset:_offset implicitSignature:thumb_signature metaInfo:nil]) == nil) return nil; NSNumber * dcId = nil; if ((dcId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSArray * attributes = nil; int32_t attributes_signature = 0; [data getBytes:(void *)&attributes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((attributes = [Api48__Environment parseObject:data offset:_offset implicitSignature:attributes_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return [Api48_Document documentWithPid:pid accessHash:accessHash date:date mimeType:mimeType size:size thumb:thumb dcId:dcId attributes:attributes]; } copy]; parsers[@((int32_t)0xd0028438)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo) { NSNumber * userId = nil; if ((userId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil) return nil; NSNumber * clientId = nil; if ((clientId = [Api48__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil) return nil; return [Api48_ImportedContact importedContactWithUserId:userId clientId:clientId]; } copy]; }); return parsers[@(constructorSignature)]; } + (NSData *)serializeObject:(id)object { NSMutableData *data = [[NSMutableData alloc] init]; if ([self serializeObject:object data:data addSignature:true]) return data; return nil; } + (bool)serializeObject:(id)object data:(NSMutableData *)data addSignature:(bool)addSignature { Api48__Serializer *serializer = objc_getAssociatedObject(object, Api48__Serializer_Key); if (serializer == nil) return false; if (addSignature) { int32_t value = serializer.constructorSignature; [data appendBytes:(void *)&value length:4]; } return serializer.serializeBlock(object, data); } + (id)parseObject:(NSData *)data { if (data.length < 4) return nil; int32_t constructorSignature = 0; [data getBytes:(void *)&constructorSignature length:4]; NSUInteger offset = 4; return [self parseObject:data offset:&offset implicitSignature:constructorSignature metaInfo:nil]; } + (id)parseObject:(NSData *)data offset:(NSUInteger *)offset implicitSignature:(int32_t)implicitSignature metaInfo:(id)metaInfo { id (^parser)(NSData *data, NSUInteger *offset, id metaInfo) = [self parserByConstructorSignature:implicitSignature]; if (parser) return parser(data, offset, metaInfo); return nil; } @end @interface Api48_BuiltinSerializer_Int : Api48__Serializer @end @implementation Api48_BuiltinSerializer_Int - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0xA8509BDA serializeBlock:^bool (NSNumber *object, NSMutableData *data) { int32_t value = (int32_t)[object intValue]; [data appendBytes:(void *)&value length:4]; return true; }]; } @end @interface Api48_BuiltinSerializer_Long : Api48__Serializer @end @implementation Api48_BuiltinSerializer_Long - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0x22076CBA serializeBlock:^bool (NSNumber *object, NSMutableData *data) { int64_t value = (int64_t)[object longLongValue]; [data appendBytes:(void *)&value length:8]; return true; }]; } @end @interface Api48_BuiltinSerializer_Double : Api48__Serializer @end @implementation Api48_BuiltinSerializer_Double - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0x2210C154 serializeBlock:^bool (NSNumber *object, NSMutableData *data) { double value = (double)[object doubleValue]; [data appendBytes:(void *)&value length:8]; return true; }]; } @end @interface Api48_BuiltinSerializer_String : Api48__Serializer @end @implementation Api48_BuiltinSerializer_String - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0xB5286E24 serializeBlock:^bool (NSString *object, NSMutableData *data) { NSData *value = [object dataUsingEncoding:NSUTF8StringEncoding]; int32_t length = value.length; int32_t padding = 0; if (length >= 254) { uint8_t tmp = 254; [data appendBytes:&tmp length:1]; [data appendBytes:(void *)&length length:3]; padding = (((length % 4) == 0 ? length : (length + 4 - (length % 4)))) - length; } else { [data appendBytes:(void *)&length length:1]; padding = ((((length + 1) % 4) == 0 ? (length + 1) : ((length + 1) + 4 - ((length + 1) % 4)))) - (length + 1); } [data appendData:value]; for (int i = 0; i < padding; i++) { uint8_t tmp = 0; [data appendBytes:(void *)&tmp length:1]; } return true; }]; } @end @interface Api48_BuiltinSerializer_Bytes : Api48__Serializer @end @implementation Api48_BuiltinSerializer_Bytes - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0xB5286E24 serializeBlock:^bool (NSData *object, NSMutableData *data) { NSData *value = object; int32_t length = value.length; int32_t padding = 0; if (length >= 254) { uint8_t tmp = 254; [data appendBytes:&tmp length:1]; [data appendBytes:(void *)&length length:3]; padding = (((length % 4) == 0 ? length : (length + 4 - (length % 4)))) - length; } else { [data appendBytes:(void *)&length length:1]; padding = ((((length + 1) % 4) == 0 ? (length + 1) : ((length + 1) + 4 - ((length + 1) % 4)))) - (length + 1); } [data appendData:value]; for (int i = 0; i < padding; i++) { uint8_t tmp = 0; [data appendBytes:(void *)&tmp length:1]; } return true; }]; } @end @interface Api48_BuiltinSerializer_Int128 : Api48__Serializer @end @implementation Api48_BuiltinSerializer_Int128 - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0x4BB5362B serializeBlock:^bool (NSData *object, NSMutableData *data) { if (object.length != 16) return false; [data appendData:object]; return true; }]; } @end @interface Api48_BuiltinSerializer_Int256 : Api48__Serializer @end @implementation Api48_BuiltinSerializer_Int256 - (instancetype)init { return [super initWithConstructorSignature:(int32_t)0x0929C32F serializeBlock:^bool (NSData *object, NSMutableData *data) { if (object.length != 32) return false; [data appendData:object]; return true; }]; } @end @implementation Api48_FunctionContext - (instancetype)initWithPayload:(NSData *)payload responseParser:(id (^)(NSData *))responseParser metadata:(id)metadata { self = [super init]; if (self != nil) { _payload = payload; _responseParser = [responseParser copy]; _metadata = metadata; } return self; } @end @interface Api48_messages_StickerSet () @property (nonatomic, strong) Api48_StickerSet * set; @property (nonatomic, strong) NSArray * packs; @property (nonatomic, strong) NSArray * documents; @end @interface Api48_messages_StickerSet_messages_stickerSet () @end @implementation Api48_messages_StickerSet + (Api48_messages_StickerSet_messages_stickerSet *)messages_stickerSetWithSet:(Api48_StickerSet *)set packs:(NSArray *)packs documents:(NSArray *)documents { Api48_messages_StickerSet_messages_stickerSet *_object = [[Api48_messages_StickerSet_messages_stickerSet alloc] init]; _object.set = set; _object.packs = ({ NSMutableArray *packs_copy = [[NSMutableArray alloc] initWithCapacity:packs.count]; for (id packs_item in packs) { [packs_copy addObject:packs_item]; } id packs_result = [Api48__Serializer addSerializerToObject:packs_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; packs_result;}); _object.documents = ({ NSMutableArray *documents_copy = [[NSMutableArray alloc] initWithCapacity:documents.count]; for (id documents_item in documents) { [documents_copy addObject:documents_item]; } id documents_result = [Api48__Serializer addSerializerToObject:documents_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; documents_result;}); return _object; } @end @implementation Api48_messages_StickerSet_messages_stickerSet - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb60a24a6 serializeBlock:^bool (Api48_messages_StickerSet_messages_stickerSet *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.set data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.packs data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.documents data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.stickerSet set:%@ packs:%@ documents:%@)", self.set, self.packs, self.documents]; } @end @interface Api48_InputGeoPlaceName () @property (nonatomic, strong) NSString * country; @property (nonatomic, strong) NSString * state; @property (nonatomic, strong) NSString * city; @property (nonatomic, strong) NSString * district; @property (nonatomic, strong) NSString * street; @end @interface Api48_InputGeoPlaceName_inputGeoPlaceName () @end @implementation Api48_InputGeoPlaceName + (Api48_InputGeoPlaceName_inputGeoPlaceName *)inputGeoPlaceNameWithCountry:(NSString *)country state:(NSString *)state city:(NSString *)city district:(NSString *)district street:(NSString *)street { Api48_InputGeoPlaceName_inputGeoPlaceName *_object = [[Api48_InputGeoPlaceName_inputGeoPlaceName alloc] init]; _object.country = [Api48__Serializer addSerializerToObject:[country copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.state = [Api48__Serializer addSerializerToObject:[state copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.city = [Api48__Serializer addSerializerToObject:[city copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.district = [Api48__Serializer addSerializerToObject:[district copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.street = [Api48__Serializer addSerializerToObject:[street copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_InputGeoPlaceName_inputGeoPlaceName - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x68afa7d4 serializeBlock:^bool (Api48_InputGeoPlaceName_inputGeoPlaceName *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.country data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.state data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.city data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.district data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.street data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputGeoPlaceName country:%d state:%d city:%d district:%d street:%d)", (int)[self.country length], (int)[self.state length], (int)[self.city length], (int)[self.district length], (int)[self.street length]]; } @end @interface Api48_InputGeoPoint () @end @interface Api48_InputGeoPoint_inputGeoPointEmpty () @end @interface Api48_InputGeoPoint_inputGeoPoint () @property (nonatomic, strong) NSNumber * lat; @property (nonatomic, strong) NSNumber * plong; @end @implementation Api48_InputGeoPoint + (Api48_InputGeoPoint_inputGeoPointEmpty *)inputGeoPointEmpty { Api48_InputGeoPoint_inputGeoPointEmpty *_object = [[Api48_InputGeoPoint_inputGeoPointEmpty alloc] init]; return _object; } + (Api48_InputGeoPoint_inputGeoPoint *)inputGeoPointWithLat:(NSNumber *)lat plong:(NSNumber *)plong { Api48_InputGeoPoint_inputGeoPoint *_object = [[Api48_InputGeoPoint_inputGeoPoint alloc] init]; _object.lat = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:lat] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; _object.plong = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:plong] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; return _object; } @end @implementation Api48_InputGeoPoint_inputGeoPointEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe4c123d6 serializeBlock:^bool (__unused Api48_InputGeoPoint_inputGeoPointEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputGeoPointEmpty)"]; } @end @implementation Api48_InputGeoPoint_inputGeoPoint - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf3b7acc9 serializeBlock:^bool (Api48_InputGeoPoint_inputGeoPoint *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.lat data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.plong data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputGeoPoint lat:%@ long:%@)", self.lat, self.plong]; } @end @interface Api48_messages_Chat () @property (nonatomic, strong) Api48_Chat * chat; @property (nonatomic, strong) NSArray * users; @end @interface Api48_messages_Chat_messages_chat () @end @implementation Api48_messages_Chat + (Api48_messages_Chat_messages_chat *)messages_chatWithChat:(Api48_Chat *)chat users:(NSArray *)users { Api48_messages_Chat_messages_chat *_object = [[Api48_messages_Chat_messages_chat alloc] init]; _object.chat = chat; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_messages_Chat_messages_chat - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x40e9002a serializeBlock:^bool (Api48_messages_Chat_messages_chat *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chat data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.chat chat:%@ users:%@)", self.chat, self.users]; } @end @interface Api48_ChatFull () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) Api48_Photo * chatPhoto; @property (nonatomic, strong) Api48_PeerNotifySettings * notifySettings; @property (nonatomic, strong) Api48_ExportedChatInvite * exportedInvite; @property (nonatomic, strong) NSArray * botInfo; @end @interface Api48_ChatFull_chatFull () @property (nonatomic, strong) Api48_ChatParticipants * participants; @end @interface Api48_ChatFull_channelFull () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * about; @property (nonatomic, strong) NSNumber * participantsCount; @property (nonatomic, strong) NSNumber * adminsCount; @property (nonatomic, strong) NSNumber * kickedCount; @property (nonatomic, strong) NSNumber * readInboxMaxId; @property (nonatomic, strong) NSNumber * unreadCount; @property (nonatomic, strong) NSNumber * unreadImportantCount; @property (nonatomic, strong) NSNumber * migratedFromChatId; @property (nonatomic, strong) NSNumber * migratedFromMaxId; @end @implementation Api48_ChatFull + (Api48_ChatFull_chatFull *)chatFullWithPid:(NSNumber *)pid participants:(Api48_ChatParticipants *)participants chatPhoto:(Api48_Photo *)chatPhoto notifySettings:(Api48_PeerNotifySettings *)notifySettings exportedInvite:(Api48_ExportedChatInvite *)exportedInvite botInfo:(NSArray *)botInfo { Api48_ChatFull_chatFull *_object = [[Api48_ChatFull_chatFull alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.participants = participants; _object.chatPhoto = chatPhoto; _object.notifySettings = notifySettings; _object.exportedInvite = exportedInvite; _object.botInfo = ({ NSMutableArray *botInfo_copy = [[NSMutableArray alloc] initWithCapacity:botInfo.count]; for (id botInfo_item in botInfo) { [botInfo_copy addObject:botInfo_item]; } id botInfo_result = [Api48__Serializer addSerializerToObject:botInfo_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; botInfo_result;}); return _object; } + (Api48_ChatFull_channelFull *)channelFullWithFlags:(NSNumber *)flags pid:(NSNumber *)pid about:(NSString *)about participantsCount:(NSNumber *)participantsCount adminsCount:(NSNumber *)adminsCount kickedCount:(NSNumber *)kickedCount readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount unreadImportantCount:(NSNumber *)unreadImportantCount chatPhoto:(Api48_Photo *)chatPhoto notifySettings:(Api48_PeerNotifySettings *)notifySettings exportedInvite:(Api48_ExportedChatInvite *)exportedInvite botInfo:(NSArray *)botInfo migratedFromChatId:(NSNumber *)migratedFromChatId migratedFromMaxId:(NSNumber *)migratedFromMaxId { Api48_ChatFull_channelFull *_object = [[Api48_ChatFull_channelFull alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.about = [Api48__Serializer addSerializerToObject:[about copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.participantsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:participantsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.adminsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:adminsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.kickedCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:kickedCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.readInboxMaxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadImportantCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadImportantCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.chatPhoto = chatPhoto; _object.notifySettings = notifySettings; _object.exportedInvite = exportedInvite; _object.botInfo = ({ NSMutableArray *botInfo_copy = [[NSMutableArray alloc] initWithCapacity:botInfo.count]; for (id botInfo_item in botInfo) { [botInfo_copy addObject:botInfo_item]; } id botInfo_result = [Api48__Serializer addSerializerToObject:botInfo_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; botInfo_result;}); _object.migratedFromChatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:migratedFromChatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.migratedFromMaxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:migratedFromMaxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ChatFull_chatFull - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2e02a614 serializeBlock:^bool (Api48_ChatFull_chatFull *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.participants data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chatPhoto data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.notifySettings data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.exportedInvite data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.botInfo data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatFull id:%@ participants:%@ chat_photo:%@ notify_settings:%@ exported_invite:%@ bot_info:%@)", self.pid, self.participants, self.chatPhoto, self.notifySettings, self.exportedInvite, self.botInfo]; } @end @implementation Api48_ChatFull_channelFull - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9e341ddf serializeBlock:^bool (Api48_ChatFull_channelFull *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.about data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.participantsCount data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.adminsCount data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.kickedCount data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.readInboxMaxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadImportantCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatPhoto data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.notifySettings data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.exportedInvite data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.botInfo data:data addSignature:true]) return false; if ([object.flags intValue] & (1 << 4)) { if (![Api48__Environment serializeObject:object.migratedFromChatId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 4)) { if (![Api48__Environment serializeObject:object.migratedFromMaxId data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelFull flags:%@ id:%@ about:%d participants_count:%@ admins_count:%@ kicked_count:%@ read_inbox_max_id:%@ unread_count:%@ unread_important_count:%@ chat_photo:%@ notify_settings:%@ exported_invite:%@ bot_info:%@ migrated_from_chat_id:%@ migrated_from_max_id:%@)", self.flags, self.pid, (int)[self.about length], self.participantsCount, self.adminsCount, self.kickedCount, self.readInboxMaxId, self.unreadCount, self.unreadImportantCount, self.chatPhoto, self.notifySettings, self.exportedInvite, self.botInfo, self.migratedFromChatId, self.migratedFromMaxId]; } @end @interface Api48_ChatParticipant () @property (nonatomic, strong) NSNumber * userId; @end @interface Api48_ChatParticipant_chatParticipant () @property (nonatomic, strong) NSNumber * inviterId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ChatParticipant_chatParticipantCreator () @end @interface Api48_ChatParticipant_chatParticipantAdmin () @property (nonatomic, strong) NSNumber * inviterId; @property (nonatomic, strong) NSNumber * date; @end @implementation Api48_ChatParticipant + (Api48_ChatParticipant_chatParticipant *)chatParticipantWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date { Api48_ChatParticipant_chatParticipant *_object = [[Api48_ChatParticipant_chatParticipant alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChatParticipant_chatParticipantCreator *)chatParticipantCreatorWithUserId:(NSNumber *)userId { Api48_ChatParticipant_chatParticipantCreator *_object = [[Api48_ChatParticipant_chatParticipantCreator alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChatParticipant_chatParticipantAdmin *)chatParticipantAdminWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date { Api48_ChatParticipant_chatParticipantAdmin *_object = [[Api48_ChatParticipant_chatParticipantAdmin alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ChatParticipant_chatParticipant - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc8d7493e serializeBlock:^bool (Api48_ChatParticipant_chatParticipant *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatParticipant user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date]; } @end @implementation Api48_ChatParticipant_chatParticipantCreator - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xda13538a serializeBlock:^bool (Api48_ChatParticipant_chatParticipantCreator *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatParticipantCreator user_id:%@)", self.userId]; } @end @implementation Api48_ChatParticipant_chatParticipantAdmin - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe2d6e436 serializeBlock:^bool (Api48_ChatParticipant_chatParticipantAdmin *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatParticipantAdmin user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date]; } @end @interface Api48_updates_Difference () @end @interface Api48_updates_Difference_updates_differenceEmpty () @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * seq; @end @interface Api48_updates_Difference_updates_difference () @property (nonatomic, strong) NSArray * pnewMessages; @property (nonatomic, strong) NSArray * pnewEncryptedMessages; @property (nonatomic, strong) NSArray * otherUpdates; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @property (nonatomic, strong) Api48_updates_State * state; @end @interface Api48_updates_Difference_updates_differenceSlice () @property (nonatomic, strong) NSArray * pnewMessages; @property (nonatomic, strong) NSArray * pnewEncryptedMessages; @property (nonatomic, strong) NSArray * otherUpdates; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @property (nonatomic, strong) Api48_updates_State * intermediateState; @end @implementation Api48_updates_Difference + (Api48_updates_Difference_updates_differenceEmpty *)updates_differenceEmptyWithDate:(NSNumber *)date seq:(NSNumber *)seq { Api48_updates_Difference_updates_differenceEmpty *_object = [[Api48_updates_Difference_updates_differenceEmpty alloc] init]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.seq = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:seq] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_updates_Difference_updates_difference *)updates_differenceWithPnewMessages:(NSArray *)pnewMessages pnewEncryptedMessages:(NSArray *)pnewEncryptedMessages otherUpdates:(NSArray *)otherUpdates chats:(NSArray *)chats users:(NSArray *)users state:(Api48_updates_State *)state { Api48_updates_Difference_updates_difference *_object = [[Api48_updates_Difference_updates_difference alloc] init]; _object.pnewMessages = ({ NSMutableArray *pnewMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewMessages.count]; for (id pnewMessages_item in pnewMessages) { [pnewMessages_copy addObject:pnewMessages_item]; } id pnewMessages_result = [Api48__Serializer addSerializerToObject:pnewMessages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pnewMessages_result;}); _object.pnewEncryptedMessages = ({ NSMutableArray *pnewEncryptedMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewEncryptedMessages.count]; for (id pnewEncryptedMessages_item in pnewEncryptedMessages) { [pnewEncryptedMessages_copy addObject:pnewEncryptedMessages_item]; } id pnewEncryptedMessages_result = [Api48__Serializer addSerializerToObject:pnewEncryptedMessages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pnewEncryptedMessages_result;}); _object.otherUpdates = ({ NSMutableArray *otherUpdates_copy = [[NSMutableArray alloc] initWithCapacity:otherUpdates.count]; for (id otherUpdates_item in otherUpdates) { [otherUpdates_copy addObject:otherUpdates_item]; } id otherUpdates_result = [Api48__Serializer addSerializerToObject:otherUpdates_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; otherUpdates_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); _object.state = state; return _object; } + (Api48_updates_Difference_updates_differenceSlice *)updates_differenceSliceWithPnewMessages:(NSArray *)pnewMessages pnewEncryptedMessages:(NSArray *)pnewEncryptedMessages otherUpdates:(NSArray *)otherUpdates chats:(NSArray *)chats users:(NSArray *)users intermediateState:(Api48_updates_State *)intermediateState { Api48_updates_Difference_updates_differenceSlice *_object = [[Api48_updates_Difference_updates_differenceSlice alloc] init]; _object.pnewMessages = ({ NSMutableArray *pnewMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewMessages.count]; for (id pnewMessages_item in pnewMessages) { [pnewMessages_copy addObject:pnewMessages_item]; } id pnewMessages_result = [Api48__Serializer addSerializerToObject:pnewMessages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pnewMessages_result;}); _object.pnewEncryptedMessages = ({ NSMutableArray *pnewEncryptedMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewEncryptedMessages.count]; for (id pnewEncryptedMessages_item in pnewEncryptedMessages) { [pnewEncryptedMessages_copy addObject:pnewEncryptedMessages_item]; } id pnewEncryptedMessages_result = [Api48__Serializer addSerializerToObject:pnewEncryptedMessages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pnewEncryptedMessages_result;}); _object.otherUpdates = ({ NSMutableArray *otherUpdates_copy = [[NSMutableArray alloc] initWithCapacity:otherUpdates.count]; for (id otherUpdates_item in otherUpdates) { [otherUpdates_copy addObject:otherUpdates_item]; } id otherUpdates_result = [Api48__Serializer addSerializerToObject:otherUpdates_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; otherUpdates_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); _object.intermediateState = intermediateState; return _object; } @end @implementation Api48_updates_Difference_updates_differenceEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5d75a138 serializeBlock:^bool (Api48_updates_Difference_updates_differenceEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.seq data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.differenceEmpty date:%@ seq:%@)", self.date, self.seq]; } @end @implementation Api48_updates_Difference_updates_difference - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf49ca0 serializeBlock:^bool (Api48_updates_Difference_updates_difference *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pnewMessages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pnewEncryptedMessages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.otherUpdates data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.state data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.difference new_messages:%@ new_encrypted_messages:%@ other_updates:%@ chats:%@ users:%@ state:%@)", self.pnewMessages, self.pnewEncryptedMessages, self.otherUpdates, self.chats, self.users, self.state]; } @end @implementation Api48_updates_Difference_updates_differenceSlice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa8fb1981 serializeBlock:^bool (Api48_updates_Difference_updates_differenceSlice *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pnewMessages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pnewEncryptedMessages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.otherUpdates data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.intermediateState data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.differenceSlice new_messages:%@ new_encrypted_messages:%@ other_updates:%@ chats:%@ users:%@ intermediate_state:%@)", self.pnewMessages, self.pnewEncryptedMessages, self.otherUpdates, self.chats, self.users, self.intermediateState]; } @end @interface Api48_SchemeMethod () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSString * method; @property (nonatomic, strong) NSArray * params; @property (nonatomic, strong) NSString * type; @end @interface Api48_SchemeMethod_schemeMethod () @end @implementation Api48_SchemeMethod + (Api48_SchemeMethod_schemeMethod *)schemeMethodWithPid:(NSNumber *)pid method:(NSString *)method params:(NSArray *)params type:(NSString *)type { Api48_SchemeMethod_schemeMethod *_object = [[Api48_SchemeMethod_schemeMethod alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.method = [Api48__Serializer addSerializerToObject:[method copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.params = ({ NSMutableArray *params_copy = [[NSMutableArray alloc] initWithCapacity:params.count]; for (id params_item in params) { [params_copy addObject:params_item]; } id params_result = [Api48__Serializer addSerializerToObject:params_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; params_result;}); _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_SchemeMethod_schemeMethod - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x479357c0 serializeBlock:^bool (Api48_SchemeMethod_schemeMethod *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.method data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.params data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(schemeMethod id:%@ method:%d params:%@ type:%d)", self.pid, (int)[self.method length], self.params, (int)[self.type length]]; } @end @interface Api48_InputPhotoCrop () @end @interface Api48_InputPhotoCrop_inputPhotoCropAuto () @end @interface Api48_InputPhotoCrop_inputPhotoCrop () @property (nonatomic, strong) NSNumber * cropLeft; @property (nonatomic, strong) NSNumber * cropTop; @property (nonatomic, strong) NSNumber * cropWidth; @end @implementation Api48_InputPhotoCrop + (Api48_InputPhotoCrop_inputPhotoCropAuto *)inputPhotoCropAuto { Api48_InputPhotoCrop_inputPhotoCropAuto *_object = [[Api48_InputPhotoCrop_inputPhotoCropAuto alloc] init]; return _object; } + (Api48_InputPhotoCrop_inputPhotoCrop *)inputPhotoCropWithCropLeft:(NSNumber *)cropLeft cropTop:(NSNumber *)cropTop cropWidth:(NSNumber *)cropWidth { Api48_InputPhotoCrop_inputPhotoCrop *_object = [[Api48_InputPhotoCrop_inputPhotoCrop alloc] init]; _object.cropLeft = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:cropLeft] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; _object.cropTop = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:cropTop] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; _object.cropWidth = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:cropWidth] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; return _object; } @end @implementation Api48_InputPhotoCrop_inputPhotoCropAuto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xade6b004 serializeBlock:^bool (__unused Api48_InputPhotoCrop_inputPhotoCropAuto *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPhotoCropAuto)"]; } @end @implementation Api48_InputPhotoCrop_inputPhotoCrop - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd9915325 serializeBlock:^bool (Api48_InputPhotoCrop_inputPhotoCrop *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.cropLeft data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.cropTop data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.cropWidth data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPhotoCrop crop_left:%@ crop_top:%@ crop_width:%@)", self.cropLeft, self.cropTop, self.cropWidth]; } @end @interface Api48_Photo () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_Photo_photoEmpty () @end @interface Api48_Photo_wallPhoto () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSString * caption; @property (nonatomic, strong) Api48_GeoPoint * geo; @property (nonatomic, strong) Api48_Bool * unread; @property (nonatomic, strong) NSArray * sizes; @end @interface Api48_Photo_photo () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSArray * sizes; @end @implementation Api48_Photo + (Api48_Photo_photoEmpty *)photoEmptyWithPid:(NSNumber *)pid { Api48_Photo_photoEmpty *_object = [[Api48_Photo_photoEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_Photo_wallPhoto *)wallPhotoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash userId:(NSNumber *)userId date:(NSNumber *)date caption:(NSString *)caption geo:(Api48_GeoPoint *)geo unread:(Api48_Bool *)unread sizes:(NSArray *)sizes { Api48_Photo_wallPhoto *_object = [[Api48_Photo_wallPhoto alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.geo = geo; _object.unread = unread; _object.sizes = ({ NSMutableArray *sizes_copy = [[NSMutableArray alloc] initWithCapacity:sizes.count]; for (id sizes_item in sizes) { [sizes_copy addObject:sizes_item]; } id sizes_result = [Api48__Serializer addSerializerToObject:sizes_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; sizes_result;}); return _object; } + (Api48_Photo_photo *)photoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date sizes:(NSArray *)sizes { Api48_Photo_photo *_object = [[Api48_Photo_photo alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.sizes = ({ NSMutableArray *sizes_copy = [[NSMutableArray alloc] initWithCapacity:sizes.count]; for (id sizes_item in sizes) { [sizes_copy addObject:sizes_item]; } id sizes_result = [Api48__Serializer addSerializerToObject:sizes_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; sizes_result;}); return _object; } @end @implementation Api48_Photo_photoEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2331b22d serializeBlock:^bool (Api48_Photo_photoEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photoEmpty id:%@)", self.pid]; } @end @implementation Api48_Photo_wallPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x559dc1e2 serializeBlock:^bool (Api48_Photo_wallPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.geo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.unread data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.sizes data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(wallPhoto id:%@ access_hash:%@ user_id:%@ date:%@ caption:%d geo:%@ unread:%@ sizes:%@)", self.pid, self.accessHash, self.userId, self.date, (int)[self.caption length], self.geo, self.unread, self.sizes]; } @end @implementation Api48_Photo_photo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xcded42fe serializeBlock:^bool (Api48_Photo_photo *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sizes data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photo id:%@ access_hash:%@ date:%@ sizes:%@)", self.pid, self.accessHash, self.date, self.sizes]; } @end @interface Api48_Chat () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_Chat_chatEmpty () @end @interface Api48_Chat_channelForbidden () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSString * title; @end @interface Api48_Chat_chatForbidden () @property (nonatomic, strong) NSString * title; @end @interface Api48_Chat_chat () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) Api48_ChatPhoto * photo; @property (nonatomic, strong) NSNumber * participantsCount; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * version; @property (nonatomic, strong) Api48_InputChannel * migratedTo; @end @interface Api48_Chat_channel () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * username; @property (nonatomic, strong) Api48_ChatPhoto * photo; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * version; @property (nonatomic, strong) NSString * restrictionReason; @end @implementation Api48_Chat + (Api48_Chat_chatEmpty *)chatEmptyWithPid:(NSNumber *)pid { Api48_Chat_chatEmpty *_object = [[Api48_Chat_chatEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Chat_channelForbidden *)channelForbiddenWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash title:(NSString *)title { Api48_Chat_channelForbidden *_object = [[Api48_Chat_channelForbidden alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Chat_chatForbidden *)chatForbiddenWithPid:(NSNumber *)pid title:(NSString *)title { Api48_Chat_chatForbidden *_object = [[Api48_Chat_chatForbidden alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Chat_chat *)chatWithFlags:(NSNumber *)flags pid:(NSNumber *)pid title:(NSString *)title photo:(Api48_ChatPhoto *)photo participantsCount:(NSNumber *)participantsCount date:(NSNumber *)date version:(NSNumber *)version migratedTo:(Api48_InputChannel *)migratedTo { Api48_Chat_chat *_object = [[Api48_Chat_chat alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.photo = photo; _object.participantsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:participantsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.migratedTo = migratedTo; return _object; } + (Api48_Chat_channel *)channelWithFlags:(NSNumber *)flags pid:(NSNumber *)pid accessHash:(NSNumber *)accessHash title:(NSString *)title username:(NSString *)username photo:(Api48_ChatPhoto *)photo date:(NSNumber *)date version:(NSNumber *)version restrictionReason:(NSString *)restrictionReason { Api48_Chat_channel *_object = [[Api48_Chat_channel alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.username = [Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.photo = photo; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.restrictionReason = [Api48__Serializer addSerializerToObject:[restrictionReason copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_Chat_chatEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9ba2d800 serializeBlock:^bool (Api48_Chat_chatEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatEmpty id:%@)", self.pid]; } @end @implementation Api48_Chat_channelForbidden - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2d85832c serializeBlock:^bool (Api48_Chat_channelForbidden *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelForbidden id:%@ access_hash:%@ title:%d)", self.pid, self.accessHash, (int)[self.title length]]; } @end @implementation Api48_Chat_chatForbidden - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7328bdb serializeBlock:^bool (Api48_Chat_chatForbidden *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatForbidden id:%@ title:%d)", self.pid, (int)[self.title length]]; } @end @implementation Api48_Chat_chat - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd91cdd54 serializeBlock:^bool (Api48_Chat_chat *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.participantsCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.migratedTo data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chat flags:%@ id:%@ title:%d photo:%@ participants_count:%@ date:%@ version:%@ migrated_to:%@)", self.flags, self.pid, (int)[self.title length], self.photo, self.participantsCount, self.date, self.version, self.migratedTo]; } @end @implementation Api48_Chat_channel - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4b1b7506 serializeBlock:^bool (Api48_Chat_channel *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.username data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 9)) { if (![Api48__Environment serializeObject:object.restrictionReason data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channel flags:%@ id:%@ access_hash:%@ title:%d username:%d photo:%@ date:%@ version:%@ restriction_reason:%d)", self.flags, self.pid, self.accessHash, (int)[self.title length], (int)[self.username length], self.photo, self.date, self.version, (int)[self.restrictionReason length]]; } @end @interface Api48_ChatInvite () @end @interface Api48_ChatInvite_chatInviteAlready () @property (nonatomic, strong) Api48_Chat * chat; @end @interface Api48_ChatInvite_chatInvite () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * title; @end @implementation Api48_ChatInvite + (Api48_ChatInvite_chatInviteAlready *)chatInviteAlreadyWithChat:(Api48_Chat *)chat { Api48_ChatInvite_chatInviteAlready *_object = [[Api48_ChatInvite_chatInviteAlready alloc] init]; _object.chat = chat; return _object; } + (Api48_ChatInvite_chatInvite *)chatInviteWithFlags:(NSNumber *)flags title:(NSString *)title { Api48_ChatInvite_chatInvite *_object = [[Api48_ChatInvite_chatInvite alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_ChatInvite_chatInviteAlready - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5a686d7c serializeBlock:^bool (Api48_ChatInvite_chatInviteAlready *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chat data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatInviteAlready chat:%@)", self.chat]; } @end @implementation Api48_ChatInvite_chatInvite - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x93e99b60 serializeBlock:^bool (Api48_ChatInvite_chatInvite *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatInvite flags:%@ title:%d)", self.flags, (int)[self.title length]]; } @end @interface Api48_contacts_Requests () @property (nonatomic, strong) NSArray * requests; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_Requests_contacts_requests () @end @interface Api48_contacts_Requests_contacts_requestsSlice () @property (nonatomic, strong) NSNumber * count; @end @implementation Api48_contacts_Requests + (Api48_contacts_Requests_contacts_requests *)contacts_requestsWithRequests:(NSArray *)requests users:(NSArray *)users { Api48_contacts_Requests_contacts_requests *_object = [[Api48_contacts_Requests_contacts_requests alloc] init]; _object.requests = ({ NSMutableArray *requests_copy = [[NSMutableArray alloc] initWithCapacity:requests.count]; for (id requests_item in requests) { [requests_copy addObject:requests_item]; } id requests_result = [Api48__Serializer addSerializerToObject:requests_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; requests_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_contacts_Requests_contacts_requestsSlice *)contacts_requestsSliceWithCount:(NSNumber *)count requests:(NSArray *)requests users:(NSArray *)users { Api48_contacts_Requests_contacts_requestsSlice *_object = [[Api48_contacts_Requests_contacts_requestsSlice alloc] init]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.requests = ({ NSMutableArray *requests_copy = [[NSMutableArray alloc] initWithCapacity:requests.count]; for (id requests_item in requests) { [requests_copy addObject:requests_item]; } id requests_result = [Api48__Serializer addSerializerToObject:requests_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; requests_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_Requests_contacts_requests - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6262c36c serializeBlock:^bool (Api48_contacts_Requests_contacts_requests *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.requests data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.requests requests:%@ users:%@)", self.requests, self.users]; } @end @implementation Api48_contacts_Requests_contacts_requestsSlice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6f585b8c serializeBlock:^bool (Api48_contacts_Requests_contacts_requestsSlice *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.requests data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.requestsSlice count:%@ requests:%@ users:%@)", self.count, self.requests, self.users]; } @end @interface Api48_channels_ChannelParticipants () @property (nonatomic, strong) NSNumber * count; @property (nonatomic, strong) NSArray * participants; @property (nonatomic, strong) NSArray * users; @end @interface Api48_channels_ChannelParticipants_channels_channelParticipants () @end @implementation Api48_channels_ChannelParticipants + (Api48_channels_ChannelParticipants_channels_channelParticipants *)channels_channelParticipantsWithCount:(NSNumber *)count participants:(NSArray *)participants users:(NSArray *)users { Api48_channels_ChannelParticipants_channels_channelParticipants *_object = [[Api48_channels_ChannelParticipants_channels_channelParticipants alloc] init]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.participants = ({ NSMutableArray *participants_copy = [[NSMutableArray alloc] initWithCapacity:participants.count]; for (id participants_item in participants) { [participants_copy addObject:participants_item]; } id participants_result = [Api48__Serializer addSerializerToObject:participants_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; participants_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_channels_ChannelParticipants_channels_channelParticipants - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf56ee2a8 serializeBlock:^bool (Api48_channels_ChannelParticipants_channels_channelParticipants *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.participants data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channels.channelParticipants count:%@ participants:%@ users:%@)", self.count, self.participants, self.users]; } @end @interface Api48_GeoPlaceName () @property (nonatomic, strong) NSString * country; @property (nonatomic, strong) NSString * state; @property (nonatomic, strong) NSString * city; @property (nonatomic, strong) NSString * district; @property (nonatomic, strong) NSString * street; @end @interface Api48_GeoPlaceName_geoPlaceName () @end @implementation Api48_GeoPlaceName + (Api48_GeoPlaceName_geoPlaceName *)geoPlaceNameWithCountry:(NSString *)country state:(NSString *)state city:(NSString *)city district:(NSString *)district street:(NSString *)street { Api48_GeoPlaceName_geoPlaceName *_object = [[Api48_GeoPlaceName_geoPlaceName alloc] init]; _object.country = [Api48__Serializer addSerializerToObject:[country copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.state = [Api48__Serializer addSerializerToObject:[state copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.city = [Api48__Serializer addSerializerToObject:[city copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.district = [Api48__Serializer addSerializerToObject:[district copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.street = [Api48__Serializer addSerializerToObject:[street copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_GeoPlaceName_geoPlaceName - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3819538f serializeBlock:^bool (Api48_GeoPlaceName_geoPlaceName *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.country data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.state data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.city data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.district data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.street data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(geoPlaceName country:%d state:%d city:%d district:%d street:%d)", (int)[self.country length], (int)[self.state length], (int)[self.city length], (int)[self.district length], (int)[self.street length]]; } @end @interface Api48_UserFull () @property (nonatomic, strong) Api48_User * user; @property (nonatomic, strong) Api48_contacts_Link * link; @property (nonatomic, strong) Api48_Photo * profilePhoto; @property (nonatomic, strong) Api48_PeerNotifySettings * notifySettings; @property (nonatomic, strong) Api48_Bool * blocked; @property (nonatomic, strong) Api48_BotInfo * botInfo; @end @interface Api48_UserFull_userFull () @end @implementation Api48_UserFull + (Api48_UserFull_userFull *)userFullWithUser:(Api48_User *)user link:(Api48_contacts_Link *)link profilePhoto:(Api48_Photo *)profilePhoto notifySettings:(Api48_PeerNotifySettings *)notifySettings blocked:(Api48_Bool *)blocked botInfo:(Api48_BotInfo *)botInfo { Api48_UserFull_userFull *_object = [[Api48_UserFull_userFull alloc] init]; _object.user = user; _object.link = link; _object.profilePhoto = profilePhoto; _object.notifySettings = notifySettings; _object.blocked = blocked; _object.botInfo = botInfo; return _object; } @end @implementation Api48_UserFull_userFull - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5a89ac5b serializeBlock:^bool (Api48_UserFull_userFull *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.user data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.link data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.profilePhoto data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.notifySettings data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.blocked data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.botInfo data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userFull user:%@ link:%@ profile_photo:%@ notify_settings:%@ blocked:%@ bot_info:%@)", self.user, self.link, self.profilePhoto, self.notifySettings, self.blocked, self.botInfo]; } @end @interface Api48_InputPeerNotifyEvents () @end @interface Api48_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty () @end @interface Api48_InputPeerNotifyEvents_inputPeerNotifyEventsAll () @end @implementation Api48_InputPeerNotifyEvents + (Api48_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty *)inputPeerNotifyEventsEmpty { Api48_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty *_object = [[Api48_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty alloc] init]; return _object; } + (Api48_InputPeerNotifyEvents_inputPeerNotifyEventsAll *)inputPeerNotifyEventsAll { Api48_InputPeerNotifyEvents_inputPeerNotifyEventsAll *_object = [[Api48_InputPeerNotifyEvents_inputPeerNotifyEventsAll alloc] init]; return _object; } @end @implementation Api48_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf03064d8 serializeBlock:^bool (__unused Api48_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerNotifyEventsEmpty)"]; } @end @implementation Api48_InputPeerNotifyEvents_inputPeerNotifyEventsAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe86a2c74 serializeBlock:^bool (__unused Api48_InputPeerNotifyEvents_inputPeerNotifyEventsAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerNotifyEventsAll)"]; } @end @interface Api48_InputChannel () @end @interface Api48_InputChannel_inputChannelEmpty () @end @interface Api48_InputChannel_inputChannel () @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) NSNumber * accessHash; @end @implementation Api48_InputChannel + (Api48_InputChannel_inputChannelEmpty *)inputChannelEmpty { Api48_InputChannel_inputChannelEmpty *_object = [[Api48_InputChannel_inputChannelEmpty alloc] init]; return _object; } + (Api48_InputChannel_inputChannel *)inputChannelWithChannelId:(NSNumber *)channelId accessHash:(NSNumber *)accessHash { Api48_InputChannel_inputChannel *_object = [[Api48_InputChannel_inputChannel alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputChannel_inputChannelEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xee8c1e86 serializeBlock:^bool (__unused Api48_InputChannel_inputChannelEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputChannelEmpty)"]; } @end @implementation Api48_InputChannel_inputChannel - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xafeb712e serializeBlock:^bool (Api48_InputChannel_inputChannel *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputChannel channel_id:%@ access_hash:%@)", self.channelId, self.accessHash]; } @end @interface Api48_DcOption () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSString * ipAddress; @property (nonatomic, strong) NSNumber * port; @end @interface Api48_DcOption_dcOption () @end @implementation Api48_DcOption + (Api48_DcOption_dcOption *)dcOptionWithFlags:(NSNumber *)flags pid:(NSNumber *)pid ipAddress:(NSString *)ipAddress port:(NSNumber *)port { Api48_DcOption_dcOption *_object = [[Api48_DcOption_dcOption alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ipAddress = [Api48__Serializer addSerializerToObject:[ipAddress copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.port = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:port] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_DcOption_dcOption - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5d8c6cc serializeBlock:^bool (Api48_DcOption_dcOption *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ipAddress data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.port data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(dcOption flags:%@ id:%@ ip_address:%d port:%@)", self.flags, self.pid, (int)[self.ipAddress length], self.port]; } @end @interface Api48_MessageGroup () @property (nonatomic, strong) NSNumber * minId; @property (nonatomic, strong) NSNumber * maxId; @property (nonatomic, strong) NSNumber * count; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_MessageGroup_messageGroup () @end @implementation Api48_MessageGroup + (Api48_MessageGroup_messageGroup *)messageGroupWithMinId:(NSNumber *)minId maxId:(NSNumber *)maxId count:(NSNumber *)count date:(NSNumber *)date { Api48_MessageGroup_messageGroup *_object = [[Api48_MessageGroup_messageGroup alloc] init]; _object.minId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:minId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.maxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_MessageGroup_messageGroup - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe8346f53 serializeBlock:^bool (Api48_MessageGroup_messageGroup *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.minId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.maxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageGroup min_id:%@ max_id:%@ count:%@ date:%@)", self.minId, self.maxId, self.count, self.date]; } @end @interface Api48_account_PasswordSettings () @property (nonatomic, strong) NSString * email; @end @interface Api48_account_PasswordSettings_account_passwordSettings () @end @implementation Api48_account_PasswordSettings + (Api48_account_PasswordSettings_account_passwordSettings *)account_passwordSettingsWithEmail:(NSString *)email { Api48_account_PasswordSettings_account_passwordSettings *_object = [[Api48_account_PasswordSettings_account_passwordSettings alloc] init]; _object.email = [Api48__Serializer addSerializerToObject:[email copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_account_PasswordSettings_account_passwordSettings - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb7b72ab3 serializeBlock:^bool (Api48_account_PasswordSettings_account_passwordSettings *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.email data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.passwordSettings email:%d)", (int)[self.email length]]; } @end @interface Api48_help_AppUpdate () @end @interface Api48_help_AppUpdate_help_appUpdate () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) Api48_Bool * critical; @property (nonatomic, strong) NSString * url; @property (nonatomic, strong) NSString * text; @end @interface Api48_help_AppUpdate_help_noAppUpdate () @end @implementation Api48_help_AppUpdate + (Api48_help_AppUpdate_help_appUpdate *)help_appUpdateWithPid:(NSNumber *)pid critical:(Api48_Bool *)critical url:(NSString *)url text:(NSString *)text { Api48_help_AppUpdate_help_appUpdate *_object = [[Api48_help_AppUpdate_help_appUpdate alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.critical = critical; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.text = [Api48__Serializer addSerializerToObject:[text copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_help_AppUpdate_help_noAppUpdate *)help_noAppUpdate { Api48_help_AppUpdate_help_noAppUpdate *_object = [[Api48_help_AppUpdate_help_noAppUpdate alloc] init]; return _object; } @end @implementation Api48_help_AppUpdate_help_appUpdate - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8987f311 serializeBlock:^bool (Api48_help_AppUpdate_help_appUpdate *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.critical data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.text data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.appUpdate id:%@ critical:%@ url:%d text:%d)", self.pid, self.critical, (int)[self.url length], (int)[self.text length]]; } @end @implementation Api48_help_AppUpdate_help_noAppUpdate - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc45a6536 serializeBlock:^bool (__unused Api48_help_AppUpdate_help_noAppUpdate *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.noAppUpdate)"]; } @end @interface Api48_channels_ChannelParticipant () @property (nonatomic, strong) Api48_ChannelParticipant * participant; @property (nonatomic, strong) NSArray * users; @end @interface Api48_channels_ChannelParticipant_channels_channelParticipant () @end @implementation Api48_channels_ChannelParticipant + (Api48_channels_ChannelParticipant_channels_channelParticipant *)channels_channelParticipantWithParticipant:(Api48_ChannelParticipant *)participant users:(NSArray *)users { Api48_channels_ChannelParticipant_channels_channelParticipant *_object = [[Api48_channels_ChannelParticipant_channels_channelParticipant alloc] init]; _object.participant = participant; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_channels_ChannelParticipant_channels_channelParticipant - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd0d9b163 serializeBlock:^bool (Api48_channels_ChannelParticipant_channels_channelParticipant *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.participant data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channels.channelParticipant participant:%@ users:%@)", self.participant, self.users]; } @end @interface Api48_contacts_SentLink () @property (nonatomic, strong) Api48_messages_Message * message; @property (nonatomic, strong) Api48_contacts_Link * link; @end @interface Api48_contacts_SentLink_contacts_sentLink () @end @implementation Api48_contacts_SentLink + (Api48_contacts_SentLink_contacts_sentLink *)contacts_sentLinkWithMessage:(Api48_messages_Message *)message link:(Api48_contacts_Link *)link { Api48_contacts_SentLink_contacts_sentLink *_object = [[Api48_contacts_SentLink_contacts_sentLink alloc] init]; _object.message = message; _object.link = link; return _object; } @end @implementation Api48_contacts_SentLink_contacts_sentLink - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x96a0c63e serializeBlock:^bool (Api48_contacts_SentLink_contacts_sentLink *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.link data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.sentLink message:%@ link:%@)", self.message, self.link]; } @end @interface Api48_ChannelParticipantRole () @end @interface Api48_ChannelParticipantRole_channelRoleEmpty () @end @interface Api48_ChannelParticipantRole_channelRoleModerator () @end @interface Api48_ChannelParticipantRole_channelRoleEditor () @end @implementation Api48_ChannelParticipantRole + (Api48_ChannelParticipantRole_channelRoleEmpty *)channelRoleEmpty { Api48_ChannelParticipantRole_channelRoleEmpty *_object = [[Api48_ChannelParticipantRole_channelRoleEmpty alloc] init]; return _object; } + (Api48_ChannelParticipantRole_channelRoleModerator *)channelRoleModerator { Api48_ChannelParticipantRole_channelRoleModerator *_object = [[Api48_ChannelParticipantRole_channelRoleModerator alloc] init]; return _object; } + (Api48_ChannelParticipantRole_channelRoleEditor *)channelRoleEditor { Api48_ChannelParticipantRole_channelRoleEditor *_object = [[Api48_ChannelParticipantRole_channelRoleEditor alloc] init]; return _object; } @end @implementation Api48_ChannelParticipantRole_channelRoleEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb285a0c6 serializeBlock:^bool (__unused Api48_ChannelParticipantRole_channelRoleEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelRoleEmpty)"]; } @end @implementation Api48_ChannelParticipantRole_channelRoleModerator - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9618d975 serializeBlock:^bool (__unused Api48_ChannelParticipantRole_channelRoleModerator *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelRoleModerator)"]; } @end @implementation Api48_ChannelParticipantRole_channelRoleEditor - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x820bfe8c serializeBlock:^bool (__unused Api48_ChannelParticipantRole_channelRoleEditor *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelRoleEditor)"]; } @end @interface Api48_storage_FileType () @end @interface Api48_storage_FileType_storage_fileUnknown () @end @interface Api48_storage_FileType_storage_fileJpeg () @end @interface Api48_storage_FileType_storage_fileGif () @end @interface Api48_storage_FileType_storage_filePng () @end @interface Api48_storage_FileType_storage_filePdf () @end @interface Api48_storage_FileType_storage_fileMp3 () @end @interface Api48_storage_FileType_storage_fileMov () @end @interface Api48_storage_FileType_storage_filePartial () @end @interface Api48_storage_FileType_storage_fileMp4 () @end @interface Api48_storage_FileType_storage_fileWebp () @end @implementation Api48_storage_FileType + (Api48_storage_FileType_storage_fileUnknown *)storage_fileUnknown { Api48_storage_FileType_storage_fileUnknown *_object = [[Api48_storage_FileType_storage_fileUnknown alloc] init]; return _object; } + (Api48_storage_FileType_storage_fileJpeg *)storage_fileJpeg { Api48_storage_FileType_storage_fileJpeg *_object = [[Api48_storage_FileType_storage_fileJpeg alloc] init]; return _object; } + (Api48_storage_FileType_storage_fileGif *)storage_fileGif { Api48_storage_FileType_storage_fileGif *_object = [[Api48_storage_FileType_storage_fileGif alloc] init]; return _object; } + (Api48_storage_FileType_storage_filePng *)storage_filePng { Api48_storage_FileType_storage_filePng *_object = [[Api48_storage_FileType_storage_filePng alloc] init]; return _object; } + (Api48_storage_FileType_storage_filePdf *)storage_filePdf { Api48_storage_FileType_storage_filePdf *_object = [[Api48_storage_FileType_storage_filePdf alloc] init]; return _object; } + (Api48_storage_FileType_storage_fileMp3 *)storage_fileMp3 { Api48_storage_FileType_storage_fileMp3 *_object = [[Api48_storage_FileType_storage_fileMp3 alloc] init]; return _object; } + (Api48_storage_FileType_storage_fileMov *)storage_fileMov { Api48_storage_FileType_storage_fileMov *_object = [[Api48_storage_FileType_storage_fileMov alloc] init]; return _object; } + (Api48_storage_FileType_storage_filePartial *)storage_filePartial { Api48_storage_FileType_storage_filePartial *_object = [[Api48_storage_FileType_storage_filePartial alloc] init]; return _object; } + (Api48_storage_FileType_storage_fileMp4 *)storage_fileMp4 { Api48_storage_FileType_storage_fileMp4 *_object = [[Api48_storage_FileType_storage_fileMp4 alloc] init]; return _object; } + (Api48_storage_FileType_storage_fileWebp *)storage_fileWebp { Api48_storage_FileType_storage_fileWebp *_object = [[Api48_storage_FileType_storage_fileWebp alloc] init]; return _object; } @end @implementation Api48_storage_FileType_storage_fileUnknown - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xaa963b05 serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileUnknown *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileUnknown)"]; } @end @implementation Api48_storage_FileType_storage_fileJpeg - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7efe0e serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileJpeg *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileJpeg)"]; } @end @implementation Api48_storage_FileType_storage_fileGif - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xcae1aadf serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileGif *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileGif)"]; } @end @implementation Api48_storage_FileType_storage_filePng - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa4f63c0 serializeBlock:^bool (__unused Api48_storage_FileType_storage_filePng *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.filePng)"]; } @end @implementation Api48_storage_FileType_storage_filePdf - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xae1e508d serializeBlock:^bool (__unused Api48_storage_FileType_storage_filePdf *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.filePdf)"]; } @end @implementation Api48_storage_FileType_storage_fileMp3 - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x528a0677 serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileMp3 *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileMp3)"]; } @end @implementation Api48_storage_FileType_storage_fileMov - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4b09ebbc serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileMov *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileMov)"]; } @end @implementation Api48_storage_FileType_storage_filePartial - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x40bc6f52 serializeBlock:^bool (__unused Api48_storage_FileType_storage_filePartial *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.filePartial)"]; } @end @implementation Api48_storage_FileType_storage_fileMp4 - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb3cea0e4 serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileMp4 *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileMp4)"]; } @end @implementation Api48_storage_FileType_storage_fileWebp - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1081464c serializeBlock:^bool (__unused Api48_storage_FileType_storage_fileWebp *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(storage.fileWebp)"]; } @end @interface Api48_InputEncryptedFile () @end @interface Api48_InputEncryptedFile_inputEncryptedFileEmpty () @end @interface Api48_InputEncryptedFile_inputEncryptedFileUploaded () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * parts; @property (nonatomic, strong) NSString * md5Checksum; @property (nonatomic, strong) NSNumber * keyFingerprint; @end @interface Api48_InputEncryptedFile_inputEncryptedFile () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @interface Api48_InputEncryptedFile_inputEncryptedFileBigUploaded () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * parts; @property (nonatomic, strong) NSNumber * keyFingerprint; @end @implementation Api48_InputEncryptedFile + (Api48_InputEncryptedFile_inputEncryptedFileEmpty *)inputEncryptedFileEmpty { Api48_InputEncryptedFile_inputEncryptedFileEmpty *_object = [[Api48_InputEncryptedFile_inputEncryptedFileEmpty alloc] init]; return _object; } + (Api48_InputEncryptedFile_inputEncryptedFileUploaded *)inputEncryptedFileUploadedWithPid:(NSNumber *)pid parts:(NSNumber *)parts md5Checksum:(NSString *)md5Checksum keyFingerprint:(NSNumber *)keyFingerprint { Api48_InputEncryptedFile_inputEncryptedFileUploaded *_object = [[Api48_InputEncryptedFile_inputEncryptedFileUploaded alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.parts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:parts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.md5Checksum = [Api48__Serializer addSerializerToObject:[md5Checksum copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.keyFingerprint = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_InputEncryptedFile_inputEncryptedFile *)inputEncryptedFileWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputEncryptedFile_inputEncryptedFile *_object = [[Api48_InputEncryptedFile_inputEncryptedFile alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_InputEncryptedFile_inputEncryptedFileBigUploaded *)inputEncryptedFileBigUploadedWithPid:(NSNumber *)pid parts:(NSNumber *)parts keyFingerprint:(NSNumber *)keyFingerprint { Api48_InputEncryptedFile_inputEncryptedFileBigUploaded *_object = [[Api48_InputEncryptedFile_inputEncryptedFileBigUploaded alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.parts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:parts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.keyFingerprint = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_InputEncryptedFile_inputEncryptedFileEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1837c364 serializeBlock:^bool (__unused Api48_InputEncryptedFile_inputEncryptedFileEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputEncryptedFileEmpty)"]; } @end @implementation Api48_InputEncryptedFile_inputEncryptedFileUploaded - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x64bd0306 serializeBlock:^bool (Api48_InputEncryptedFile_inputEncryptedFileUploaded *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.parts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.md5Checksum data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.keyFingerprint data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputEncryptedFileUploaded id:%@ parts:%@ md5_checksum:%d key_fingerprint:%@)", self.pid, self.parts, (int)[self.md5Checksum length], self.keyFingerprint]; } @end @implementation Api48_InputEncryptedFile_inputEncryptedFile - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5a17b5e5 serializeBlock:^bool (Api48_InputEncryptedFile_inputEncryptedFile *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputEncryptedFile id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @implementation Api48_InputEncryptedFile_inputEncryptedFileBigUploaded - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2dc173c8 serializeBlock:^bool (Api48_InputEncryptedFile_inputEncryptedFileBigUploaded *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.parts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.keyFingerprint data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputEncryptedFileBigUploaded id:%@ parts:%@ key_fingerprint:%@)", self.pid, self.parts, self.keyFingerprint]; } @end @interface Api48_messages_SentEncryptedMessage () @property (nonatomic, strong) NSNumber * date; @end @interface Api48_messages_SentEncryptedMessage_messages_sentEncryptedMessage () @end @interface Api48_messages_SentEncryptedMessage_messages_sentEncryptedFile () @property (nonatomic, strong) Api48_EncryptedFile * file; @end @implementation Api48_messages_SentEncryptedMessage + (Api48_messages_SentEncryptedMessage_messages_sentEncryptedMessage *)messages_sentEncryptedMessageWithDate:(NSNumber *)date { Api48_messages_SentEncryptedMessage_messages_sentEncryptedMessage *_object = [[Api48_messages_SentEncryptedMessage_messages_sentEncryptedMessage alloc] init]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_messages_SentEncryptedMessage_messages_sentEncryptedFile *)messages_sentEncryptedFileWithDate:(NSNumber *)date file:(Api48_EncryptedFile *)file { Api48_messages_SentEncryptedMessage_messages_sentEncryptedFile *_object = [[Api48_messages_SentEncryptedMessage_messages_sentEncryptedFile alloc] init]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.file = file; return _object; } @end @implementation Api48_messages_SentEncryptedMessage_messages_sentEncryptedMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x560f8935 serializeBlock:^bool (Api48_messages_SentEncryptedMessage_messages_sentEncryptedMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.sentEncryptedMessage date:%@)", self.date]; } @end @implementation Api48_messages_SentEncryptedMessage_messages_sentEncryptedFile - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9493ff32 serializeBlock:^bool (Api48_messages_SentEncryptedMessage_messages_sentEncryptedFile *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.file data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.sentEncryptedFile date:%@ file:%@)", self.date, self.file]; } @end @interface Api48_ExportedMessageLink () @property (nonatomic, strong) NSString * link; @end @interface Api48_ExportedMessageLink_exportedMessageLink () @end @implementation Api48_ExportedMessageLink + (Api48_ExportedMessageLink_exportedMessageLink *)exportedMessageLinkWithLink:(NSString *)link { Api48_ExportedMessageLink_exportedMessageLink *_object = [[Api48_ExportedMessageLink_exportedMessageLink alloc] init]; _object.link = [Api48__Serializer addSerializerToObject:[link copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_ExportedMessageLink_exportedMessageLink - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1f486803 serializeBlock:^bool (Api48_ExportedMessageLink_exportedMessageLink *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.link data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(exportedMessageLink link:%d)", (int)[self.link length]]; } @end @interface Api48_auth_Authorization () @property (nonatomic, strong) Api48_User * user; @end @interface Api48_auth_Authorization_auth_authorization () @end @implementation Api48_auth_Authorization + (Api48_auth_Authorization_auth_authorization *)auth_authorizationWithUser:(Api48_User *)user { Api48_auth_Authorization_auth_authorization *_object = [[Api48_auth_Authorization_auth_authorization alloc] init]; _object.user = user; return _object; } @end @implementation Api48_auth_Authorization_auth_authorization - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xff036af1 serializeBlock:^bool (Api48_auth_Authorization_auth_authorization *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.user data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.authorization user:%@)", self.user]; } @end @interface Api48_InputFile () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * parts; @property (nonatomic, strong) NSString * name; @end @interface Api48_InputFile_inputFile () @property (nonatomic, strong) NSString * md5Checksum; @end @interface Api48_InputFile_inputFileBig () @end @implementation Api48_InputFile + (Api48_InputFile_inputFile *)inputFileWithPid:(NSNumber *)pid parts:(NSNumber *)parts name:(NSString *)name md5Checksum:(NSString *)md5Checksum { Api48_InputFile_inputFile *_object = [[Api48_InputFile_inputFile alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.parts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:parts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.name = [Api48__Serializer addSerializerToObject:[name copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.md5Checksum = [Api48__Serializer addSerializerToObject:[md5Checksum copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputFile_inputFileBig *)inputFileBigWithPid:(NSNumber *)pid parts:(NSNumber *)parts name:(NSString *)name { Api48_InputFile_inputFileBig *_object = [[Api48_InputFile_inputFileBig alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.parts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:parts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.name = [Api48__Serializer addSerializerToObject:[name copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_InputFile_inputFile - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf52ff27f serializeBlock:^bool (Api48_InputFile_inputFile *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.parts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.name data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.md5Checksum data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputFile id:%@ parts:%@ name:%d md5_checksum:%d)", self.pid, self.parts, (int)[self.name length], (int)[self.md5Checksum length]]; } @end @implementation Api48_InputFile_inputFileBig - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfa4f0bb5 serializeBlock:^bool (Api48_InputFile_inputFileBig *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.parts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.name data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputFileBig id:%@ parts:%@ name:%d)", self.pid, self.parts, (int)[self.name length]]; } @end @interface Api48_Peer () @end @interface Api48_Peer_peerUser () @property (nonatomic, strong) NSNumber * userId; @end @interface Api48_Peer_peerChat () @property (nonatomic, strong) NSNumber * chatId; @end @interface Api48_Peer_peerChannel () @property (nonatomic, strong) NSNumber * channelId; @end @implementation Api48_Peer + (Api48_Peer_peerUser *)peerUserWithUserId:(NSNumber *)userId { Api48_Peer_peerUser *_object = [[Api48_Peer_peerUser alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Peer_peerChat *)peerChatWithChatId:(NSNumber *)chatId { Api48_Peer_peerChat *_object = [[Api48_Peer_peerChat alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Peer_peerChannel *)peerChannelWithChannelId:(NSNumber *)channelId { Api48_Peer_peerChannel *_object = [[Api48_Peer_peerChannel alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_Peer_peerUser - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9db1bc6d serializeBlock:^bool (Api48_Peer_peerUser *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerUser user_id:%@)", self.userId]; } @end @implementation Api48_Peer_peerChat - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbad0e5bb serializeBlock:^bool (Api48_Peer_peerChat *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerChat chat_id:%@)", self.chatId]; } @end @implementation Api48_Peer_peerChannel - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbddde532 serializeBlock:^bool (Api48_Peer_peerChannel *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerChannel channel_id:%@)", self.channelId]; } @end @interface Api48_UserStatus () @end @interface Api48_UserStatus_userStatusEmpty () @end @interface Api48_UserStatus_userStatusOnline () @property (nonatomic, strong) NSNumber * expires; @end @interface Api48_UserStatus_userStatusOffline () @property (nonatomic, strong) NSNumber * wasOnline; @end @interface Api48_UserStatus_userStatusRecently () @end @interface Api48_UserStatus_userStatusLastWeek () @end @interface Api48_UserStatus_userStatusLastMonth () @end @implementation Api48_UserStatus + (Api48_UserStatus_userStatusEmpty *)userStatusEmpty { Api48_UserStatus_userStatusEmpty *_object = [[Api48_UserStatus_userStatusEmpty alloc] init]; return _object; } + (Api48_UserStatus_userStatusOnline *)userStatusOnlineWithExpires:(NSNumber *)expires { Api48_UserStatus_userStatusOnline *_object = [[Api48_UserStatus_userStatusOnline alloc] init]; _object.expires = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:expires] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_UserStatus_userStatusOffline *)userStatusOfflineWithWasOnline:(NSNumber *)wasOnline { Api48_UserStatus_userStatusOffline *_object = [[Api48_UserStatus_userStatusOffline alloc] init]; _object.wasOnline = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:wasOnline] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_UserStatus_userStatusRecently *)userStatusRecently { Api48_UserStatus_userStatusRecently *_object = [[Api48_UserStatus_userStatusRecently alloc] init]; return _object; } + (Api48_UserStatus_userStatusLastWeek *)userStatusLastWeek { Api48_UserStatus_userStatusLastWeek *_object = [[Api48_UserStatus_userStatusLastWeek alloc] init]; return _object; } + (Api48_UserStatus_userStatusLastMonth *)userStatusLastMonth { Api48_UserStatus_userStatusLastMonth *_object = [[Api48_UserStatus_userStatusLastMonth alloc] init]; return _object; } @end @implementation Api48_UserStatus_userStatusEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9d05049 serializeBlock:^bool (__unused Api48_UserStatus_userStatusEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userStatusEmpty)"]; } @end @implementation Api48_UserStatus_userStatusOnline - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xedb93949 serializeBlock:^bool (Api48_UserStatus_userStatusOnline *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.expires data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userStatusOnline expires:%@)", self.expires]; } @end @implementation Api48_UserStatus_userStatusOffline - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8c703f serializeBlock:^bool (Api48_UserStatus_userStatusOffline *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.wasOnline data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userStatusOffline was_online:%@)", self.wasOnline]; } @end @implementation Api48_UserStatus_userStatusRecently - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe26f42f1 serializeBlock:^bool (__unused Api48_UserStatus_userStatusRecently *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userStatusRecently)"]; } @end @implementation Api48_UserStatus_userStatusLastWeek - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7bf09fc serializeBlock:^bool (__unused Api48_UserStatus_userStatusLastWeek *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userStatusLastWeek)"]; } @end @implementation Api48_UserStatus_userStatusLastMonth - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x77ebc742 serializeBlock:^bool (__unused Api48_UserStatus_userStatusLastMonth *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userStatusLastMonth)"]; } @end @interface Api48_Dialog () @property (nonatomic, strong) Api48_Peer * peer; @property (nonatomic, strong) NSNumber * topMessage; @property (nonatomic, strong) NSNumber * readInboxMaxId; @property (nonatomic, strong) NSNumber * unreadCount; @property (nonatomic, strong) Api48_PeerNotifySettings * notifySettings; @end @interface Api48_Dialog_dialog () @end @interface Api48_Dialog_dialogChannel () @property (nonatomic, strong) NSNumber * topImportantMessage; @property (nonatomic, strong) NSNumber * unreadImportantCount; @property (nonatomic, strong) NSNumber * pts; @end @implementation Api48_Dialog + (Api48_Dialog_dialog *)dialogWithPeer:(Api48_Peer *)peer topMessage:(NSNumber *)topMessage readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount notifySettings:(Api48_PeerNotifySettings *)notifySettings { Api48_Dialog_dialog *_object = [[Api48_Dialog_dialog alloc] init]; _object.peer = peer; _object.topMessage = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:topMessage] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.readInboxMaxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.notifySettings = notifySettings; return _object; } + (Api48_Dialog_dialogChannel *)dialogChannelWithPeer:(Api48_Peer *)peer topMessage:(NSNumber *)topMessage topImportantMessage:(NSNumber *)topImportantMessage readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount unreadImportantCount:(NSNumber *)unreadImportantCount notifySettings:(Api48_PeerNotifySettings *)notifySettings pts:(NSNumber *)pts { Api48_Dialog_dialogChannel *_object = [[Api48_Dialog_dialogChannel alloc] init]; _object.peer = peer; _object.topMessage = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:topMessage] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.topImportantMessage = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:topImportantMessage] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.readInboxMaxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadImportantCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadImportantCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.notifySettings = notifySettings; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_Dialog_dialog - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc1dd804a serializeBlock:^bool (Api48_Dialog_dialog *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.topMessage data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.readInboxMaxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.notifySettings data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(dialog peer:%@ top_message:%@ read_inbox_max_id:%@ unread_count:%@ notify_settings:%@)", self.peer, self.topMessage, self.readInboxMaxId, self.unreadCount, self.notifySettings]; } @end @implementation Api48_Dialog_dialogChannel - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5b8496b2 serializeBlock:^bool (Api48_Dialog_dialogChannel *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.topMessage data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.topImportantMessage data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.readInboxMaxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadImportantCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.notifySettings data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(dialogChannel peer:%@ top_message:%@ top_important_message:%@ read_inbox_max_id:%@ unread_count:%@ unread_important_count:%@ notify_settings:%@ pts:%@)", self.peer, self.topMessage, self.topImportantMessage, self.readInboxMaxId, self.unreadCount, self.unreadImportantCount, self.notifySettings, self.pts]; } @end @interface Api48_help_AppChangelog () @end @interface Api48_help_AppChangelog_help_appChangelogEmpty () @end @interface Api48_help_AppChangelog_help_appChangelog () @property (nonatomic, strong) NSString * text; @end @implementation Api48_help_AppChangelog + (Api48_help_AppChangelog_help_appChangelogEmpty *)help_appChangelogEmpty { Api48_help_AppChangelog_help_appChangelogEmpty *_object = [[Api48_help_AppChangelog_help_appChangelogEmpty alloc] init]; return _object; } + (Api48_help_AppChangelog_help_appChangelog *)help_appChangelogWithText:(NSString *)text { Api48_help_AppChangelog_help_appChangelog *_object = [[Api48_help_AppChangelog_help_appChangelog alloc] init]; _object.text = [Api48__Serializer addSerializerToObject:[text copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_help_AppChangelog_help_appChangelogEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xaf7e0394 serializeBlock:^bool (__unused Api48_help_AppChangelog_help_appChangelogEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.appChangelogEmpty)"]; } @end @implementation Api48_help_AppChangelog_help_appChangelog - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4668e6bd serializeBlock:^bool (Api48_help_AppChangelog_help_appChangelog *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.text data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.appChangelog text:%d)", (int)[self.text length]]; } @end @interface Api48_SendMessageAction () @end @interface Api48_SendMessageAction_sendMessageTypingAction () @end @interface Api48_SendMessageAction_sendMessageCancelAction () @end @interface Api48_SendMessageAction_sendMessageRecordVideoAction () @end @interface Api48_SendMessageAction_sendMessageRecordAudioAction () @end @interface Api48_SendMessageAction_sendMessageGeoLocationAction () @end @interface Api48_SendMessageAction_sendMessageChooseContactAction () @end @interface Api48_SendMessageAction_sendMessageUploadVideoAction () @property (nonatomic, strong) NSNumber * progress; @end @interface Api48_SendMessageAction_sendMessageUploadAudioAction () @property (nonatomic, strong) NSNumber * progress; @end @interface Api48_SendMessageAction_sendMessageUploadDocumentAction () @property (nonatomic, strong) NSNumber * progress; @end @interface Api48_SendMessageAction_sendMessageUploadPhotoAction () @property (nonatomic, strong) NSNumber * progress; @end @implementation Api48_SendMessageAction + (Api48_SendMessageAction_sendMessageTypingAction *)sendMessageTypingAction { Api48_SendMessageAction_sendMessageTypingAction *_object = [[Api48_SendMessageAction_sendMessageTypingAction alloc] init]; return _object; } + (Api48_SendMessageAction_sendMessageCancelAction *)sendMessageCancelAction { Api48_SendMessageAction_sendMessageCancelAction *_object = [[Api48_SendMessageAction_sendMessageCancelAction alloc] init]; return _object; } + (Api48_SendMessageAction_sendMessageRecordVideoAction *)sendMessageRecordVideoAction { Api48_SendMessageAction_sendMessageRecordVideoAction *_object = [[Api48_SendMessageAction_sendMessageRecordVideoAction alloc] init]; return _object; } + (Api48_SendMessageAction_sendMessageRecordAudioAction *)sendMessageRecordAudioAction { Api48_SendMessageAction_sendMessageRecordAudioAction *_object = [[Api48_SendMessageAction_sendMessageRecordAudioAction alloc] init]; return _object; } + (Api48_SendMessageAction_sendMessageGeoLocationAction *)sendMessageGeoLocationAction { Api48_SendMessageAction_sendMessageGeoLocationAction *_object = [[Api48_SendMessageAction_sendMessageGeoLocationAction alloc] init]; return _object; } + (Api48_SendMessageAction_sendMessageChooseContactAction *)sendMessageChooseContactAction { Api48_SendMessageAction_sendMessageChooseContactAction *_object = [[Api48_SendMessageAction_sendMessageChooseContactAction alloc] init]; return _object; } + (Api48_SendMessageAction_sendMessageUploadVideoAction *)sendMessageUploadVideoActionWithProgress:(NSNumber *)progress { Api48_SendMessageAction_sendMessageUploadVideoAction *_object = [[Api48_SendMessageAction_sendMessageUploadVideoAction alloc] init]; _object.progress = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:progress] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_SendMessageAction_sendMessageUploadAudioAction *)sendMessageUploadAudioActionWithProgress:(NSNumber *)progress { Api48_SendMessageAction_sendMessageUploadAudioAction *_object = [[Api48_SendMessageAction_sendMessageUploadAudioAction alloc] init]; _object.progress = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:progress] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_SendMessageAction_sendMessageUploadDocumentAction *)sendMessageUploadDocumentActionWithProgress:(NSNumber *)progress { Api48_SendMessageAction_sendMessageUploadDocumentAction *_object = [[Api48_SendMessageAction_sendMessageUploadDocumentAction alloc] init]; _object.progress = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:progress] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_SendMessageAction_sendMessageUploadPhotoAction *)sendMessageUploadPhotoActionWithProgress:(NSNumber *)progress { Api48_SendMessageAction_sendMessageUploadPhotoAction *_object = [[Api48_SendMessageAction_sendMessageUploadPhotoAction alloc] init]; _object.progress = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:progress] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_SendMessageAction_sendMessageTypingAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x16bf744e serializeBlock:^bool (__unused Api48_SendMessageAction_sendMessageTypingAction *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageTypingAction)"]; } @end @implementation Api48_SendMessageAction_sendMessageCancelAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfd5ec8f5 serializeBlock:^bool (__unused Api48_SendMessageAction_sendMessageCancelAction *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageCancelAction)"]; } @end @implementation Api48_SendMessageAction_sendMessageRecordVideoAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa187d66f serializeBlock:^bool (__unused Api48_SendMessageAction_sendMessageRecordVideoAction *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageRecordVideoAction)"]; } @end @implementation Api48_SendMessageAction_sendMessageRecordAudioAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd52f73f7 serializeBlock:^bool (__unused Api48_SendMessageAction_sendMessageRecordAudioAction *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageRecordAudioAction)"]; } @end @implementation Api48_SendMessageAction_sendMessageGeoLocationAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x176f8ba1 serializeBlock:^bool (__unused Api48_SendMessageAction_sendMessageGeoLocationAction *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageGeoLocationAction)"]; } @end @implementation Api48_SendMessageAction_sendMessageChooseContactAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x628cbc6f serializeBlock:^bool (__unused Api48_SendMessageAction_sendMessageChooseContactAction *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageChooseContactAction)"]; } @end @implementation Api48_SendMessageAction_sendMessageUploadVideoAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe9763aec serializeBlock:^bool (Api48_SendMessageAction_sendMessageUploadVideoAction *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.progress data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageUploadVideoAction progress:%@)", self.progress]; } @end @implementation Api48_SendMessageAction_sendMessageUploadAudioAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf351d7ab serializeBlock:^bool (Api48_SendMessageAction_sendMessageUploadAudioAction *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.progress data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageUploadAudioAction progress:%@)", self.progress]; } @end @implementation Api48_SendMessageAction_sendMessageUploadDocumentAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xaa0cd9e4 serializeBlock:^bool (Api48_SendMessageAction_sendMessageUploadDocumentAction *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.progress data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageUploadDocumentAction progress:%@)", self.progress]; } @end @implementation Api48_SendMessageAction_sendMessageUploadPhotoAction - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd1d34a26 serializeBlock:^bool (Api48_SendMessageAction_sendMessageUploadPhotoAction *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.progress data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(sendMessageUploadPhotoAction progress:%@)", self.progress]; } @end @interface Api48_PrivacyKey () @end @interface Api48_PrivacyKey_privacyKeyStatusTimestamp () @end @interface Api48_PrivacyKey_privacyKeyChatInvite () @end @implementation Api48_PrivacyKey + (Api48_PrivacyKey_privacyKeyStatusTimestamp *)privacyKeyStatusTimestamp { Api48_PrivacyKey_privacyKeyStatusTimestamp *_object = [[Api48_PrivacyKey_privacyKeyStatusTimestamp alloc] init]; return _object; } + (Api48_PrivacyKey_privacyKeyChatInvite *)privacyKeyChatInvite { Api48_PrivacyKey_privacyKeyChatInvite *_object = [[Api48_PrivacyKey_privacyKeyChatInvite alloc] init]; return _object; } @end @implementation Api48_PrivacyKey_privacyKeyStatusTimestamp - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbc2eab30 serializeBlock:^bool (__unused Api48_PrivacyKey_privacyKeyStatusTimestamp *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyKeyStatusTimestamp)"]; } @end @implementation Api48_PrivacyKey_privacyKeyChatInvite - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x500e6dfa serializeBlock:^bool (__unused Api48_PrivacyKey_privacyKeyChatInvite *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyKeyChatInvite)"]; } @end @interface Api48_Update () @end @interface Api48_Update_updateMessageID () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * randomId; @end @interface Api48_Update_updateRestoreMessages () @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSNumber * pts; @end @interface Api48_Update_updateChatParticipants () @property (nonatomic, strong) Api48_ChatParticipants * participants; @end @interface Api48_Update_updateUserStatus () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_UserStatus * status; @end @interface Api48_Update_updateContactRegistered () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_Update_updateContactLocated () @property (nonatomic, strong) NSArray * contacts; @end @interface Api48_Update_updateActivation () @property (nonatomic, strong) NSNumber * userId; @end @interface Api48_Update_updateNewAuthorization () @property (nonatomic, strong) NSNumber * authKeyId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSString * device; @property (nonatomic, strong) NSString * location; @end @interface Api48_Update_updatePhoneCallRequested () @property (nonatomic, strong) Api48_PhoneCall * phoneCall; @end @interface Api48_Update_updatePhoneCallConfirmed () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSData * aOrB; @property (nonatomic, strong) Api48_PhoneConnection * connection; @end @interface Api48_Update_updatePhoneCallDeclined () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_Update_updateUserPhoto () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) Api48_UserProfilePhoto * photo; @property (nonatomic, strong) Api48_Bool * previous; @end @interface Api48_Update_updateNewEncryptedMessage () @property (nonatomic, strong) Api48_EncryptedMessage * message; @property (nonatomic, strong) NSNumber * qts; @end @interface Api48_Update_updateEncryptedChatTyping () @property (nonatomic, strong) NSNumber * chatId; @end @interface Api48_Update_updateEncryption () @property (nonatomic, strong) Api48_EncryptedChat * chat; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_Update_updateEncryptedMessagesRead () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * maxDate; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_Update_updateChatParticipantDelete () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * version; @end @interface Api48_Update_updateDcOptions () @property (nonatomic, strong) NSArray * dcOptions; @end @interface Api48_Update_updateUserBlocked () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_Bool * blocked; @end @interface Api48_Update_updateNotifySettings () @property (nonatomic, strong) Api48_NotifyPeer * peer; @property (nonatomic, strong) Api48_PeerNotifySettings * notifySettings; @end @interface Api48_Update_updateUserTyping () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_SendMessageAction * action; @end @interface Api48_Update_updateChatUserTyping () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_SendMessageAction * action; @end @interface Api48_Update_updateUserName () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSString * firstName; @property (nonatomic, strong) NSString * lastName; @property (nonatomic, strong) NSString * username; @end @interface Api48_Update_updateServiceNotification () @property (nonatomic, strong) NSString * type; @property (nonatomic, strong) NSString * message; @property (nonatomic, strong) Api48_MessageMedia * media; @property (nonatomic, strong) Api48_Bool * popup; @end @interface Api48_Update_updatePrivacy () @property (nonatomic, strong) Api48_PrivacyKey * key; @property (nonatomic, strong) NSArray * rules; @end @interface Api48_Update_updateUserPhone () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSString * phone; @end @interface Api48_Update_updateNewMessage () @property (nonatomic, strong) Api48_Message * message; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateReadMessages () @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateDeleteMessages () @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateReadHistoryInbox () @property (nonatomic, strong) Api48_Peer * peer; @property (nonatomic, strong) NSNumber * maxId; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateReadHistoryOutbox () @property (nonatomic, strong) Api48_Peer * peer; @property (nonatomic, strong) NSNumber * maxId; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateContactLink () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_ContactLink * myLink; @property (nonatomic, strong) Api48_ContactLink * foreignLink; @end @interface Api48_Update_updateReadMessagesContents () @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateChatParticipantAdd () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * inviterId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * version; @end @interface Api48_Update_updateWebPage () @property (nonatomic, strong) Api48_WebPage * webpage; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateChannelTooLong () @property (nonatomic, strong) NSNumber * channelId; @end @interface Api48_Update_updateChannel () @property (nonatomic, strong) NSNumber * channelId; @end @interface Api48_Update_updateChannelGroup () @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) Api48_MessageGroup * group; @end @interface Api48_Update_updateNewChannelMessage () @property (nonatomic, strong) Api48_Message * message; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateReadChannelInbox () @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) NSNumber * maxId; @end @interface Api48_Update_updateDeleteChannelMessages () @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_Update_updateChannelMessageViews () @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * views; @end @interface Api48_Update_updateChatAdmins () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) Api48_Bool * enabled; @property (nonatomic, strong) NSNumber * version; @end @interface Api48_Update_updateChatParticipantAdmin () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_Bool * isAdmin; @property (nonatomic, strong) NSNumber * version; @end @interface Api48_Update_updateNewStickerSet () @property (nonatomic, strong) Api48_messages_StickerSet * stickerset; @end @interface Api48_Update_updateStickerSetsOrder () @property (nonatomic, strong) NSArray * order; @end @interface Api48_Update_updateStickerSets () @end @interface Api48_Update_updateSavedGifs () @end @interface Api48_Update_updateBotInlineQuery () @property (nonatomic, strong) NSNumber * queryId; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSString * query; @property (nonatomic, strong) NSString * offset; @end @interface Api48_Update_updateEditChannelMessage () @property (nonatomic, strong) Api48_Message * message; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @implementation Api48_Update + (Api48_Update_updateMessageID *)updateMessageIDWithPid:(NSNumber *)pid randomId:(NSNumber *)randomId { Api48_Update_updateMessageID *_object = [[Api48_Update_updateMessageID alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.randomId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_Update_updateRestoreMessages *)updateRestoreMessagesWithMessages:(NSArray *)messages pts:(NSNumber *)pts { Api48_Update_updateRestoreMessages *_object = [[Api48_Update_updateRestoreMessages alloc] init]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:messages_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; messages_result;}); _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChatParticipants *)updateChatParticipantsWithParticipants:(Api48_ChatParticipants *)participants { Api48_Update_updateChatParticipants *_object = [[Api48_Update_updateChatParticipants alloc] init]; _object.participants = participants; return _object; } + (Api48_Update_updateUserStatus *)updateUserStatusWithUserId:(NSNumber *)userId status:(Api48_UserStatus *)status { Api48_Update_updateUserStatus *_object = [[Api48_Update_updateUserStatus alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.status = status; return _object; } + (Api48_Update_updateContactRegistered *)updateContactRegisteredWithUserId:(NSNumber *)userId date:(NSNumber *)date { Api48_Update_updateContactRegistered *_object = [[Api48_Update_updateContactRegistered alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateContactLocated *)updateContactLocatedWithContacts:(NSArray *)contacts { Api48_Update_updateContactLocated *_object = [[Api48_Update_updateContactLocated alloc] init]; _object.contacts = ({ NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count]; for (id contacts_item in contacts) { [contacts_copy addObject:contacts_item]; } id contacts_result = [Api48__Serializer addSerializerToObject:contacts_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; contacts_result;}); return _object; } + (Api48_Update_updateActivation *)updateActivationWithUserId:(NSNumber *)userId { Api48_Update_updateActivation *_object = [[Api48_Update_updateActivation alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateNewAuthorization *)updateNewAuthorizationWithAuthKeyId:(NSNumber *)authKeyId date:(NSNumber *)date device:(NSString *)device location:(NSString *)location { Api48_Update_updateNewAuthorization *_object = [[Api48_Update_updateNewAuthorization alloc] init]; _object.authKeyId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:authKeyId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.device = [Api48__Serializer addSerializerToObject:[device copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.location = [Api48__Serializer addSerializerToObject:[location copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Update_updatePhoneCallRequested *)updatePhoneCallRequestedWithPhoneCall:(Api48_PhoneCall *)phoneCall { Api48_Update_updatePhoneCallRequested *_object = [[Api48_Update_updatePhoneCallRequested alloc] init]; _object.phoneCall = phoneCall; return _object; } + (Api48_Update_updatePhoneCallConfirmed *)updatePhoneCallConfirmedWithPid:(NSNumber *)pid aOrB:(NSData *)aOrB connection:(Api48_PhoneConnection *)connection { Api48_Update_updatePhoneCallConfirmed *_object = [[Api48_Update_updatePhoneCallConfirmed alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.aOrB = [Api48__Serializer addSerializerToObject:[aOrB copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.connection = connection; return _object; } + (Api48_Update_updatePhoneCallDeclined *)updatePhoneCallDeclinedWithPid:(NSNumber *)pid { Api48_Update_updatePhoneCallDeclined *_object = [[Api48_Update_updatePhoneCallDeclined alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_Update_updateUserPhoto *)updateUserPhotoWithUserId:(NSNumber *)userId date:(NSNumber *)date photo:(Api48_UserProfilePhoto *)photo previous:(Api48_Bool *)previous { Api48_Update_updateUserPhoto *_object = [[Api48_Update_updateUserPhoto alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.photo = photo; _object.previous = previous; return _object; } + (Api48_Update_updateNewEncryptedMessage *)updateNewEncryptedMessageWithMessage:(Api48_EncryptedMessage *)message qts:(NSNumber *)qts { Api48_Update_updateNewEncryptedMessage *_object = [[Api48_Update_updateNewEncryptedMessage alloc] init]; _object.message = message; _object.qts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:qts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateEncryptedChatTyping *)updateEncryptedChatTypingWithChatId:(NSNumber *)chatId { Api48_Update_updateEncryptedChatTyping *_object = [[Api48_Update_updateEncryptedChatTyping alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateEncryption *)updateEncryptionWithChat:(Api48_EncryptedChat *)chat date:(NSNumber *)date { Api48_Update_updateEncryption *_object = [[Api48_Update_updateEncryption alloc] init]; _object.chat = chat; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateEncryptedMessagesRead *)updateEncryptedMessagesReadWithChatId:(NSNumber *)chatId maxDate:(NSNumber *)maxDate date:(NSNumber *)date { Api48_Update_updateEncryptedMessagesRead *_object = [[Api48_Update_updateEncryptedMessagesRead alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.maxDate = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChatParticipantDelete *)updateChatParticipantDeleteWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId version:(NSNumber *)version { Api48_Update_updateChatParticipantDelete *_object = [[Api48_Update_updateChatParticipantDelete alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateDcOptions *)updateDcOptionsWithDcOptions:(NSArray *)dcOptions { Api48_Update_updateDcOptions *_object = [[Api48_Update_updateDcOptions alloc] init]; _object.dcOptions = ({ NSMutableArray *dcOptions_copy = [[NSMutableArray alloc] initWithCapacity:dcOptions.count]; for (id dcOptions_item in dcOptions) { [dcOptions_copy addObject:dcOptions_item]; } id dcOptions_result = [Api48__Serializer addSerializerToObject:dcOptions_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; dcOptions_result;}); return _object; } + (Api48_Update_updateUserBlocked *)updateUserBlockedWithUserId:(NSNumber *)userId blocked:(Api48_Bool *)blocked { Api48_Update_updateUserBlocked *_object = [[Api48_Update_updateUserBlocked alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.blocked = blocked; return _object; } + (Api48_Update_updateNotifySettings *)updateNotifySettingsWithPeer:(Api48_NotifyPeer *)peer notifySettings:(Api48_PeerNotifySettings *)notifySettings { Api48_Update_updateNotifySettings *_object = [[Api48_Update_updateNotifySettings alloc] init]; _object.peer = peer; _object.notifySettings = notifySettings; return _object; } + (Api48_Update_updateUserTyping *)updateUserTypingWithUserId:(NSNumber *)userId action:(Api48_SendMessageAction *)action { Api48_Update_updateUserTyping *_object = [[Api48_Update_updateUserTyping alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.action = action; return _object; } + (Api48_Update_updateChatUserTyping *)updateChatUserTypingWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId action:(Api48_SendMessageAction *)action { Api48_Update_updateChatUserTyping *_object = [[Api48_Update_updateChatUserTyping alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.action = action; return _object; } + (Api48_Update_updateUserName *)updateUserNameWithUserId:(NSNumber *)userId firstName:(NSString *)firstName lastName:(NSString *)lastName username:(NSString *)username { Api48_Update_updateUserName *_object = [[Api48_Update_updateUserName alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.firstName = [Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.lastName = [Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.username = [Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Update_updateServiceNotification *)updateServiceNotificationWithType:(NSString *)type message:(NSString *)message media:(Api48_MessageMedia *)media popup:(Api48_Bool *)popup { Api48_Update_updateServiceNotification *_object = [[Api48_Update_updateServiceNotification alloc] init]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.media = media; _object.popup = popup; return _object; } + (Api48_Update_updatePrivacy *)updatePrivacyWithKey:(Api48_PrivacyKey *)key rules:(NSArray *)rules { Api48_Update_updatePrivacy *_object = [[Api48_Update_updatePrivacy alloc] init]; _object.key = key; _object.rules = ({ NSMutableArray *rules_copy = [[NSMutableArray alloc] initWithCapacity:rules.count]; for (id rules_item in rules) { [rules_copy addObject:rules_item]; } id rules_result = [Api48__Serializer addSerializerToObject:rules_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; rules_result;}); return _object; } + (Api48_Update_updateUserPhone *)updateUserPhoneWithUserId:(NSNumber *)userId phone:(NSString *)phone { Api48_Update_updateUserPhone *_object = [[Api48_Update_updateUserPhone alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.phone = [Api48__Serializer addSerializerToObject:[phone copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Update_updateNewMessage *)updateNewMessageWithMessage:(Api48_Message *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateNewMessage *_object = [[Api48_Update_updateNewMessage alloc] init]; _object.message = message; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateReadMessages *)updateReadMessagesWithMessages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateReadMessages *_object = [[Api48_Update_updateReadMessages alloc] init]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:messages_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; messages_result;}); _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateDeleteMessages *)updateDeleteMessagesWithMessages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateDeleteMessages *_object = [[Api48_Update_updateDeleteMessages alloc] init]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:messages_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; messages_result;}); _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateReadHistoryInbox *)updateReadHistoryInboxWithPeer:(Api48_Peer *)peer maxId:(NSNumber *)maxId pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateReadHistoryInbox *_object = [[Api48_Update_updateReadHistoryInbox alloc] init]; _object.peer = peer; _object.maxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateReadHistoryOutbox *)updateReadHistoryOutboxWithPeer:(Api48_Peer *)peer maxId:(NSNumber *)maxId pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateReadHistoryOutbox *_object = [[Api48_Update_updateReadHistoryOutbox alloc] init]; _object.peer = peer; _object.maxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateContactLink *)updateContactLinkWithUserId:(NSNumber *)userId myLink:(Api48_ContactLink *)myLink foreignLink:(Api48_ContactLink *)foreignLink { Api48_Update_updateContactLink *_object = [[Api48_Update_updateContactLink alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.myLink = myLink; _object.foreignLink = foreignLink; return _object; } + (Api48_Update_updateReadMessagesContents *)updateReadMessagesContentsWithMessages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateReadMessagesContents *_object = [[Api48_Update_updateReadMessagesContents alloc] init]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:messages_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; messages_result;}); _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChatParticipantAdd *)updateChatParticipantAddWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date version:(NSNumber *)version { Api48_Update_updateChatParticipantAdd *_object = [[Api48_Update_updateChatParticipantAdd alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateWebPage *)updateWebPageWithWebpage:(Api48_WebPage *)webpage pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateWebPage *_object = [[Api48_Update_updateWebPage alloc] init]; _object.webpage = webpage; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChannelTooLong *)updateChannelTooLongWithChannelId:(NSNumber *)channelId { Api48_Update_updateChannelTooLong *_object = [[Api48_Update_updateChannelTooLong alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChannel *)updateChannelWithChannelId:(NSNumber *)channelId { Api48_Update_updateChannel *_object = [[Api48_Update_updateChannel alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChannelGroup *)updateChannelGroupWithChannelId:(NSNumber *)channelId group:(Api48_MessageGroup *)group { Api48_Update_updateChannelGroup *_object = [[Api48_Update_updateChannelGroup alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.group = group; return _object; } + (Api48_Update_updateNewChannelMessage *)updateNewChannelMessageWithMessage:(Api48_Message *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateNewChannelMessage *_object = [[Api48_Update_updateNewChannelMessage alloc] init]; _object.message = message; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateReadChannelInbox *)updateReadChannelInboxWithChannelId:(NSNumber *)channelId maxId:(NSNumber *)maxId { Api48_Update_updateReadChannelInbox *_object = [[Api48_Update_updateReadChannelInbox alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.maxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateDeleteChannelMessages *)updateDeleteChannelMessagesWithChannelId:(NSNumber *)channelId messages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateDeleteChannelMessages *_object = [[Api48_Update_updateDeleteChannelMessages alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:messages_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; messages_result;}); _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChannelMessageViews *)updateChannelMessageViewsWithChannelId:(NSNumber *)channelId pid:(NSNumber *)pid views:(NSNumber *)views { Api48_Update_updateChannelMessageViews *_object = [[Api48_Update_updateChannelMessageViews alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.views = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:views] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChatAdmins *)updateChatAdminsWithChatId:(NSNumber *)chatId enabled:(Api48_Bool *)enabled version:(NSNumber *)version { Api48_Update_updateChatAdmins *_object = [[Api48_Update_updateChatAdmins alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.enabled = enabled; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateChatParticipantAdmin *)updateChatParticipantAdminWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId isAdmin:(Api48_Bool *)isAdmin version:(NSNumber *)version { Api48_Update_updateChatParticipantAdmin *_object = [[Api48_Update_updateChatParticipantAdmin alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.isAdmin = isAdmin; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Update_updateNewStickerSet *)updateNewStickerSetWithStickerset:(Api48_messages_StickerSet *)stickerset { Api48_Update_updateNewStickerSet *_object = [[Api48_Update_updateNewStickerSet alloc] init]; _object.stickerset = stickerset; return _object; } + (Api48_Update_updateStickerSetsOrder *)updateStickerSetsOrderWithOrder:(NSArray *)order { Api48_Update_updateStickerSetsOrder *_object = [[Api48_Update_updateStickerSetsOrder alloc] init]; _object.order = ({ NSMutableArray *order_copy = [[NSMutableArray alloc] initWithCapacity:order.count]; for (id order_item in order) { [order_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:order_item] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]]; } id order_result = [Api48__Serializer addSerializerToObject:order_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; order_result;}); return _object; } + (Api48_Update_updateStickerSets *)updateStickerSets { Api48_Update_updateStickerSets *_object = [[Api48_Update_updateStickerSets alloc] init]; return _object; } + (Api48_Update_updateSavedGifs *)updateSavedGifs { Api48_Update_updateSavedGifs *_object = [[Api48_Update_updateSavedGifs alloc] init]; return _object; } + (Api48_Update_updateBotInlineQuery *)updateBotInlineQueryWithQueryId:(NSNumber *)queryId userId:(NSNumber *)userId query:(NSString *)query offset:(NSString *)offset { Api48_Update_updateBotInlineQuery *_object = [[Api48_Update_updateBotInlineQuery alloc] init]; _object.queryId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:queryId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.query = [Api48__Serializer addSerializerToObject:[query copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.offset = [Api48__Serializer addSerializerToObject:[offset copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Update_updateEditChannelMessage *)updateEditChannelMessageWithMessage:(Api48_Message *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_Update_updateEditChannelMessage *_object = [[Api48_Update_updateEditChannelMessage alloc] init]; _object.message = message; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_Update_updateMessageID - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4e90bfd6 serializeBlock:^bool (Api48_Update_updateMessageID *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.randomId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateMessageID id:%@ random_id:%@)", self.pid, self.randomId]; } @end @implementation Api48_Update_updateRestoreMessages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd15de04d serializeBlock:^bool (Api48_Update_updateRestoreMessages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateRestoreMessages messages:%@ pts:%@)", self.messages, self.pts]; } @end @implementation Api48_Update_updateChatParticipants - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7761198 serializeBlock:^bool (Api48_Update_updateChatParticipants *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.participants data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChatParticipants participants:%@)", self.participants]; } @end @implementation Api48_Update_updateUserStatus - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1bfbd823 serializeBlock:^bool (Api48_Update_updateUserStatus *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.status data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateUserStatus user_id:%@ status:%@)", self.userId, self.status]; } @end @implementation Api48_Update_updateContactRegistered - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2575bbb9 serializeBlock:^bool (Api48_Update_updateContactRegistered *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateContactRegistered user_id:%@ date:%@)", self.userId, self.date]; } @end @implementation Api48_Update_updateContactLocated - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5f83b963 serializeBlock:^bool (Api48_Update_updateContactLocated *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.contacts data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateContactLocated contacts:%@)", self.contacts]; } @end @implementation Api48_Update_updateActivation - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6f690963 serializeBlock:^bool (Api48_Update_updateActivation *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateActivation user_id:%@)", self.userId]; } @end @implementation Api48_Update_updateNewAuthorization - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8f06529a serializeBlock:^bool (Api48_Update_updateNewAuthorization *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.authKeyId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.device data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.location data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateNewAuthorization auth_key_id:%@ date:%@ device:%d location:%d)", self.authKeyId, self.date, (int)[self.device length], (int)[self.location length]]; } @end @implementation Api48_Update_updatePhoneCallRequested - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xdad7490e serializeBlock:^bool (Api48_Update_updatePhoneCallRequested *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneCall data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updatePhoneCallRequested phone_call:%@)", self.phoneCall]; } @end @implementation Api48_Update_updatePhoneCallConfirmed - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5609ff88 serializeBlock:^bool (Api48_Update_updatePhoneCallConfirmed *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.aOrB data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.connection data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updatePhoneCallConfirmed id:%@ a_or_b:%d connection:%@)", self.pid, (int)[self.aOrB length], self.connection]; } @end @implementation Api48_Update_updatePhoneCallDeclined - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x31ae2cc2 serializeBlock:^bool (Api48_Update_updatePhoneCallDeclined *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updatePhoneCallDeclined id:%@)", self.pid]; } @end @implementation Api48_Update_updateUserPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x95313b0c serializeBlock:^bool (Api48_Update_updateUserPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.previous data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateUserPhoto user_id:%@ date:%@ photo:%@ previous:%@)", self.userId, self.date, self.photo, self.previous]; } @end @implementation Api48_Update_updateNewEncryptedMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x12bcbd9a serializeBlock:^bool (Api48_Update_updateNewEncryptedMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.qts data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateNewEncryptedMessage message:%@ qts:%@)", self.message, self.qts]; } @end @implementation Api48_Update_updateEncryptedChatTyping - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1710f156 serializeBlock:^bool (Api48_Update_updateEncryptedChatTyping *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateEncryptedChatTyping chat_id:%@)", self.chatId]; } @end @implementation Api48_Update_updateEncryption - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb4a2e88d serializeBlock:^bool (Api48_Update_updateEncryption *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chat data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateEncryption chat:%@ date:%@)", self.chat, self.date]; } @end @implementation Api48_Update_updateEncryptedMessagesRead - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x38fe25b7 serializeBlock:^bool (Api48_Update_updateEncryptedMessagesRead *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.maxDate data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateEncryptedMessagesRead chat_id:%@ max_date:%@ date:%@)", self.chatId, self.maxDate, self.date]; } @end @implementation Api48_Update_updateChatParticipantDelete - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6e5f8c22 serializeBlock:^bool (Api48_Update_updateChatParticipantDelete *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChatParticipantDelete chat_id:%@ user_id:%@ version:%@)", self.chatId, self.userId, self.version]; } @end @implementation Api48_Update_updateDcOptions - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8e5e9873 serializeBlock:^bool (Api48_Update_updateDcOptions *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.dcOptions data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateDcOptions dc_options:%@)", self.dcOptions]; } @end @implementation Api48_Update_updateUserBlocked - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x80ece81a serializeBlock:^bool (Api48_Update_updateUserBlocked *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.blocked data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateUserBlocked user_id:%@ blocked:%@)", self.userId, self.blocked]; } @end @implementation Api48_Update_updateNotifySettings - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbec268ef serializeBlock:^bool (Api48_Update_updateNotifySettings *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.notifySettings data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateNotifySettings peer:%@ notify_settings:%@)", self.peer, self.notifySettings]; } @end @implementation Api48_Update_updateUserTyping - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5c486927 serializeBlock:^bool (Api48_Update_updateUserTyping *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.action data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateUserTyping user_id:%@ action:%@)", self.userId, self.action]; } @end @implementation Api48_Update_updateChatUserTyping - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9a65ea1f serializeBlock:^bool (Api48_Update_updateChatUserTyping *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.action data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChatUserTyping chat_id:%@ user_id:%@ action:%@)", self.chatId, self.userId, self.action]; } @end @implementation Api48_Update_updateUserName - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa7332b73 serializeBlock:^bool (Api48_Update_updateUserName *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.firstName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.lastName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.username data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateUserName user_id:%@ first_name:%d last_name:%d username:%d)", self.userId, (int)[self.firstName length], (int)[self.lastName length], (int)[self.username length]]; } @end @implementation Api48_Update_updateServiceNotification - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x382dd3e4 serializeBlock:^bool (Api48_Update_updateServiceNotification *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.media data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.popup data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateServiceNotification type:%d message:%d media:%@ popup:%@)", (int)[self.type length], (int)[self.message length], self.media, self.popup]; } @end @implementation Api48_Update_updatePrivacy - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xee3b272a serializeBlock:^bool (Api48_Update_updatePrivacy *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.key data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.rules data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updatePrivacy key:%@ rules:%@)", self.key, self.rules]; } @end @implementation Api48_Update_updateUserPhone - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x12b9417b serializeBlock:^bool (Api48_Update_updateUserPhone *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.phone data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateUserPhone user_id:%@ phone:%d)", self.userId, (int)[self.phone length]]; } @end @implementation Api48_Update_updateNewMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1f2b0afd serializeBlock:^bool (Api48_Update_updateNewMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateNewMessage message:%@ pts:%@ pts_count:%@)", self.message, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateReadMessages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2e5ab668 serializeBlock:^bool (Api48_Update_updateReadMessages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateReadMessages messages:%@ pts:%@ pts_count:%@)", self.messages, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateDeleteMessages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa20db0e5 serializeBlock:^bool (Api48_Update_updateDeleteMessages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateDeleteMessages messages:%@ pts:%@ pts_count:%@)", self.messages, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateReadHistoryInbox - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9961fd5c serializeBlock:^bool (Api48_Update_updateReadHistoryInbox *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.maxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateReadHistoryInbox peer:%@ max_id:%@ pts:%@ pts_count:%@)", self.peer, self.maxId, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateReadHistoryOutbox - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2f2f21bf serializeBlock:^bool (Api48_Update_updateReadHistoryOutbox *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.maxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateReadHistoryOutbox peer:%@ max_id:%@ pts:%@ pts_count:%@)", self.peer, self.maxId, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateContactLink - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9d2e67c5 serializeBlock:^bool (Api48_Update_updateContactLink *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.myLink data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.foreignLink data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateContactLink user_id:%@ my_link:%@ foreign_link:%@)", self.userId, self.myLink, self.foreignLink]; } @end @implementation Api48_Update_updateReadMessagesContents - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x68c13933 serializeBlock:^bool (Api48_Update_updateReadMessagesContents *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateReadMessagesContents messages:%@ pts:%@ pts_count:%@)", self.messages, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateChatParticipantAdd - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xea4b0e5c serializeBlock:^bool (Api48_Update_updateChatParticipantAdd *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChatParticipantAdd chat_id:%@ user_id:%@ inviter_id:%@ date:%@ version:%@)", self.chatId, self.userId, self.inviterId, self.date, self.version]; } @end @implementation Api48_Update_updateWebPage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7f891213 serializeBlock:^bool (Api48_Update_updateWebPage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.webpage data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateWebPage webpage:%@ pts:%@ pts_count:%@)", self.webpage, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateChannelTooLong - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x60946422 serializeBlock:^bool (Api48_Update_updateChannelTooLong *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChannelTooLong channel_id:%@)", self.channelId]; } @end @implementation Api48_Update_updateChannel - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb6d45656 serializeBlock:^bool (Api48_Update_updateChannel *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChannel channel_id:%@)", self.channelId]; } @end @implementation Api48_Update_updateChannelGroup - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc36c1e3c serializeBlock:^bool (Api48_Update_updateChannelGroup *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.group data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChannelGroup channel_id:%@ group:%@)", self.channelId, self.group]; } @end @implementation Api48_Update_updateNewChannelMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x62ba04d9 serializeBlock:^bool (Api48_Update_updateNewChannelMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateNewChannelMessage message:%@ pts:%@ pts_count:%@)", self.message, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateReadChannelInbox - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4214f37f serializeBlock:^bool (Api48_Update_updateReadChannelInbox *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.maxId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateReadChannelInbox channel_id:%@ max_id:%@)", self.channelId, self.maxId]; } @end @implementation Api48_Update_updateDeleteChannelMessages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc37521c9 serializeBlock:^bool (Api48_Update_updateDeleteChannelMessages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateDeleteChannelMessages channel_id:%@ messages:%@ pts:%@ pts_count:%@)", self.channelId, self.messages, self.pts, self.ptsCount]; } @end @implementation Api48_Update_updateChannelMessageViews - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x98a12b4b serializeBlock:^bool (Api48_Update_updateChannelMessageViews *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.views data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChannelMessageViews channel_id:%@ id:%@ views:%@)", self.channelId, self.pid, self.views]; } @end @implementation Api48_Update_updateChatAdmins - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6e947941 serializeBlock:^bool (Api48_Update_updateChatAdmins *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.enabled data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChatAdmins chat_id:%@ enabled:%@ version:%@)", self.chatId, self.enabled, self.version]; } @end @implementation Api48_Update_updateChatParticipantAdmin - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb6901959 serializeBlock:^bool (Api48_Update_updateChatParticipantAdmin *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.isAdmin data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateChatParticipantAdmin chat_id:%@ user_id:%@ is_admin:%@ version:%@)", self.chatId, self.userId, self.isAdmin, self.version]; } @end @implementation Api48_Update_updateNewStickerSet - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x688a30aa serializeBlock:^bool (Api48_Update_updateNewStickerSet *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.stickerset data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateNewStickerSet stickerset:%@)", self.stickerset]; } @end @implementation Api48_Update_updateStickerSetsOrder - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf0dfb451 serializeBlock:^bool (Api48_Update_updateStickerSetsOrder *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.order data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateStickerSetsOrder order:%@)", self.order]; } @end @implementation Api48_Update_updateStickerSets - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x43ae3dec serializeBlock:^bool (__unused Api48_Update_updateStickerSets *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateStickerSets)"]; } @end @implementation Api48_Update_updateSavedGifs - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9375341e serializeBlock:^bool (__unused Api48_Update_updateSavedGifs *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateSavedGifs)"]; } @end @implementation Api48_Update_updateBotInlineQuery - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc01eea08 serializeBlock:^bool (Api48_Update_updateBotInlineQuery *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.queryId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.query data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateBotInlineQuery query_id:%@ user_id:%@ query:%d offset:%d)", self.queryId, self.userId, (int)[self.query length], (int)[self.offset length]]; } @end @implementation Api48_Update_updateEditChannelMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1b3f4df7 serializeBlock:^bool (Api48_Update_updateEditChannelMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateEditChannelMessage message:%@ pts:%@ pts_count:%@)", self.message, self.pts, self.ptsCount]; } @end @interface Api48_ChannelParticipant () @property (nonatomic, strong) NSNumber * userId; @end @interface Api48_ChannelParticipant_channelParticipant () @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ChannelParticipant_channelParticipantSelf () @property (nonatomic, strong) NSNumber * inviterId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ChannelParticipant_channelParticipantModerator () @property (nonatomic, strong) NSNumber * inviterId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ChannelParticipant_channelParticipantEditor () @property (nonatomic, strong) NSNumber * inviterId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ChannelParticipant_channelParticipantKicked () @property (nonatomic, strong) NSNumber * kickedBy; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ChannelParticipant_channelParticipantCreator () @end @implementation Api48_ChannelParticipant + (Api48_ChannelParticipant_channelParticipant *)channelParticipantWithUserId:(NSNumber *)userId date:(NSNumber *)date { Api48_ChannelParticipant_channelParticipant *_object = [[Api48_ChannelParticipant_channelParticipant alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChannelParticipant_channelParticipantSelf *)channelParticipantSelfWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date { Api48_ChannelParticipant_channelParticipantSelf *_object = [[Api48_ChannelParticipant_channelParticipantSelf alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChannelParticipant_channelParticipantModerator *)channelParticipantModeratorWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date { Api48_ChannelParticipant_channelParticipantModerator *_object = [[Api48_ChannelParticipant_channelParticipantModerator alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChannelParticipant_channelParticipantEditor *)channelParticipantEditorWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date { Api48_ChannelParticipant_channelParticipantEditor *_object = [[Api48_ChannelParticipant_channelParticipantEditor alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChannelParticipant_channelParticipantKicked *)channelParticipantKickedWithUserId:(NSNumber *)userId kickedBy:(NSNumber *)kickedBy date:(NSNumber *)date { Api48_ChannelParticipant_channelParticipantKicked *_object = [[Api48_ChannelParticipant_channelParticipantKicked alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.kickedBy = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:kickedBy] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ChannelParticipant_channelParticipantCreator *)channelParticipantCreatorWithUserId:(NSNumber *)userId { Api48_ChannelParticipant_channelParticipantCreator *_object = [[Api48_ChannelParticipant_channelParticipantCreator alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ChannelParticipant_channelParticipant - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x15ebac1d serializeBlock:^bool (Api48_ChannelParticipant_channelParticipant *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipant user_id:%@ date:%@)", self.userId, self.date]; } @end @implementation Api48_ChannelParticipant_channelParticipantSelf - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa3289a6d serializeBlock:^bool (Api48_ChannelParticipant_channelParticipantSelf *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantSelf user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date]; } @end @implementation Api48_ChannelParticipant_channelParticipantModerator - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x91057fef serializeBlock:^bool (Api48_ChannelParticipant_channelParticipantModerator *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantModerator user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date]; } @end @implementation Api48_ChannelParticipant_channelParticipantEditor - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x98192d61 serializeBlock:^bool (Api48_ChannelParticipant_channelParticipantEditor *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantEditor user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date]; } @end @implementation Api48_ChannelParticipant_channelParticipantKicked - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8cc5e69a serializeBlock:^bool (Api48_ChannelParticipant_channelParticipantKicked *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.kickedBy data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantKicked user_id:%@ kicked_by:%@ date:%@)", self.userId, self.kickedBy, self.date]; } @end @implementation Api48_ChannelParticipant_channelParticipantCreator - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe3e2e1f9 serializeBlock:^bool (Api48_ChannelParticipant_channelParticipantCreator *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantCreator user_id:%@)", self.userId]; } @end @interface Api48_contacts_Blocked () @property (nonatomic, strong) NSArray * blocked; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_Blocked_contacts_blocked () @end @interface Api48_contacts_Blocked_contacts_blockedSlice () @property (nonatomic, strong) NSNumber * count; @end @implementation Api48_contacts_Blocked + (Api48_contacts_Blocked_contacts_blocked *)contacts_blockedWithBlocked:(NSArray *)blocked users:(NSArray *)users { Api48_contacts_Blocked_contacts_blocked *_object = [[Api48_contacts_Blocked_contacts_blocked alloc] init]; _object.blocked = ({ NSMutableArray *blocked_copy = [[NSMutableArray alloc] initWithCapacity:blocked.count]; for (id blocked_item in blocked) { [blocked_copy addObject:blocked_item]; } id blocked_result = [Api48__Serializer addSerializerToObject:blocked_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; blocked_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_contacts_Blocked_contacts_blockedSlice *)contacts_blockedSliceWithCount:(NSNumber *)count blocked:(NSArray *)blocked users:(NSArray *)users { Api48_contacts_Blocked_contacts_blockedSlice *_object = [[Api48_contacts_Blocked_contacts_blockedSlice alloc] init]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.blocked = ({ NSMutableArray *blocked_copy = [[NSMutableArray alloc] initWithCapacity:blocked.count]; for (id blocked_item in blocked) { [blocked_copy addObject:blocked_item]; } id blocked_result = [Api48__Serializer addSerializerToObject:blocked_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; blocked_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_Blocked_contacts_blocked - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1c138d15 serializeBlock:^bool (Api48_contacts_Blocked_contacts_blocked *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.blocked data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.blocked blocked:%@ users:%@)", self.blocked, self.users]; } @end @implementation Api48_contacts_Blocked_contacts_blockedSlice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x900802a1 serializeBlock:^bool (Api48_contacts_Blocked_contacts_blockedSlice *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.blocked data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.blockedSlice count:%@ blocked:%@ users:%@)", self.count, self.blocked, self.users]; } @end @interface Api48_Error () @property (nonatomic, strong) NSNumber * code; @end @interface Api48_Error_error () @property (nonatomic, strong) NSString * text; @end @interface Api48_Error_richError () @property (nonatomic, strong) NSString * type; @property (nonatomic, strong) NSString * nDescription; @property (nonatomic, strong) NSString * debug; @property (nonatomic, strong) NSString * requestParams; @end @implementation Api48_Error + (Api48_Error_error *)errorWithCode:(NSNumber *)code text:(NSString *)text { Api48_Error_error *_object = [[Api48_Error_error alloc] init]; _object.code = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:code] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.text = [Api48__Serializer addSerializerToObject:[text copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_Error_richError *)richErrorWithCode:(NSNumber *)code type:(NSString *)type nDescription:(NSString *)nDescription debug:(NSString *)debug requestParams:(NSString *)requestParams { Api48_Error_richError *_object = [[Api48_Error_richError alloc] init]; _object.code = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:code] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.nDescription = [Api48__Serializer addSerializerToObject:[nDescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.debug = [Api48__Serializer addSerializerToObject:[debug copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.requestParams = [Api48__Serializer addSerializerToObject:[requestParams copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_Error_error - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc4b9f9bb serializeBlock:^bool (Api48_Error_error *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.code data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.text data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(error code:%@ text:%d)", self.code, (int)[self.text length]]; } @end @implementation Api48_Error_richError - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x59aefc57 serializeBlock:^bool (Api48_Error_richError *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.code data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.nDescription data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.debug data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.requestParams data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(richError code:%@ type:%d n_description:%d debug:%d request_params:%d)", self.code, (int)[self.type length], (int)[self.nDescription length], (int)[self.debug length], (int)[self.requestParams length]]; } @end @interface Api48_ContactLocated () @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * distance; @end @interface Api48_ContactLocated_contactLocated () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_GeoPoint * location; @end @interface Api48_ContactLocated_contactLocatedPreview () @property (nonatomic, strong) NSString * phash; @property (nonatomic, strong) Api48_Bool * hidden; @end @implementation Api48_ContactLocated + (Api48_ContactLocated_contactLocated *)contactLocatedWithUserId:(NSNumber *)userId location:(Api48_GeoPoint *)location date:(NSNumber *)date distance:(NSNumber *)distance { Api48_ContactLocated_contactLocated *_object = [[Api48_ContactLocated_contactLocated alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.location = location; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.distance = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:distance] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ContactLocated_contactLocatedPreview *)contactLocatedPreviewWithPhash:(NSString *)phash hidden:(Api48_Bool *)hidden date:(NSNumber *)date distance:(NSNumber *)distance { Api48_ContactLocated_contactLocatedPreview *_object = [[Api48_ContactLocated_contactLocatedPreview alloc] init]; _object.phash = [Api48__Serializer addSerializerToObject:[phash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.hidden = hidden; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.distance = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:distance] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ContactLocated_contactLocated - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe144acaf serializeBlock:^bool (Api48_ContactLocated_contactLocated *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.location data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.distance data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactLocated user_id:%@ location:%@ date:%@ distance:%@)", self.userId, self.location, self.date, self.distance]; } @end @implementation Api48_ContactLocated_contactLocatedPreview - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc1257157 serializeBlock:^bool (Api48_ContactLocated_contactLocatedPreview *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.hidden data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.distance data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactLocatedPreview hash:%d hidden:%@ date:%@ distance:%@)", (int)[self.phash length], self.hidden, self.date, self.distance]; } @end @interface Api48_KeyboardButton () @property (nonatomic, strong) NSString * text; @end @interface Api48_KeyboardButton_keyboardButton () @end @implementation Api48_KeyboardButton + (Api48_KeyboardButton_keyboardButton *)keyboardButtonWithText:(NSString *)text { Api48_KeyboardButton_keyboardButton *_object = [[Api48_KeyboardButton_keyboardButton alloc] init]; _object.text = [Api48__Serializer addSerializerToObject:[text copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_KeyboardButton_keyboardButton - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa2fa4880 serializeBlock:^bool (Api48_KeyboardButton_keyboardButton *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.text data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(keyboardButton text:%d)", (int)[self.text length]]; } @end @interface Api48_ContactStatus () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_UserStatus * status; @end @interface Api48_ContactStatus_contactStatus () @end @implementation Api48_ContactStatus + (Api48_ContactStatus_contactStatus *)contactStatusWithUserId:(NSNumber *)userId status:(Api48_UserStatus *)status { Api48_ContactStatus_contactStatus *_object = [[Api48_ContactStatus_contactStatus alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.status = status; return _object; } @end @implementation Api48_ContactStatus_contactStatus - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd3680c61 serializeBlock:^bool (Api48_ContactStatus_contactStatus *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.status data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactStatus user_id:%@ status:%@)", self.userId, self.status]; } @end @interface Api48_PhotoSize () @property (nonatomic, strong) NSString * type; @end @interface Api48_PhotoSize_photoSizeEmpty () @end @interface Api48_PhotoSize_photoSize () @property (nonatomic, strong) Api48_FileLocation * location; @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @property (nonatomic, strong) NSNumber * size; @end @interface Api48_PhotoSize_photoCachedSize () @property (nonatomic, strong) Api48_FileLocation * location; @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @property (nonatomic, strong) NSData * bytes; @end @implementation Api48_PhotoSize + (Api48_PhotoSize_photoSizeEmpty *)photoSizeEmptyWithType:(NSString *)type { Api48_PhotoSize_photoSizeEmpty *_object = [[Api48_PhotoSize_photoSizeEmpty alloc] init]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_PhotoSize_photoSize *)photoSizeWithType:(NSString *)type location:(Api48_FileLocation *)location w:(NSNumber *)w h:(NSNumber *)h size:(NSNumber *)size { Api48_PhotoSize_photoSize *_object = [[Api48_PhotoSize_photoSize alloc] init]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.location = location; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.size = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:size] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_PhotoSize_photoCachedSize *)photoCachedSizeWithType:(NSString *)type location:(Api48_FileLocation *)location w:(NSNumber *)w h:(NSNumber *)h bytes:(NSData *)bytes { Api48_PhotoSize_photoCachedSize *_object = [[Api48_PhotoSize_photoCachedSize alloc] init]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.location = location; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.bytes = [Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_PhotoSize_photoSizeEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe17e23c serializeBlock:^bool (Api48_PhotoSize_photoSizeEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photoSizeEmpty type:%d)", (int)[self.type length]]; } @end @implementation Api48_PhotoSize_photoSize - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x77bfb61b serializeBlock:^bool (Api48_PhotoSize_photoSize *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.location data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.size data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photoSize type:%d location:%@ w:%@ h:%@ size:%@)", (int)[self.type length], self.location, self.w, self.h, self.size]; } @end @implementation Api48_PhotoSize_photoCachedSize - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe9a734fa serializeBlock:^bool (Api48_PhotoSize_photoCachedSize *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.location data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.bytes data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photoCachedSize type:%d location:%@ w:%@ h:%@ bytes:%d)", (int)[self.type length], self.location, self.w, self.h, (int)[self.bytes length]]; } @end @interface Api48_messages_Stickers () @end @interface Api48_messages_Stickers_messages_stickersNotModified () @end @interface Api48_messages_Stickers_messages_stickers () @property (nonatomic, strong) NSString * phash; @property (nonatomic, strong) NSArray * stickers; @end @implementation Api48_messages_Stickers + (Api48_messages_Stickers_messages_stickersNotModified *)messages_stickersNotModified { Api48_messages_Stickers_messages_stickersNotModified *_object = [[Api48_messages_Stickers_messages_stickersNotModified alloc] init]; return _object; } + (Api48_messages_Stickers_messages_stickers *)messages_stickersWithPhash:(NSString *)phash stickers:(NSArray *)stickers { Api48_messages_Stickers_messages_stickers *_object = [[Api48_messages_Stickers_messages_stickers alloc] init]; _object.phash = [Api48__Serializer addSerializerToObject:[phash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.stickers = ({ NSMutableArray *stickers_copy = [[NSMutableArray alloc] initWithCapacity:stickers.count]; for (id stickers_item in stickers) { [stickers_copy addObject:stickers_item]; } id stickers_result = [Api48__Serializer addSerializerToObject:stickers_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; stickers_result;}); return _object; } @end @implementation Api48_messages_Stickers_messages_stickersNotModified - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf1749a22 serializeBlock:^bool (__unused Api48_messages_Stickers_messages_stickersNotModified *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.stickersNotModified)"]; } @end @implementation Api48_messages_Stickers_messages_stickers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8a8ecd32 serializeBlock:^bool (Api48_messages_Stickers_messages_stickers *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.stickers data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.stickers hash:%d stickers:%@)", (int)[self.phash length], self.stickers]; } @end @interface Api48_GlobalPrivacySettings () @property (nonatomic, strong) Api48_Bool * noSuggestions; @property (nonatomic, strong) Api48_Bool * hideContacts; @property (nonatomic, strong) Api48_Bool * hideLocated; @property (nonatomic, strong) Api48_Bool * hideLastVisit; @end @interface Api48_GlobalPrivacySettings_globalPrivacySettings () @end @implementation Api48_GlobalPrivacySettings + (Api48_GlobalPrivacySettings_globalPrivacySettings *)globalPrivacySettingsWithNoSuggestions:(Api48_Bool *)noSuggestions hideContacts:(Api48_Bool *)hideContacts hideLocated:(Api48_Bool *)hideLocated hideLastVisit:(Api48_Bool *)hideLastVisit { Api48_GlobalPrivacySettings_globalPrivacySettings *_object = [[Api48_GlobalPrivacySettings_globalPrivacySettings alloc] init]; _object.noSuggestions = noSuggestions; _object.hideContacts = hideContacts; _object.hideLocated = hideLocated; _object.hideLastVisit = hideLastVisit; return _object; } @end @implementation Api48_GlobalPrivacySettings_globalPrivacySettings - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x40f5c53a serializeBlock:^bool (Api48_GlobalPrivacySettings_globalPrivacySettings *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.noSuggestions data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.hideContacts data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.hideLocated data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.hideLastVisit data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(globalPrivacySettings no_suggestions:%@ hide_contacts:%@ hide_located:%@ hide_last_visit:%@)", self.noSuggestions, self.hideContacts, self.hideLocated, self.hideLastVisit]; } @end @interface Api48_messages_FoundGifs () @property (nonatomic, strong) NSNumber * nextOffset; @property (nonatomic, strong) NSArray * results; @end @interface Api48_messages_FoundGifs_messages_foundGifs () @end @implementation Api48_messages_FoundGifs + (Api48_messages_FoundGifs_messages_foundGifs *)messages_foundGifsWithNextOffset:(NSNumber *)nextOffset results:(NSArray *)results { Api48_messages_FoundGifs_messages_foundGifs *_object = [[Api48_messages_FoundGifs_messages_foundGifs alloc] init]; _object.nextOffset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:nextOffset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.results = ({ NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count]; for (id results_item in results) { [results_copy addObject:results_item]; } id results_result = [Api48__Serializer addSerializerToObject:results_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; results_result;}); return _object; } @end @implementation Api48_messages_FoundGifs_messages_foundGifs - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x450a1c0a serializeBlock:^bool (Api48_messages_FoundGifs_messages_foundGifs *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.nextOffset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.results data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.foundGifs next_offset:%@ results:%@)", self.nextOffset, self.results]; } @end @interface Api48_FileLocation () @property (nonatomic, strong) NSNumber * volumeId; @property (nonatomic, strong) NSNumber * localId; @property (nonatomic, strong) NSNumber * secret; @end @interface Api48_FileLocation_fileLocationUnavailable () @end @interface Api48_FileLocation_fileLocation () @property (nonatomic, strong) NSNumber * dcId; @end @implementation Api48_FileLocation + (Api48_FileLocation_fileLocationUnavailable *)fileLocationUnavailableWithVolumeId:(NSNumber *)volumeId localId:(NSNumber *)localId secret:(NSNumber *)secret { Api48_FileLocation_fileLocationUnavailable *_object = [[Api48_FileLocation_fileLocationUnavailable alloc] init]; _object.volumeId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:volumeId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.localId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:localId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.secret = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:secret] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_FileLocation_fileLocation *)fileLocationWithDcId:(NSNumber *)dcId volumeId:(NSNumber *)volumeId localId:(NSNumber *)localId secret:(NSNumber *)secret { Api48_FileLocation_fileLocation *_object = [[Api48_FileLocation_fileLocation alloc] init]; _object.dcId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dcId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.volumeId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:volumeId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.localId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:localId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.secret = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:secret] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_FileLocation_fileLocationUnavailable - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7c596b46 serializeBlock:^bool (Api48_FileLocation_fileLocationUnavailable *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.volumeId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.localId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.secret data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(fileLocationUnavailable volume_id:%@ local_id:%@ secret:%@)", self.volumeId, self.localId, self.secret]; } @end @implementation Api48_FileLocation_fileLocation - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x53d69076 serializeBlock:^bool (Api48_FileLocation_fileLocation *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.dcId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.volumeId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.localId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.secret data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(fileLocation dc_id:%@ volume_id:%@ local_id:%@ secret:%@)", self.dcId, self.volumeId, self.localId, self.secret]; } @end @interface Api48_InputNotifyPeer () @end @interface Api48_InputNotifyPeer_inputNotifyPeer () @property (nonatomic, strong) Api48_InputPeer * peer; @end @interface Api48_InputNotifyPeer_inputNotifyUsers () @end @interface Api48_InputNotifyPeer_inputNotifyChats () @end @interface Api48_InputNotifyPeer_inputNotifyAll () @end @implementation Api48_InputNotifyPeer + (Api48_InputNotifyPeer_inputNotifyPeer *)inputNotifyPeerWithPeer:(Api48_InputPeer *)peer { Api48_InputNotifyPeer_inputNotifyPeer *_object = [[Api48_InputNotifyPeer_inputNotifyPeer alloc] init]; _object.peer = peer; return _object; } + (Api48_InputNotifyPeer_inputNotifyUsers *)inputNotifyUsers { Api48_InputNotifyPeer_inputNotifyUsers *_object = [[Api48_InputNotifyPeer_inputNotifyUsers alloc] init]; return _object; } + (Api48_InputNotifyPeer_inputNotifyChats *)inputNotifyChats { Api48_InputNotifyPeer_inputNotifyChats *_object = [[Api48_InputNotifyPeer_inputNotifyChats alloc] init]; return _object; } + (Api48_InputNotifyPeer_inputNotifyAll *)inputNotifyAll { Api48_InputNotifyPeer_inputNotifyAll *_object = [[Api48_InputNotifyPeer_inputNotifyAll alloc] init]; return _object; } @end @implementation Api48_InputNotifyPeer_inputNotifyPeer - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb8bc5b0c serializeBlock:^bool (Api48_InputNotifyPeer_inputNotifyPeer *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputNotifyPeer peer:%@)", self.peer]; } @end @implementation Api48_InputNotifyPeer_inputNotifyUsers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x193b4417 serializeBlock:^bool (__unused Api48_InputNotifyPeer_inputNotifyUsers *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputNotifyUsers)"]; } @end @implementation Api48_InputNotifyPeer_inputNotifyChats - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4a95e84e serializeBlock:^bool (__unused Api48_InputNotifyPeer_inputNotifyChats *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputNotifyChats)"]; } @end @implementation Api48_InputNotifyPeer_inputNotifyAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa429b886 serializeBlock:^bool (__unused Api48_InputNotifyPeer_inputNotifyAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputNotifyAll)"]; } @end @interface Api48_EncryptedMessage () @property (nonatomic, strong) NSNumber * randomId; @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSData * bytes; @end @interface Api48_EncryptedMessage_encryptedMessage () @property (nonatomic, strong) Api48_EncryptedFile * file; @end @interface Api48_EncryptedMessage_encryptedMessageService () @end @implementation Api48_EncryptedMessage + (Api48_EncryptedMessage_encryptedMessage *)encryptedMessageWithRandomId:(NSNumber *)randomId chatId:(NSNumber *)chatId date:(NSNumber *)date bytes:(NSData *)bytes file:(Api48_EncryptedFile *)file { Api48_EncryptedMessage_encryptedMessage *_object = [[Api48_EncryptedMessage_encryptedMessage alloc] init]; _object.randomId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.bytes = [Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.file = file; return _object; } + (Api48_EncryptedMessage_encryptedMessageService *)encryptedMessageServiceWithRandomId:(NSNumber *)randomId chatId:(NSNumber *)chatId date:(NSNumber *)date bytes:(NSData *)bytes { Api48_EncryptedMessage_encryptedMessageService *_object = [[Api48_EncryptedMessage_encryptedMessageService alloc] init]; _object.randomId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.bytes = [Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_EncryptedMessage_encryptedMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xed18c118 serializeBlock:^bool (Api48_EncryptedMessage_encryptedMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.randomId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.bytes data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.file data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedMessage random_id:%@ chat_id:%@ date:%@ bytes:%d file:%@)", self.randomId, self.chatId, self.date, (int)[self.bytes length], self.file]; } @end @implementation Api48_EncryptedMessage_encryptedMessageService - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x23734b06 serializeBlock:^bool (Api48_EncryptedMessage_encryptedMessageService *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.randomId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.bytes data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedMessageService random_id:%@ chat_id:%@ date:%@ bytes:%d)", self.randomId, self.chatId, self.date, (int)[self.bytes length]]; } @end @interface Api48_ChannelParticipantsFilter () @end @interface Api48_ChannelParticipantsFilter_channelParticipantsRecent () @end @interface Api48_ChannelParticipantsFilter_channelParticipantsAdmins () @end @interface Api48_ChannelParticipantsFilter_channelParticipantsKicked () @end @interface Api48_ChannelParticipantsFilter_channelParticipantsBots () @end @implementation Api48_ChannelParticipantsFilter + (Api48_ChannelParticipantsFilter_channelParticipantsRecent *)channelParticipantsRecent { Api48_ChannelParticipantsFilter_channelParticipantsRecent *_object = [[Api48_ChannelParticipantsFilter_channelParticipantsRecent alloc] init]; return _object; } + (Api48_ChannelParticipantsFilter_channelParticipantsAdmins *)channelParticipantsAdmins { Api48_ChannelParticipantsFilter_channelParticipantsAdmins *_object = [[Api48_ChannelParticipantsFilter_channelParticipantsAdmins alloc] init]; return _object; } + (Api48_ChannelParticipantsFilter_channelParticipantsKicked *)channelParticipantsKicked { Api48_ChannelParticipantsFilter_channelParticipantsKicked *_object = [[Api48_ChannelParticipantsFilter_channelParticipantsKicked alloc] init]; return _object; } + (Api48_ChannelParticipantsFilter_channelParticipantsBots *)channelParticipantsBots { Api48_ChannelParticipantsFilter_channelParticipantsBots *_object = [[Api48_ChannelParticipantsFilter_channelParticipantsBots alloc] init]; return _object; } @end @implementation Api48_ChannelParticipantsFilter_channelParticipantsRecent - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xde3f3c79 serializeBlock:^bool (__unused Api48_ChannelParticipantsFilter_channelParticipantsRecent *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantsRecent)"]; } @end @implementation Api48_ChannelParticipantsFilter_channelParticipantsAdmins - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb4608969 serializeBlock:^bool (__unused Api48_ChannelParticipantsFilter_channelParticipantsAdmins *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantsAdmins)"]; } @end @implementation Api48_ChannelParticipantsFilter_channelParticipantsKicked - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3c37bb7a serializeBlock:^bool (__unused Api48_ChannelParticipantsFilter_channelParticipantsKicked *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantsKicked)"]; } @end @implementation Api48_ChannelParticipantsFilter_channelParticipantsBots - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb0d1865b serializeBlock:^bool (__unused Api48_ChannelParticipantsFilter_channelParticipantsBots *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelParticipantsBots)"]; } @end @interface Api48_WebPage () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_WebPage_webPageEmpty () @end @interface Api48_WebPage_webPagePending () @property (nonatomic, strong) NSNumber * date; @end @interface Api48_WebPage_webPage () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * url; @property (nonatomic, strong) NSString * displayUrl; @property (nonatomic, strong) NSString * type; @property (nonatomic, strong) NSString * siteName; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * pdescription; @property (nonatomic, strong) Api48_Photo * photo; @property (nonatomic, strong) NSString * embedUrl; @property (nonatomic, strong) NSString * embedType; @property (nonatomic, strong) NSNumber * embedWidth; @property (nonatomic, strong) NSNumber * embedHeight; @property (nonatomic, strong) NSNumber * duration; @property (nonatomic, strong) NSString * author; @property (nonatomic, strong) Api48_Document * document; @end @implementation Api48_WebPage + (Api48_WebPage_webPageEmpty *)webPageEmptyWithPid:(NSNumber *)pid { Api48_WebPage_webPageEmpty *_object = [[Api48_WebPage_webPageEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_WebPage_webPagePending *)webPagePendingWithPid:(NSNumber *)pid date:(NSNumber *)date { Api48_WebPage_webPagePending *_object = [[Api48_WebPage_webPagePending alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_WebPage_webPage *)webPageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid url:(NSString *)url displayUrl:(NSString *)displayUrl type:(NSString *)type siteName:(NSString *)siteName title:(NSString *)title pdescription:(NSString *)pdescription photo:(Api48_Photo *)photo embedUrl:(NSString *)embedUrl embedType:(NSString *)embedType embedWidth:(NSNumber *)embedWidth embedHeight:(NSNumber *)embedHeight duration:(NSNumber *)duration author:(NSString *)author document:(Api48_Document *)document { Api48_WebPage_webPage *_object = [[Api48_WebPage_webPage alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.displayUrl = [Api48__Serializer addSerializerToObject:[displayUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.siteName = [Api48__Serializer addSerializerToObject:[siteName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pdescription = [Api48__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.photo = photo; _object.embedUrl = [Api48__Serializer addSerializerToObject:[embedUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.embedType = [Api48__Serializer addSerializerToObject:[embedType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.embedWidth = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:embedWidth] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.embedHeight = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:embedHeight] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.duration = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:duration] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.author = [Api48__Serializer addSerializerToObject:[author copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.document = document; return _object; } @end @implementation Api48_WebPage_webPageEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xeb1477e8 serializeBlock:^bool (Api48_WebPage_webPageEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(webPageEmpty id:%@)", self.pid]; } @end @implementation Api48_WebPage_webPagePending - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc586da1c serializeBlock:^bool (Api48_WebPage_webPagePending *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(webPagePending id:%@ date:%@)", self.pid, self.date]; } @end @implementation Api48_WebPage_webPage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xca820ed7 serializeBlock:^bool (Api48_WebPage_webPage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.displayUrl data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.siteName data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.pdescription data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 4)) { if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.embedUrl data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.embedType data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.embedWidth data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.embedHeight data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.duration data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 8)) { if (![Api48__Environment serializeObject:object.author data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 9)) { if (![Api48__Environment serializeObject:object.document data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(webPage flags:%@ id:%@ url:%d display_url:%d type:%d site_name:%d title:%d description:%d photo:%@ embed_url:%d embed_type:%d embed_width:%@ embed_height:%@ duration:%@ author:%d document:%@)", self.flags, self.pid, (int)[self.url length], (int)[self.displayUrl length], (int)[self.type length], (int)[self.siteName length], (int)[self.title length], (int)[self.pdescription length], self.photo, (int)[self.embedUrl length], (int)[self.embedType length], self.embedWidth, self.embedHeight, self.duration, (int)[self.author length], self.document]; } @end @interface Api48_InputBotInlineMessage () @end @interface Api48_InputBotInlineMessage_inputBotInlineMessageMediaAuto () @property (nonatomic, strong) NSString * caption; @end @interface Api48_InputBotInlineMessage_inputBotInlineMessageText () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * message; @property (nonatomic, strong) NSArray * entities; @end @implementation Api48_InputBotInlineMessage + (Api48_InputBotInlineMessage_inputBotInlineMessageMediaAuto *)inputBotInlineMessageMediaAutoWithCaption:(NSString *)caption { Api48_InputBotInlineMessage_inputBotInlineMessageMediaAuto *_object = [[Api48_InputBotInlineMessage_inputBotInlineMessageMediaAuto alloc] init]; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputBotInlineMessage_inputBotInlineMessageText *)inputBotInlineMessageTextWithFlags:(NSNumber *)flags message:(NSString *)message entities:(NSArray *)entities { Api48_InputBotInlineMessage_inputBotInlineMessageText *_object = [[Api48_InputBotInlineMessage_inputBotInlineMessageText alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.entities = ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}); return _object; } @end @implementation Api48_InputBotInlineMessage_inputBotInlineMessageMediaAuto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2e43e587 serializeBlock:^bool (Api48_InputBotInlineMessage_inputBotInlineMessageMediaAuto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputBotInlineMessageMediaAuto caption:%d)", (int)[self.caption length]]; } @end @implementation Api48_InputBotInlineMessage_inputBotInlineMessageText - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xadf0df71 serializeBlock:^bool (Api48_InputBotInlineMessage_inputBotInlineMessageText *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.entities data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputBotInlineMessageText flags:%@ message:%d entities:%@)", self.flags, (int)[self.message length], self.entities]; } @end @interface Api48_KeyboardButtonRow () @property (nonatomic, strong) NSArray * buttons; @end @interface Api48_KeyboardButtonRow_keyboardButtonRow () @end @implementation Api48_KeyboardButtonRow + (Api48_KeyboardButtonRow_keyboardButtonRow *)keyboardButtonRowWithButtons:(NSArray *)buttons { Api48_KeyboardButtonRow_keyboardButtonRow *_object = [[Api48_KeyboardButtonRow_keyboardButtonRow alloc] init]; _object.buttons = ({ NSMutableArray *buttons_copy = [[NSMutableArray alloc] initWithCapacity:buttons.count]; for (id buttons_item in buttons) { [buttons_copy addObject:buttons_item]; } id buttons_result = [Api48__Serializer addSerializerToObject:buttons_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; buttons_result;}); return _object; } @end @implementation Api48_KeyboardButtonRow_keyboardButtonRow - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x77608b83 serializeBlock:^bool (Api48_KeyboardButtonRow_keyboardButtonRow *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.buttons data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(keyboardButtonRow buttons:%@)", self.buttons]; } @end @interface Api48_StickerSet () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * shortName; @property (nonatomic, strong) NSNumber * count; @property (nonatomic, strong) NSNumber * nHash; @end @interface Api48_StickerSet_stickerSet () @end @implementation Api48_StickerSet + (Api48_StickerSet_stickerSet *)stickerSetWithFlags:(NSNumber *)flags pid:(NSNumber *)pid accessHash:(NSNumber *)accessHash title:(NSString *)title shortName:(NSString *)shortName count:(NSNumber *)count nHash:(NSNumber *)nHash { Api48_StickerSet_stickerSet *_object = [[Api48_StickerSet_stickerSet alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.shortName = [Api48__Serializer addSerializerToObject:[shortName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.nHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:nHash] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_StickerSet_stickerSet - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xcd303b41 serializeBlock:^bool (Api48_StickerSet_stickerSet *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.shortName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.nHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(stickerSet flags:%@ id:%@ access_hash:%@ title:%d short_name:%d count:%@ n_hash:%@)", self.flags, self.pid, self.accessHash, (int)[self.title length], (int)[self.shortName length], self.count, self.nHash]; } @end @interface Api48_photos_Photo () @property (nonatomic, strong) Api48_Photo * photo; @property (nonatomic, strong) NSArray * users; @end @interface Api48_photos_Photo_photos_photo () @end @implementation Api48_photos_Photo + (Api48_photos_Photo_photos_photo *)photos_photoWithPhoto:(Api48_Photo *)photo users:(NSArray *)users { Api48_photos_Photo_photos_photo *_object = [[Api48_photos_Photo_photos_photo alloc] init]; _object.photo = photo; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_photos_Photo_photos_photo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x20212ca8 serializeBlock:^bool (Api48_photos_Photo_photos_photo *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photos.photo photo:%@ users:%@)", self.photo, self.users]; } @end @interface Api48_InputContact () @property (nonatomic, strong) NSNumber * clientId; @property (nonatomic, strong) NSString * phone; @property (nonatomic, strong) NSString * firstName; @property (nonatomic, strong) NSString * lastName; @end @interface Api48_InputContact_inputPhoneContact () @end @implementation Api48_InputContact + (Api48_InputContact_inputPhoneContact *)inputPhoneContactWithClientId:(NSNumber *)clientId phone:(NSString *)phone firstName:(NSString *)firstName lastName:(NSString *)lastName { Api48_InputContact_inputPhoneContact *_object = [[Api48_InputContact_inputPhoneContact alloc] init]; _object.clientId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:clientId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.phone = [Api48__Serializer addSerializerToObject:[phone copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.firstName = [Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.lastName = [Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_InputContact_inputPhoneContact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf392b7f4 serializeBlock:^bool (Api48_InputContact_inputPhoneContact *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.clientId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.phone data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.firstName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.lastName data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPhoneContact client_id:%@ phone:%d first_name:%d last_name:%d)", self.clientId, (int)[self.phone length], (int)[self.firstName length], (int)[self.lastName length]]; } @end @interface Api48_contacts_Contacts () @end @interface Api48_contacts_Contacts_contacts_contacts () @property (nonatomic, strong) NSArray * contacts; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_Contacts_contacts_contactsNotModified () @end @implementation Api48_contacts_Contacts + (Api48_contacts_Contacts_contacts_contacts *)contacts_contactsWithContacts:(NSArray *)contacts users:(NSArray *)users { Api48_contacts_Contacts_contacts_contacts *_object = [[Api48_contacts_Contacts_contacts_contacts alloc] init]; _object.contacts = ({ NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count]; for (id contacts_item in contacts) { [contacts_copy addObject:contacts_item]; } id contacts_result = [Api48__Serializer addSerializerToObject:contacts_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; contacts_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_contacts_Contacts_contacts_contactsNotModified *)contacts_contactsNotModified { Api48_contacts_Contacts_contacts_contactsNotModified *_object = [[Api48_contacts_Contacts_contacts_contactsNotModified alloc] init]; return _object; } @end @implementation Api48_contacts_Contacts_contacts_contacts - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6f8b8cb2 serializeBlock:^bool (Api48_contacts_Contacts_contacts_contacts *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.contacts data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.contacts contacts:%@ users:%@)", self.contacts, self.users]; } @end @implementation Api48_contacts_Contacts_contacts_contactsNotModified - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb74ba9d2 serializeBlock:^bool (__unused Api48_contacts_Contacts_contacts_contactsNotModified *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.contactsNotModified)"]; } @end @interface Api48_ChannelMessagesFilter () @end @interface Api48_ChannelMessagesFilter_channelMessagesFilterEmpty () @end @interface Api48_ChannelMessagesFilter_channelMessagesFilter () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSArray * ranges; @end @interface Api48_ChannelMessagesFilter_channelMessagesFilterCollapsed () @end @implementation Api48_ChannelMessagesFilter + (Api48_ChannelMessagesFilter_channelMessagesFilterEmpty *)channelMessagesFilterEmpty { Api48_ChannelMessagesFilter_channelMessagesFilterEmpty *_object = [[Api48_ChannelMessagesFilter_channelMessagesFilterEmpty alloc] init]; return _object; } + (Api48_ChannelMessagesFilter_channelMessagesFilter *)channelMessagesFilterWithFlags:(NSNumber *)flags ranges:(NSArray *)ranges { Api48_ChannelMessagesFilter_channelMessagesFilter *_object = [[Api48_ChannelMessagesFilter_channelMessagesFilter alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ranges = ({ NSMutableArray *ranges_copy = [[NSMutableArray alloc] initWithCapacity:ranges.count]; for (id ranges_item in ranges) { [ranges_copy addObject:ranges_item]; } id ranges_result = [Api48__Serializer addSerializerToObject:ranges_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; ranges_result;}); return _object; } + (Api48_ChannelMessagesFilter_channelMessagesFilterCollapsed *)channelMessagesFilterCollapsed { Api48_ChannelMessagesFilter_channelMessagesFilterCollapsed *_object = [[Api48_ChannelMessagesFilter_channelMessagesFilterCollapsed alloc] init]; return _object; } @end @implementation Api48_ChannelMessagesFilter_channelMessagesFilterEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x94d42ee7 serializeBlock:^bool (__unused Api48_ChannelMessagesFilter_channelMessagesFilterEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelMessagesFilterEmpty)"]; } @end @implementation Api48_ChannelMessagesFilter_channelMessagesFilter - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xcd77d957 serializeBlock:^bool (Api48_ChannelMessagesFilter_channelMessagesFilter *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ranges data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelMessagesFilter flags:%@ ranges:%@)", self.flags, self.ranges]; } @end @implementation Api48_ChannelMessagesFilter_channelMessagesFilterCollapsed - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfa01232e serializeBlock:^bool (__unused Api48_ChannelMessagesFilter_channelMessagesFilterCollapsed *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channelMessagesFilterCollapsed)"]; } @end @interface Api48_auth_PasswordRecovery () @property (nonatomic, strong) NSString * emailPattern; @end @interface Api48_auth_PasswordRecovery_auth_passwordRecovery () @end @implementation Api48_auth_PasswordRecovery + (Api48_auth_PasswordRecovery_auth_passwordRecovery *)auth_passwordRecoveryWithEmailPattern:(NSString *)emailPattern { Api48_auth_PasswordRecovery_auth_passwordRecovery *_object = [[Api48_auth_PasswordRecovery_auth_passwordRecovery alloc] init]; _object.emailPattern = [Api48__Serializer addSerializerToObject:[emailPattern copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_auth_PasswordRecovery_auth_passwordRecovery - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x137948a5 serializeBlock:^bool (Api48_auth_PasswordRecovery_auth_passwordRecovery *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.emailPattern data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.passwordRecovery email_pattern:%d)", (int)[self.emailPattern length]]; } @end @interface Api48_messages_BotResults () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * queryId; @property (nonatomic, strong) NSString * nextOffset; @property (nonatomic, strong) NSArray * results; @end @interface Api48_messages_BotResults_messages_botResults () @end @implementation Api48_messages_BotResults + (Api48_messages_BotResults_messages_botResults *)messages_botResultsWithFlags:(NSNumber *)flags queryId:(NSNumber *)queryId nextOffset:(NSString *)nextOffset results:(NSArray *)results { Api48_messages_BotResults_messages_botResults *_object = [[Api48_messages_BotResults_messages_botResults alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.queryId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:queryId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.nextOffset = [Api48__Serializer addSerializerToObject:[nextOffset copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.results = ({ NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count]; for (id results_item in results) { [results_copy addObject:results_item]; } id results_result = [Api48__Serializer addSerializerToObject:results_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; results_result;}); return _object; } @end @implementation Api48_messages_BotResults_messages_botResults - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1170b0a3 serializeBlock:^bool (Api48_messages_BotResults_messages_botResults *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.queryId data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.nextOffset data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.results data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.botResults flags:%@ query_id:%@ next_offset:%d results:%@)", self.flags, self.queryId, (int)[self.nextOffset length], self.results]; } @end @interface Api48_InputDocument () @end @interface Api48_InputDocument_inputDocumentEmpty () @end @interface Api48_InputDocument_inputDocument () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @implementation Api48_InputDocument + (Api48_InputDocument_inputDocumentEmpty *)inputDocumentEmpty { Api48_InputDocument_inputDocumentEmpty *_object = [[Api48_InputDocument_inputDocumentEmpty alloc] init]; return _object; } + (Api48_InputDocument_inputDocument *)inputDocumentWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputDocument_inputDocument *_object = [[Api48_InputDocument_inputDocument alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputDocument_inputDocumentEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x72f0eaae serializeBlock:^bool (__unused Api48_InputDocument_inputDocumentEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputDocumentEmpty)"]; } @end @implementation Api48_InputDocument_inputDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x18798952 serializeBlock:^bool (Api48_InputDocument_inputDocument *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputDocument id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @interface Api48_contacts_ResolvedPeer () @property (nonatomic, strong) Api48_Peer * peer; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_ResolvedPeer_contacts_resolvedPeer () @end @implementation Api48_contacts_ResolvedPeer + (Api48_contacts_ResolvedPeer_contacts_resolvedPeer *)contacts_resolvedPeerWithPeer:(Api48_Peer *)peer chats:(NSArray *)chats users:(NSArray *)users { Api48_contacts_ResolvedPeer_contacts_resolvedPeer *_object = [[Api48_contacts_ResolvedPeer_contacts_resolvedPeer alloc] init]; _object.peer = peer; _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_ResolvedPeer_contacts_resolvedPeer - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7f077ad9 serializeBlock:^bool (Api48_contacts_ResolvedPeer_contacts_resolvedPeer *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.resolvedPeer peer:%@ chats:%@ users:%@)", self.peer, self.chats, self.users]; } @end @interface Api48_InputMedia () @end @interface Api48_InputMedia_inputMediaEmpty () @end @interface Api48_InputMedia_inputMediaGeoPoint () @property (nonatomic, strong) Api48_InputGeoPoint * geoPoint; @end @interface Api48_InputMedia_inputMediaContact () @property (nonatomic, strong) NSString * phoneNumber; @property (nonatomic, strong) NSString * firstName; @property (nonatomic, strong) NSString * lastName; @end @interface Api48_InputMedia_inputMediaUploadedPhoto () @property (nonatomic, strong) Api48_InputFile * file; @property (nonatomic, strong) NSString * caption; @end @interface Api48_InputMedia_inputMediaPhoto () @property (nonatomic, strong) Api48_InputPhoto * pid; @property (nonatomic, strong) NSString * caption; @end @interface Api48_InputMedia_inputMediaVenue () @property (nonatomic, strong) Api48_InputGeoPoint * geoPoint; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * address; @property (nonatomic, strong) NSString * provider; @property (nonatomic, strong) NSString * venueId; @end @interface Api48_InputMedia_inputMediaGifExternal () @property (nonatomic, strong) NSString * url; @property (nonatomic, strong) NSString * q; @end @interface Api48_InputMedia_inputMediaUploadedDocument () @property (nonatomic, strong) Api48_InputFile * file; @property (nonatomic, strong) NSString * mimeType; @property (nonatomic, strong) NSArray * attributes; @property (nonatomic, strong) NSString * caption; @end @interface Api48_InputMedia_inputMediaUploadedThumbDocument () @property (nonatomic, strong) Api48_InputFile * file; @property (nonatomic, strong) Api48_InputFile * thumb; @property (nonatomic, strong) NSString * mimeType; @property (nonatomic, strong) NSArray * attributes; @property (nonatomic, strong) NSString * caption; @end @interface Api48_InputMedia_inputMediaDocument () @property (nonatomic, strong) Api48_InputDocument * pid; @property (nonatomic, strong) NSString * caption; @end @implementation Api48_InputMedia + (Api48_InputMedia_inputMediaEmpty *)inputMediaEmpty { Api48_InputMedia_inputMediaEmpty *_object = [[Api48_InputMedia_inputMediaEmpty alloc] init]; return _object; } + (Api48_InputMedia_inputMediaGeoPoint *)inputMediaGeoPointWithGeoPoint:(Api48_InputGeoPoint *)geoPoint { Api48_InputMedia_inputMediaGeoPoint *_object = [[Api48_InputMedia_inputMediaGeoPoint alloc] init]; _object.geoPoint = geoPoint; return _object; } + (Api48_InputMedia_inputMediaContact *)inputMediaContactWithPhoneNumber:(NSString *)phoneNumber firstName:(NSString *)firstName lastName:(NSString *)lastName { Api48_InputMedia_inputMediaContact *_object = [[Api48_InputMedia_inputMediaContact alloc] init]; _object.phoneNumber = [Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.firstName = [Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.lastName = [Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaUploadedPhoto *)inputMediaUploadedPhotoWithFile:(Api48_InputFile *)file caption:(NSString *)caption { Api48_InputMedia_inputMediaUploadedPhoto *_object = [[Api48_InputMedia_inputMediaUploadedPhoto alloc] init]; _object.file = file; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaPhoto *)inputMediaPhotoWithPid:(Api48_InputPhoto *)pid caption:(NSString *)caption { Api48_InputMedia_inputMediaPhoto *_object = [[Api48_InputMedia_inputMediaPhoto alloc] init]; _object.pid = pid; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaVenue *)inputMediaVenueWithGeoPoint:(Api48_InputGeoPoint *)geoPoint title:(NSString *)title address:(NSString *)address provider:(NSString *)provider venueId:(NSString *)venueId { Api48_InputMedia_inputMediaVenue *_object = [[Api48_InputMedia_inputMediaVenue alloc] init]; _object.geoPoint = geoPoint; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.address = [Api48__Serializer addSerializerToObject:[address copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.provider = [Api48__Serializer addSerializerToObject:[provider copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.venueId = [Api48__Serializer addSerializerToObject:[venueId copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaGifExternal *)inputMediaGifExternalWithUrl:(NSString *)url q:(NSString *)q { Api48_InputMedia_inputMediaGifExternal *_object = [[Api48_InputMedia_inputMediaGifExternal alloc] init]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.q = [Api48__Serializer addSerializerToObject:[q copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaUploadedDocument *)inputMediaUploadedDocumentWithFile:(Api48_InputFile *)file mimeType:(NSString *)mimeType attributes:(NSArray *)attributes caption:(NSString *)caption { Api48_InputMedia_inputMediaUploadedDocument *_object = [[Api48_InputMedia_inputMediaUploadedDocument alloc] init]; _object.file = file; _object.mimeType = [Api48__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.attributes = ({ NSMutableArray *attributes_copy = [[NSMutableArray alloc] initWithCapacity:attributes.count]; for (id attributes_item in attributes) { [attributes_copy addObject:attributes_item]; } id attributes_result = [Api48__Serializer addSerializerToObject:attributes_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; attributes_result;}); _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaUploadedThumbDocument *)inputMediaUploadedThumbDocumentWithFile:(Api48_InputFile *)file thumb:(Api48_InputFile *)thumb mimeType:(NSString *)mimeType attributes:(NSArray *)attributes caption:(NSString *)caption { Api48_InputMedia_inputMediaUploadedThumbDocument *_object = [[Api48_InputMedia_inputMediaUploadedThumbDocument alloc] init]; _object.file = file; _object.thumb = thumb; _object.mimeType = [Api48__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.attributes = ({ NSMutableArray *attributes_copy = [[NSMutableArray alloc] initWithCapacity:attributes.count]; for (id attributes_item in attributes) { [attributes_copy addObject:attributes_item]; } id attributes_result = [Api48__Serializer addSerializerToObject:attributes_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; attributes_result;}); _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_InputMedia_inputMediaDocument *)inputMediaDocumentWithPid:(Api48_InputDocument *)pid caption:(NSString *)caption { Api48_InputMedia_inputMediaDocument *_object = [[Api48_InputMedia_inputMediaDocument alloc] init]; _object.pid = pid; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_InputMedia_inputMediaEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9664f57f serializeBlock:^bool (__unused Api48_InputMedia_inputMediaEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaEmpty)"]; } @end @implementation Api48_InputMedia_inputMediaGeoPoint - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf9c44144 serializeBlock:^bool (Api48_InputMedia_inputMediaGeoPoint *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.geoPoint data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaGeoPoint geo_point:%@)", self.geoPoint]; } @end @implementation Api48_InputMedia_inputMediaContact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa6e45987 serializeBlock:^bool (Api48_InputMedia_inputMediaContact *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneNumber data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.firstName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.lastName data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaContact phone_number:%d first_name:%d last_name:%d)", (int)[self.phoneNumber length], (int)[self.firstName length], (int)[self.lastName length]]; } @end @implementation Api48_InputMedia_inputMediaUploadedPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf7aff1c0 serializeBlock:^bool (Api48_InputMedia_inputMediaUploadedPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.file data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaUploadedPhoto file:%@ caption:%d)", self.file, (int)[self.caption length]]; } @end @implementation Api48_InputMedia_inputMediaPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe9bfb4f3 serializeBlock:^bool (Api48_InputMedia_inputMediaPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaPhoto id:%@ caption:%d)", self.pid, (int)[self.caption length]]; } @end @implementation Api48_InputMedia_inputMediaVenue - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2827a81a serializeBlock:^bool (Api48_InputMedia_inputMediaVenue *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.geoPoint data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.address data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.provider data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.venueId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaVenue geo_point:%@ title:%d address:%d provider:%d venue_id:%d)", self.geoPoint, (int)[self.title length], (int)[self.address length], (int)[self.provider length], (int)[self.venueId length]]; } @end @implementation Api48_InputMedia_inputMediaGifExternal - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4843b0fd serializeBlock:^bool (Api48_InputMedia_inputMediaGifExternal *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.q data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaGifExternal url:%d q:%d)", (int)[self.url length], (int)[self.q length]]; } @end @implementation Api48_InputMedia_inputMediaUploadedDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1d89306d serializeBlock:^bool (Api48_InputMedia_inputMediaUploadedDocument *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.file data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.mimeType data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.attributes data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaUploadedDocument file:%@ mime_type:%d attributes:%@ caption:%d)", self.file, (int)[self.mimeType length], self.attributes, (int)[self.caption length]]; } @end @implementation Api48_InputMedia_inputMediaUploadedThumbDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xad613491 serializeBlock:^bool (Api48_InputMedia_inputMediaUploadedThumbDocument *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.file data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.thumb data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.mimeType data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.attributes data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaUploadedThumbDocument file:%@ thumb:%@ mime_type:%d attributes:%@ caption:%d)", self.file, self.thumb, (int)[self.mimeType length], self.attributes, (int)[self.caption length]]; } @end @implementation Api48_InputMedia_inputMediaDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1a77f29c serializeBlock:^bool (Api48_InputMedia_inputMediaDocument *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMediaDocument id:%@ caption:%d)", self.pid, (int)[self.caption length]]; } @end @interface Api48_InputPeer () @end @interface Api48_InputPeer_inputPeerEmpty () @end @interface Api48_InputPeer_inputPeerSelf () @end @interface Api48_InputPeer_inputPeerChat () @property (nonatomic, strong) NSNumber * chatId; @end @interface Api48_InputPeer_inputPeerUser () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * accessHash; @end @interface Api48_InputPeer_inputPeerChannel () @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) NSNumber * accessHash; @end @implementation Api48_InputPeer + (Api48_InputPeer_inputPeerEmpty *)inputPeerEmpty { Api48_InputPeer_inputPeerEmpty *_object = [[Api48_InputPeer_inputPeerEmpty alloc] init]; return _object; } + (Api48_InputPeer_inputPeerSelf *)inputPeerSelf { Api48_InputPeer_inputPeerSelf *_object = [[Api48_InputPeer_inputPeerSelf alloc] init]; return _object; } + (Api48_InputPeer_inputPeerChat *)inputPeerChatWithChatId:(NSNumber *)chatId { Api48_InputPeer_inputPeerChat *_object = [[Api48_InputPeer_inputPeerChat alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_InputPeer_inputPeerUser *)inputPeerUserWithUserId:(NSNumber *)userId accessHash:(NSNumber *)accessHash { Api48_InputPeer_inputPeerUser *_object = [[Api48_InputPeer_inputPeerUser alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_InputPeer_inputPeerChannel *)inputPeerChannelWithChannelId:(NSNumber *)channelId accessHash:(NSNumber *)accessHash { Api48_InputPeer_inputPeerChannel *_object = [[Api48_InputPeer_inputPeerChannel alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputPeer_inputPeerEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7f3b18ea serializeBlock:^bool (__unused Api48_InputPeer_inputPeerEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerEmpty)"]; } @end @implementation Api48_InputPeer_inputPeerSelf - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7da07ec9 serializeBlock:^bool (__unused Api48_InputPeer_inputPeerSelf *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerSelf)"]; } @end @implementation Api48_InputPeer_inputPeerChat - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x179be863 serializeBlock:^bool (Api48_InputPeer_inputPeerChat *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerChat chat_id:%@)", self.chatId]; } @end @implementation Api48_InputPeer_inputPeerUser - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7b8e7de6 serializeBlock:^bool (Api48_InputPeer_inputPeerUser *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerUser user_id:%@ access_hash:%@)", self.userId, self.accessHash]; } @end @implementation Api48_InputPeer_inputPeerChannel - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x20adaef8 serializeBlock:^bool (Api48_InputPeer_inputPeerChannel *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerChannel channel_id:%@ access_hash:%@)", self.channelId, self.accessHash]; } @end @interface Api48_Contact () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) Api48_Bool * mutual; @end @interface Api48_Contact_contact () @end @implementation Api48_Contact + (Api48_Contact_contact *)contactWithUserId:(NSNumber *)userId mutual:(Api48_Bool *)mutual { Api48_Contact_contact *_object = [[Api48_Contact_contact alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.mutual = mutual; return _object; } @end @implementation Api48_Contact_contact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf911c994 serializeBlock:^bool (Api48_Contact_contact *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.mutual data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contact user_id:%@ mutual:%@)", self.userId, self.mutual]; } @end @interface Api48_BotInlineResult () @property (nonatomic, strong) NSString * pid; @property (nonatomic, strong) NSString * type; @property (nonatomic, strong) Api48_BotInlineMessage * sendMessage; @end @interface Api48_BotInlineResult_botInlineMediaResultDocument () @property (nonatomic, strong) Api48_Document * document; @end @interface Api48_BotInlineResult_botInlineMediaResultPhoto () @property (nonatomic, strong) Api48_Photo * photo; @end @interface Api48_BotInlineResult_botInlineResult () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * pdescription; @property (nonatomic, strong) NSString * url; @property (nonatomic, strong) NSString * thumbUrl; @property (nonatomic, strong) NSString * contentUrl; @property (nonatomic, strong) NSString * contentType; @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @property (nonatomic, strong) NSNumber * duration; @end @implementation Api48_BotInlineResult + (Api48_BotInlineResult_botInlineMediaResultDocument *)botInlineMediaResultDocumentWithPid:(NSString *)pid type:(NSString *)type document:(Api48_Document *)document sendMessage:(Api48_BotInlineMessage *)sendMessage { Api48_BotInlineResult_botInlineMediaResultDocument *_object = [[Api48_BotInlineResult_botInlineMediaResultDocument alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[pid copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.document = document; _object.sendMessage = sendMessage; return _object; } + (Api48_BotInlineResult_botInlineMediaResultPhoto *)botInlineMediaResultPhotoWithPid:(NSString *)pid type:(NSString *)type photo:(Api48_Photo *)photo sendMessage:(Api48_BotInlineMessage *)sendMessage { Api48_BotInlineResult_botInlineMediaResultPhoto *_object = [[Api48_BotInlineResult_botInlineMediaResultPhoto alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[pid copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.photo = photo; _object.sendMessage = sendMessage; return _object; } + (Api48_BotInlineResult_botInlineResult *)botInlineResultWithFlags:(NSNumber *)flags pid:(NSString *)pid type:(NSString *)type title:(NSString *)title pdescription:(NSString *)pdescription url:(NSString *)url thumbUrl:(NSString *)thumbUrl contentUrl:(NSString *)contentUrl contentType:(NSString *)contentType w:(NSNumber *)w h:(NSNumber *)h duration:(NSNumber *)duration sendMessage:(Api48_BotInlineMessage *)sendMessage { Api48_BotInlineResult_botInlineResult *_object = [[Api48_BotInlineResult_botInlineResult alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[pid copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pdescription = [Api48__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.thumbUrl = [Api48__Serializer addSerializerToObject:[thumbUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.contentUrl = [Api48__Serializer addSerializerToObject:[contentUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.contentType = [Api48__Serializer addSerializerToObject:[contentType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.duration = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:duration] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.sendMessage = sendMessage; return _object; } @end @implementation Api48_BotInlineResult_botInlineMediaResultDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf897d33e serializeBlock:^bool (Api48_BotInlineResult_botInlineMediaResultDocument *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.document data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.sendMessage data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInlineMediaResultDocument id:%d type:%d document:%@ send_message:%@)", (int)[self.pid length], (int)[self.type length], self.document, self.sendMessage]; } @end @implementation Api48_BotInlineResult_botInlineMediaResultPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc5528587 serializeBlock:^bool (Api48_BotInlineResult_botInlineMediaResultPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.sendMessage data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInlineMediaResultPhoto id:%d type:%d photo:%@ send_message:%@)", (int)[self.pid length], (int)[self.type length], self.photo, self.sendMessage]; } @end @implementation Api48_BotInlineResult_botInlineResult - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9bebaeb9 serializeBlock:^bool (Api48_BotInlineResult_botInlineResult *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.pdescription data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 4)) { if (![Api48__Environment serializeObject:object.thumbUrl data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.contentUrl data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.contentType data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.duration data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.sendMessage data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInlineResult flags:%@ id:%d type:%d title:%d description:%d url:%d thumb_url:%d content_url:%d content_type:%d w:%@ h:%@ duration:%@ send_message:%@)", self.flags, (int)[self.pid length], (int)[self.type length], (int)[self.title length], (int)[self.pdescription length], (int)[self.url length], (int)[self.thumbUrl length], (int)[self.contentUrl length], (int)[self.contentType length], self.w, self.h, self.duration, self.sendMessage]; } @end @interface Api48_messages_Chats () @property (nonatomic, strong) NSArray * chats; @end @interface Api48_messages_Chats_messages_chats () @end @implementation Api48_messages_Chats + (Api48_messages_Chats_messages_chats *)messages_chatsWithChats:(NSArray *)chats { Api48_messages_Chats_messages_chats *_object = [[Api48_messages_Chats_messages_chats alloc] init]; _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); return _object; } @end @implementation Api48_messages_Chats_messages_chats - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x64ff9fd5 serializeBlock:^bool (Api48_messages_Chats_messages_chats *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.chats chats:%@)", self.chats]; } @end @interface Api48_contacts_MyLink () @end @interface Api48_contacts_MyLink_contacts_myLinkEmpty () @end @interface Api48_contacts_MyLink_contacts_myLinkRequested () @property (nonatomic, strong) Api48_Bool * contact; @end @interface Api48_contacts_MyLink_contacts_myLinkContact () @end @implementation Api48_contacts_MyLink + (Api48_contacts_MyLink_contacts_myLinkEmpty *)contacts_myLinkEmpty { Api48_contacts_MyLink_contacts_myLinkEmpty *_object = [[Api48_contacts_MyLink_contacts_myLinkEmpty alloc] init]; return _object; } + (Api48_contacts_MyLink_contacts_myLinkRequested *)contacts_myLinkRequestedWithContact:(Api48_Bool *)contact { Api48_contacts_MyLink_contacts_myLinkRequested *_object = [[Api48_contacts_MyLink_contacts_myLinkRequested alloc] init]; _object.contact = contact; return _object; } + (Api48_contacts_MyLink_contacts_myLinkContact *)contacts_myLinkContact { Api48_contacts_MyLink_contacts_myLinkContact *_object = [[Api48_contacts_MyLink_contacts_myLinkContact alloc] init]; return _object; } @end @implementation Api48_contacts_MyLink_contacts_myLinkEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd22a1c60 serializeBlock:^bool (__unused Api48_contacts_MyLink_contacts_myLinkEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.myLinkEmpty)"]; } @end @implementation Api48_contacts_MyLink_contacts_myLinkRequested - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6c69efee serializeBlock:^bool (Api48_contacts_MyLink_contacts_myLinkRequested *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.contact data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.myLinkRequested contact:%@)", self.contact]; } @end @implementation Api48_contacts_MyLink_contacts_myLinkContact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc240ebd9 serializeBlock:^bool (__unused Api48_contacts_MyLink_contacts_myLinkContact *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.myLinkContact)"]; } @end @interface Api48_InputPrivacyRule () @end @interface Api48_InputPrivacyRule_inputPrivacyValueAllowContacts () @end @interface Api48_InputPrivacyRule_inputPrivacyValueAllowAll () @end @interface Api48_InputPrivacyRule_inputPrivacyValueAllowUsers () @property (nonatomic, strong) NSArray * users; @end @interface Api48_InputPrivacyRule_inputPrivacyValueDisallowContacts () @end @interface Api48_InputPrivacyRule_inputPrivacyValueDisallowAll () @end @interface Api48_InputPrivacyRule_inputPrivacyValueDisallowUsers () @property (nonatomic, strong) NSArray * users; @end @implementation Api48_InputPrivacyRule + (Api48_InputPrivacyRule_inputPrivacyValueAllowContacts *)inputPrivacyValueAllowContacts { Api48_InputPrivacyRule_inputPrivacyValueAllowContacts *_object = [[Api48_InputPrivacyRule_inputPrivacyValueAllowContacts alloc] init]; return _object; } + (Api48_InputPrivacyRule_inputPrivacyValueAllowAll *)inputPrivacyValueAllowAll { Api48_InputPrivacyRule_inputPrivacyValueAllowAll *_object = [[Api48_InputPrivacyRule_inputPrivacyValueAllowAll alloc] init]; return _object; } + (Api48_InputPrivacyRule_inputPrivacyValueAllowUsers *)inputPrivacyValueAllowUsersWithUsers:(NSArray *)users { Api48_InputPrivacyRule_inputPrivacyValueAllowUsers *_object = [[Api48_InputPrivacyRule_inputPrivacyValueAllowUsers alloc] init]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_InputPrivacyRule_inputPrivacyValueDisallowContacts *)inputPrivacyValueDisallowContacts { Api48_InputPrivacyRule_inputPrivacyValueDisallowContacts *_object = [[Api48_InputPrivacyRule_inputPrivacyValueDisallowContacts alloc] init]; return _object; } + (Api48_InputPrivacyRule_inputPrivacyValueDisallowAll *)inputPrivacyValueDisallowAll { Api48_InputPrivacyRule_inputPrivacyValueDisallowAll *_object = [[Api48_InputPrivacyRule_inputPrivacyValueDisallowAll alloc] init]; return _object; } + (Api48_InputPrivacyRule_inputPrivacyValueDisallowUsers *)inputPrivacyValueDisallowUsersWithUsers:(NSArray *)users { Api48_InputPrivacyRule_inputPrivacyValueDisallowUsers *_object = [[Api48_InputPrivacyRule_inputPrivacyValueDisallowUsers alloc] init]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_InputPrivacyRule_inputPrivacyValueAllowContacts - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd09e07b serializeBlock:^bool (__unused Api48_InputPrivacyRule_inputPrivacyValueAllowContacts *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyValueAllowContacts)"]; } @end @implementation Api48_InputPrivacyRule_inputPrivacyValueAllowAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x184b35ce serializeBlock:^bool (__unused Api48_InputPrivacyRule_inputPrivacyValueAllowAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyValueAllowAll)"]; } @end @implementation Api48_InputPrivacyRule_inputPrivacyValueAllowUsers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x131cc67f serializeBlock:^bool (Api48_InputPrivacyRule_inputPrivacyValueAllowUsers *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyValueAllowUsers users:%@)", self.users]; } @end @implementation Api48_InputPrivacyRule_inputPrivacyValueDisallowContacts - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xba52007 serializeBlock:^bool (__unused Api48_InputPrivacyRule_inputPrivacyValueDisallowContacts *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyValueDisallowContacts)"]; } @end @implementation Api48_InputPrivacyRule_inputPrivacyValueDisallowAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd66b66c9 serializeBlock:^bool (__unused Api48_InputPrivacyRule_inputPrivacyValueDisallowAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyValueDisallowAll)"]; } @end @implementation Api48_InputPrivacyRule_inputPrivacyValueDisallowUsers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x90110467 serializeBlock:^bool (Api48_InputPrivacyRule_inputPrivacyValueDisallowUsers *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyValueDisallowUsers users:%@)", self.users]; } @end @interface Api48_messages_DhConfig () @property (nonatomic, strong) NSData * random; @end @interface Api48_messages_DhConfig_messages_dhConfigNotModified () @end @interface Api48_messages_DhConfig_messages_dhConfig () @property (nonatomic, strong) NSNumber * g; @property (nonatomic, strong) NSData * p; @property (nonatomic, strong) NSNumber * version; @end @implementation Api48_messages_DhConfig + (Api48_messages_DhConfig_messages_dhConfigNotModified *)messages_dhConfigNotModifiedWithRandom:(NSData *)random { Api48_messages_DhConfig_messages_dhConfigNotModified *_object = [[Api48_messages_DhConfig_messages_dhConfigNotModified alloc] init]; _object.random = [Api48__Serializer addSerializerToObject:[random copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } + (Api48_messages_DhConfig_messages_dhConfig *)messages_dhConfigWithG:(NSNumber *)g p:(NSData *)p version:(NSNumber *)version random:(NSData *)random { Api48_messages_DhConfig_messages_dhConfig *_object = [[Api48_messages_DhConfig_messages_dhConfig alloc] init]; _object.g = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:g] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.p = [Api48__Serializer addSerializerToObject:[p copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.random = [Api48__Serializer addSerializerToObject:[random copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_messages_DhConfig_messages_dhConfigNotModified - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc0e24635 serializeBlock:^bool (Api48_messages_DhConfig_messages_dhConfigNotModified *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.random data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.dhConfigNotModified random:%d)", (int)[self.random length]]; } @end @implementation Api48_messages_DhConfig_messages_dhConfig - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2c221edd serializeBlock:^bool (Api48_messages_DhConfig_messages_dhConfig *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.g data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.p data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.random data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.dhConfig g:%@ p:%d version:%@ random:%d)", self.g, (int)[self.p length], self.version, (int)[self.random length]]; } @end @interface Api48_auth_ExportedAuthorization () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSData * bytes; @end @interface Api48_auth_ExportedAuthorization_auth_exportedAuthorization () @end @implementation Api48_auth_ExportedAuthorization + (Api48_auth_ExportedAuthorization_auth_exportedAuthorization *)auth_exportedAuthorizationWithPid:(NSNumber *)pid bytes:(NSData *)bytes { Api48_auth_ExportedAuthorization_auth_exportedAuthorization *_object = [[Api48_auth_ExportedAuthorization_auth_exportedAuthorization alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.bytes = [Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_auth_ExportedAuthorization_auth_exportedAuthorization - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xdf969c2d serializeBlock:^bool (Api48_auth_ExportedAuthorization_auth_exportedAuthorization *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.bytes data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.exportedAuthorization id:%@ bytes:%d)", self.pid, (int)[self.bytes length]]; } @end @interface Api48_ContactRequest () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ContactRequest_contactRequest () @end @implementation Api48_ContactRequest + (Api48_ContactRequest_contactRequest *)contactRequestWithUserId:(NSNumber *)userId date:(NSNumber *)date { Api48_ContactRequest_contactRequest *_object = [[Api48_ContactRequest_contactRequest alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ContactRequest_contactRequest - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x59f24214 serializeBlock:^bool (Api48_ContactRequest_contactRequest *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactRequest user_id:%@ date:%@)", self.userId, self.date]; } @end @interface Api48_messages_AffectedHistory () @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @property (nonatomic, strong) NSNumber * offset; @end @interface Api48_messages_AffectedHistory_messages_affectedHistory () @end @implementation Api48_messages_AffectedHistory + (Api48_messages_AffectedHistory_messages_affectedHistory *)messages_affectedHistoryWithPts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount offset:(NSNumber *)offset { Api48_messages_AffectedHistory_messages_affectedHistory *_object = [[Api48_messages_AffectedHistory_messages_affectedHistory alloc] init]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_messages_AffectedHistory_messages_affectedHistory - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb45c69d1 serializeBlock:^bool (Api48_messages_AffectedHistory_messages_affectedHistory *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.affectedHistory pts:%@ pts_count:%@ offset:%@)", self.pts, self.ptsCount, self.offset]; } @end @interface Api48_account_PasswordInputSettings () @end @interface Api48_account_PasswordInputSettings_account_passwordInputSettings () @end @implementation Api48_account_PasswordInputSettings + (Api48_account_PasswordInputSettings_account_passwordInputSettings *)account_passwordInputSettings { Api48_account_PasswordInputSettings_account_passwordInputSettings *_object = [[Api48_account_PasswordInputSettings_account_passwordInputSettings alloc] init]; return _object; } @end @implementation Api48_account_PasswordInputSettings_account_passwordInputSettings - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf19c121e serializeBlock:^bool (__unused Api48_account_PasswordInputSettings_account_passwordInputSettings *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.passwordInputSettings)"]; } @end @interface Api48_channels_MessageEditData () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * fromId; @property (nonatomic, strong) NSNumber * editBy; @property (nonatomic, strong) NSNumber * editDate; @property (nonatomic, strong) NSArray * users; @end @interface Api48_channels_MessageEditData_channels_messageEditData () @end @implementation Api48_channels_MessageEditData + (Api48_channels_MessageEditData_channels_messageEditData *)channels_messageEditDataWithFlags:(NSNumber *)flags fromId:(NSNumber *)fromId editBy:(NSNumber *)editBy editDate:(NSNumber *)editDate users:(NSArray *)users { Api48_channels_MessageEditData_channels_messageEditData *_object = [[Api48_channels_MessageEditData_channels_messageEditData alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fromId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fromId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.editBy = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:editBy] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.editDate = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:editDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_channels_MessageEditData_channels_messageEditData - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb86fd3cf serializeBlock:^bool (Api48_channels_MessageEditData_channels_messageEditData *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.fromId data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.editBy data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.editDate data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(channels.messageEditData flags:%@ from_id:%@ edit_by:%@ edit_date:%@ users:%@)", self.flags, self.fromId, self.editBy, self.editDate, self.users]; } @end @interface Api48_messages_ChatFull () @property (nonatomic, strong) Api48_ChatFull * fullChat; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @interface Api48_messages_ChatFull_messages_chatFull () @end @implementation Api48_messages_ChatFull + (Api48_messages_ChatFull_messages_chatFull *)messages_chatFullWithFullChat:(Api48_ChatFull *)fullChat chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_ChatFull_messages_chatFull *_object = [[Api48_messages_ChatFull_messages_chatFull alloc] init]; _object.fullChat = fullChat; _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_messages_ChatFull_messages_chatFull - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe5d7d19c serializeBlock:^bool (Api48_messages_ChatFull_messages_chatFull *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.fullChat data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.chatFull full_chat:%@ chats:%@ users:%@)", self.fullChat, self.chats, self.users]; } @end @interface Api48_contacts_ForeignLink () @end @interface Api48_contacts_ForeignLink_contacts_foreignLinkUnknown () @end @interface Api48_contacts_ForeignLink_contacts_foreignLinkRequested () @property (nonatomic, strong) Api48_Bool * hasPhone; @end @interface Api48_contacts_ForeignLink_contacts_foreignLinkMutual () @end @implementation Api48_contacts_ForeignLink + (Api48_contacts_ForeignLink_contacts_foreignLinkUnknown *)contacts_foreignLinkUnknown { Api48_contacts_ForeignLink_contacts_foreignLinkUnknown *_object = [[Api48_contacts_ForeignLink_contacts_foreignLinkUnknown alloc] init]; return _object; } + (Api48_contacts_ForeignLink_contacts_foreignLinkRequested *)contacts_foreignLinkRequestedWithHasPhone:(Api48_Bool *)hasPhone { Api48_contacts_ForeignLink_contacts_foreignLinkRequested *_object = [[Api48_contacts_ForeignLink_contacts_foreignLinkRequested alloc] init]; _object.hasPhone = hasPhone; return _object; } + (Api48_contacts_ForeignLink_contacts_foreignLinkMutual *)contacts_foreignLinkMutual { Api48_contacts_ForeignLink_contacts_foreignLinkMutual *_object = [[Api48_contacts_ForeignLink_contacts_foreignLinkMutual alloc] init]; return _object; } @end @implementation Api48_contacts_ForeignLink_contacts_foreignLinkUnknown - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x133421f8 serializeBlock:^bool (__unused Api48_contacts_ForeignLink_contacts_foreignLinkUnknown *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.foreignLinkUnknown)"]; } @end @implementation Api48_contacts_ForeignLink_contacts_foreignLinkRequested - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa7801f47 serializeBlock:^bool (Api48_contacts_ForeignLink_contacts_foreignLinkRequested *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.hasPhone data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.foreignLinkRequested has_phone:%@)", self.hasPhone]; } @end @implementation Api48_contacts_ForeignLink_contacts_foreignLinkMutual - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1bea8ce1 serializeBlock:^bool (__unused Api48_contacts_ForeignLink_contacts_foreignLinkMutual *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.foreignLinkMutual)"]; } @end @interface Api48_InputEncryptedChat () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * accessHash; @end @interface Api48_InputEncryptedChat_inputEncryptedChat () @end @implementation Api48_InputEncryptedChat + (Api48_InputEncryptedChat_inputEncryptedChat *)inputEncryptedChatWithChatId:(NSNumber *)chatId accessHash:(NSNumber *)accessHash { Api48_InputEncryptedChat_inputEncryptedChat *_object = [[Api48_InputEncryptedChat_inputEncryptedChat alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputEncryptedChat_inputEncryptedChat - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf141b5e1 serializeBlock:^bool (Api48_InputEncryptedChat_inputEncryptedChat *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputEncryptedChat chat_id:%@ access_hash:%@)", self.chatId, self.accessHash]; } @end @interface Api48_DisabledFeature () @property (nonatomic, strong) NSString * feature; @property (nonatomic, strong) NSString * nDescription; @end @interface Api48_DisabledFeature_disabledFeature () @end @implementation Api48_DisabledFeature + (Api48_DisabledFeature_disabledFeature *)disabledFeatureWithFeature:(NSString *)feature nDescription:(NSString *)nDescription { Api48_DisabledFeature_disabledFeature *_object = [[Api48_DisabledFeature_disabledFeature alloc] init]; _object.feature = [Api48__Serializer addSerializerToObject:[feature copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.nDescription = [Api48__Serializer addSerializerToObject:[nDescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_DisabledFeature_disabledFeature - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xae636f24 serializeBlock:^bool (Api48_DisabledFeature_disabledFeature *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.feature data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.nDescription data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(disabledFeature feature:%d n_description:%d)", (int)[self.feature length], (int)[self.nDescription length]]; } @end @interface Api48_EncryptedFile () @end @interface Api48_EncryptedFile_encryptedFileEmpty () @end @interface Api48_EncryptedFile_encryptedFile () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * size; @property (nonatomic, strong) NSNumber * dcId; @property (nonatomic, strong) NSNumber * keyFingerprint; @end @implementation Api48_EncryptedFile + (Api48_EncryptedFile_encryptedFileEmpty *)encryptedFileEmpty { Api48_EncryptedFile_encryptedFileEmpty *_object = [[Api48_EncryptedFile_encryptedFileEmpty alloc] init]; return _object; } + (Api48_EncryptedFile_encryptedFile *)encryptedFileWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash size:(NSNumber *)size dcId:(NSNumber *)dcId keyFingerprint:(NSNumber *)keyFingerprint { Api48_EncryptedFile_encryptedFile *_object = [[Api48_EncryptedFile_encryptedFile alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.size = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:size] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.dcId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dcId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.keyFingerprint = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_EncryptedFile_encryptedFileEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc21f497e serializeBlock:^bool (__unused Api48_EncryptedFile_encryptedFileEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedFileEmpty)"]; } @end @implementation Api48_EncryptedFile_encryptedFile - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4a70994c serializeBlock:^bool (Api48_EncryptedFile_encryptedFile *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.size data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.dcId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.keyFingerprint data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedFile id:%@ access_hash:%@ size:%@ dc_id:%@ key_fingerprint:%@)", self.pid, self.accessHash, self.size, self.dcId, self.keyFingerprint]; } @end @interface Api48_NotifyPeer () @end @interface Api48_NotifyPeer_notifyPeer () @property (nonatomic, strong) Api48_Peer * peer; @end @interface Api48_NotifyPeer_notifyUsers () @end @interface Api48_NotifyPeer_notifyChats () @end @interface Api48_NotifyPeer_notifyAll () @end @implementation Api48_NotifyPeer + (Api48_NotifyPeer_notifyPeer *)notifyPeerWithPeer:(Api48_Peer *)peer { Api48_NotifyPeer_notifyPeer *_object = [[Api48_NotifyPeer_notifyPeer alloc] init]; _object.peer = peer; return _object; } + (Api48_NotifyPeer_notifyUsers *)notifyUsers { Api48_NotifyPeer_notifyUsers *_object = [[Api48_NotifyPeer_notifyUsers alloc] init]; return _object; } + (Api48_NotifyPeer_notifyChats *)notifyChats { Api48_NotifyPeer_notifyChats *_object = [[Api48_NotifyPeer_notifyChats alloc] init]; return _object; } + (Api48_NotifyPeer_notifyAll *)notifyAll { Api48_NotifyPeer_notifyAll *_object = [[Api48_NotifyPeer_notifyAll alloc] init]; return _object; } @end @implementation Api48_NotifyPeer_notifyPeer - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9fd40bd8 serializeBlock:^bool (Api48_NotifyPeer_notifyPeer *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.peer data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(notifyPeer peer:%@)", self.peer]; } @end @implementation Api48_NotifyPeer_notifyUsers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb4c83b4c serializeBlock:^bool (__unused Api48_NotifyPeer_notifyUsers *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(notifyUsers)"]; } @end @implementation Api48_NotifyPeer_notifyChats - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc007cec3 serializeBlock:^bool (__unused Api48_NotifyPeer_notifyChats *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(notifyChats)"]; } @end @implementation Api48_NotifyPeer_notifyAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x74d07c60 serializeBlock:^bool (__unused Api48_NotifyPeer_notifyAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(notifyAll)"]; } @end @interface Api48_InputPrivacyKey () @end @interface Api48_InputPrivacyKey_inputPrivacyKeyStatusTimestamp () @end @interface Api48_InputPrivacyKey_inputPrivacyKeyChatInvite () @end @implementation Api48_InputPrivacyKey + (Api48_InputPrivacyKey_inputPrivacyKeyStatusTimestamp *)inputPrivacyKeyStatusTimestamp { Api48_InputPrivacyKey_inputPrivacyKeyStatusTimestamp *_object = [[Api48_InputPrivacyKey_inputPrivacyKeyStatusTimestamp alloc] init]; return _object; } + (Api48_InputPrivacyKey_inputPrivacyKeyChatInvite *)inputPrivacyKeyChatInvite { Api48_InputPrivacyKey_inputPrivacyKeyChatInvite *_object = [[Api48_InputPrivacyKey_inputPrivacyKeyChatInvite alloc] init]; return _object; } @end @implementation Api48_InputPrivacyKey_inputPrivacyKeyStatusTimestamp - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4f96cb18 serializeBlock:^bool (__unused Api48_InputPrivacyKey_inputPrivacyKeyStatusTimestamp *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyKeyStatusTimestamp)"]; } @end @implementation Api48_InputPrivacyKey_inputPrivacyKeyChatInvite - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbdfb0426 serializeBlock:^bool (__unused Api48_InputPrivacyKey_inputPrivacyKeyChatInvite *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPrivacyKeyChatInvite)"]; } @end @interface Api48_ReplyMarkup () @property (nonatomic, strong) NSNumber * flags; @end @interface Api48_ReplyMarkup_replyKeyboardHide () @end @interface Api48_ReplyMarkup_replyKeyboardForceReply () @end @interface Api48_ReplyMarkup_replyKeyboardMarkup () @property (nonatomic, strong) NSArray * rows; @end @implementation Api48_ReplyMarkup + (Api48_ReplyMarkup_replyKeyboardHide *)replyKeyboardHideWithFlags:(NSNumber *)flags { Api48_ReplyMarkup_replyKeyboardHide *_object = [[Api48_ReplyMarkup_replyKeyboardHide alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ReplyMarkup_replyKeyboardForceReply *)replyKeyboardForceReplyWithFlags:(NSNumber *)flags { Api48_ReplyMarkup_replyKeyboardForceReply *_object = [[Api48_ReplyMarkup_replyKeyboardForceReply alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_ReplyMarkup_replyKeyboardMarkup *)replyKeyboardMarkupWithFlags:(NSNumber *)flags rows:(NSArray *)rows { Api48_ReplyMarkup_replyKeyboardMarkup *_object = [[Api48_ReplyMarkup_replyKeyboardMarkup alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.rows = ({ NSMutableArray *rows_copy = [[NSMutableArray alloc] initWithCapacity:rows.count]; for (id rows_item in rows) { [rows_copy addObject:rows_item]; } id rows_result = [Api48__Serializer addSerializerToObject:rows_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; rows_result;}); return _object; } @end @implementation Api48_ReplyMarkup_replyKeyboardHide - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa03e5b85 serializeBlock:^bool (Api48_ReplyMarkup_replyKeyboardHide *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(replyKeyboardHide flags:%@)", self.flags]; } @end @implementation Api48_ReplyMarkup_replyKeyboardForceReply - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf4108aa0 serializeBlock:^bool (Api48_ReplyMarkup_replyKeyboardForceReply *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(replyKeyboardForceReply flags:%@)", self.flags]; } @end @implementation Api48_ReplyMarkup_replyKeyboardMarkup - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3502758c serializeBlock:^bool (Api48_ReplyMarkup_replyKeyboardMarkup *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.rows data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(replyKeyboardMarkup flags:%@ rows:%@)", self.flags, self.rows]; } @end @interface Api48_contacts_Link () @property (nonatomic, strong) Api48_ContactLink * myLink; @property (nonatomic, strong) Api48_ContactLink * foreignLink; @property (nonatomic, strong) Api48_User * user; @end @interface Api48_contacts_Link_contacts_link () @end @implementation Api48_contacts_Link + (Api48_contacts_Link_contacts_link *)contacts_linkWithMyLink:(Api48_ContactLink *)myLink foreignLink:(Api48_ContactLink *)foreignLink user:(Api48_User *)user { Api48_contacts_Link_contacts_link *_object = [[Api48_contacts_Link_contacts_link alloc] init]; _object.myLink = myLink; _object.foreignLink = foreignLink; _object.user = user; return _object; } @end @implementation Api48_contacts_Link_contacts_link - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3ace484c serializeBlock:^bool (Api48_contacts_Link_contacts_link *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.myLink data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.foreignLink data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.user data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.link my_link:%@ foreign_link:%@ user:%@)", self.myLink, self.foreignLink, self.user]; } @end @interface Api48_ContactBlocked () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_ContactBlocked_contactBlocked () @end @implementation Api48_ContactBlocked + (Api48_ContactBlocked_contactBlocked *)contactBlockedWithUserId:(NSNumber *)userId date:(NSNumber *)date { Api48_ContactBlocked_contactBlocked *_object = [[Api48_ContactBlocked_contactBlocked alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ContactBlocked_contactBlocked - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x561bc879 serializeBlock:^bool (Api48_ContactBlocked_contactBlocked *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactBlocked user_id:%@ date:%@)", self.userId, self.date]; } @end @interface Api48_auth_CheckedPhone () @property (nonatomic, strong) Api48_Bool * phoneRegistered; @end @interface Api48_auth_CheckedPhone_auth_checkedPhone () @end @implementation Api48_auth_CheckedPhone + (Api48_auth_CheckedPhone_auth_checkedPhone *)auth_checkedPhoneWithPhoneRegistered:(Api48_Bool *)phoneRegistered { Api48_auth_CheckedPhone_auth_checkedPhone *_object = [[Api48_auth_CheckedPhone_auth_checkedPhone alloc] init]; _object.phoneRegistered = phoneRegistered; return _object; } @end @implementation Api48_auth_CheckedPhone_auth_checkedPhone - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x811ea28e serializeBlock:^bool (Api48_auth_CheckedPhone_auth_checkedPhone *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneRegistered data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.checkedPhone phone_registered:%@)", self.phoneRegistered]; } @end @interface Api48_InputUser () @end @interface Api48_InputUser_inputUserEmpty () @end @interface Api48_InputUser_inputUserSelf () @end @interface Api48_InputUser_inputUser () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * accessHash; @end @implementation Api48_InputUser + (Api48_InputUser_inputUserEmpty *)inputUserEmpty { Api48_InputUser_inputUserEmpty *_object = [[Api48_InputUser_inputUserEmpty alloc] init]; return _object; } + (Api48_InputUser_inputUserSelf *)inputUserSelf { Api48_InputUser_inputUserSelf *_object = [[Api48_InputUser_inputUserSelf alloc] init]; return _object; } + (Api48_InputUser_inputUser *)inputUserWithUserId:(NSNumber *)userId accessHash:(NSNumber *)accessHash { Api48_InputUser_inputUser *_object = [[Api48_InputUser_inputUser alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputUser_inputUserEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb98886cf serializeBlock:^bool (__unused Api48_InputUser_inputUserEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputUserEmpty)"]; } @end @implementation Api48_InputUser_inputUserSelf - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf7c1b13f serializeBlock:^bool (__unused Api48_InputUser_inputUserSelf *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputUserSelf)"]; } @end @implementation Api48_InputUser_inputUser - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd8292816 serializeBlock:^bool (Api48_InputUser_inputUser *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputUser user_id:%@ access_hash:%@)", self.userId, self.accessHash]; } @end @interface Api48_SchemeType () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSString * predicate; @property (nonatomic, strong) NSArray * params; @property (nonatomic, strong) NSString * type; @end @interface Api48_SchemeType_schemeType () @end @implementation Api48_SchemeType + (Api48_SchemeType_schemeType *)schemeTypeWithPid:(NSNumber *)pid predicate:(NSString *)predicate params:(NSArray *)params type:(NSString *)type { Api48_SchemeType_schemeType *_object = [[Api48_SchemeType_schemeType alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.predicate = [Api48__Serializer addSerializerToObject:[predicate copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.params = ({ NSMutableArray *params_copy = [[NSMutableArray alloc] initWithCapacity:params.count]; for (id params_item in params) { [params_copy addObject:params_item]; } id params_result = [Api48__Serializer addSerializerToObject:params_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; params_result;}); _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_SchemeType_schemeType - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa8e1e989 serializeBlock:^bool (Api48_SchemeType_schemeType *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.predicate data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.params data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(schemeType id:%@ predicate:%d params:%@ type:%d)", self.pid, (int)[self.predicate length], self.params, (int)[self.type length]]; } @end @interface Api48_upload_File () @property (nonatomic, strong) Api48_storage_FileType * type; @property (nonatomic, strong) NSNumber * mtime; @property (nonatomic, strong) NSData * bytes; @end @interface Api48_upload_File_upload_file () @end @implementation Api48_upload_File + (Api48_upload_File_upload_file *)upload_fileWithType:(Api48_storage_FileType *)type mtime:(NSNumber *)mtime bytes:(NSData *)bytes { Api48_upload_File_upload_file *_object = [[Api48_upload_File_upload_file alloc] init]; _object.type = type; _object.mtime = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:mtime] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.bytes = [Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_upload_File_upload_file - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x96a18d5 serializeBlock:^bool (Api48_upload_File_upload_file *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.type data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.mtime data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.bytes data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(upload.file type:%@ mtime:%@ bytes:%d)", self.type, self.mtime, (int)[self.bytes length]]; } @end @interface Api48_MessageRange () @property (nonatomic, strong) NSNumber * minId; @property (nonatomic, strong) NSNumber * maxId; @end @interface Api48_MessageRange_messageRange () @end @implementation Api48_MessageRange + (Api48_MessageRange_messageRange *)messageRangeWithMinId:(NSNumber *)minId maxId:(NSNumber *)maxId { Api48_MessageRange_messageRange *_object = [[Api48_MessageRange_messageRange alloc] init]; _object.minId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:minId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.maxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_MessageRange_messageRange - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xae30253 serializeBlock:^bool (Api48_MessageRange_messageRange *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.minId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.maxId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageRange min_id:%@ max_id:%@)", self.minId, self.maxId]; } @end @interface Api48_Config () @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * expires; @property (nonatomic, strong) Api48_Bool * testMode; @property (nonatomic, strong) NSNumber * thisDc; @property (nonatomic, strong) NSArray * dcOptions; @property (nonatomic, strong) NSNumber * chatSizeMax; @property (nonatomic, strong) NSNumber * megagroupSizeMax; @property (nonatomic, strong) NSNumber * forwardedCountMax; @property (nonatomic, strong) NSNumber * onlineUpdatePeriodMs; @property (nonatomic, strong) NSNumber * offlineBlurTimeoutMs; @property (nonatomic, strong) NSNumber * offlineIdleTimeoutMs; @property (nonatomic, strong) NSNumber * onlineCloudTimeoutMs; @property (nonatomic, strong) NSNumber * notifyCloudDelayMs; @property (nonatomic, strong) NSNumber * notifyDefaultDelayMs; @property (nonatomic, strong) NSNumber * chatBigSize; @property (nonatomic, strong) NSNumber * pushChatPeriodMs; @property (nonatomic, strong) NSNumber * pushChatLimit; @property (nonatomic, strong) NSNumber * savedGifsLimit; @property (nonatomic, strong) NSNumber * editTimeLimit; @property (nonatomic, strong) NSArray * disabledFeatures; @end @interface Api48_Config_config () @end @implementation Api48_Config + (Api48_Config_config *)configWithDate:(NSNumber *)date expires:(NSNumber *)expires testMode:(Api48_Bool *)testMode thisDc:(NSNumber *)thisDc dcOptions:(NSArray *)dcOptions chatSizeMax:(NSNumber *)chatSizeMax megagroupSizeMax:(NSNumber *)megagroupSizeMax forwardedCountMax:(NSNumber *)forwardedCountMax onlineUpdatePeriodMs:(NSNumber *)onlineUpdatePeriodMs offlineBlurTimeoutMs:(NSNumber *)offlineBlurTimeoutMs offlineIdleTimeoutMs:(NSNumber *)offlineIdleTimeoutMs onlineCloudTimeoutMs:(NSNumber *)onlineCloudTimeoutMs notifyCloudDelayMs:(NSNumber *)notifyCloudDelayMs notifyDefaultDelayMs:(NSNumber *)notifyDefaultDelayMs chatBigSize:(NSNumber *)chatBigSize pushChatPeriodMs:(NSNumber *)pushChatPeriodMs pushChatLimit:(NSNumber *)pushChatLimit savedGifsLimit:(NSNumber *)savedGifsLimit editTimeLimit:(NSNumber *)editTimeLimit disabledFeatures:(NSArray *)disabledFeatures { Api48_Config_config *_object = [[Api48_Config_config alloc] init]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.expires = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:expires] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.testMode = testMode; _object.thisDc = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:thisDc] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.dcOptions = ({ NSMutableArray *dcOptions_copy = [[NSMutableArray alloc] initWithCapacity:dcOptions.count]; for (id dcOptions_item in dcOptions) { [dcOptions_copy addObject:dcOptions_item]; } id dcOptions_result = [Api48__Serializer addSerializerToObject:dcOptions_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; dcOptions_result;}); _object.chatSizeMax = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatSizeMax] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.megagroupSizeMax = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:megagroupSizeMax] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.forwardedCountMax = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:forwardedCountMax] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.onlineUpdatePeriodMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:onlineUpdatePeriodMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.offlineBlurTimeoutMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offlineBlurTimeoutMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.offlineIdleTimeoutMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offlineIdleTimeoutMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.onlineCloudTimeoutMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:onlineCloudTimeoutMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.notifyCloudDelayMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:notifyCloudDelayMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.notifyDefaultDelayMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:notifyDefaultDelayMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.chatBigSize = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatBigSize] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pushChatPeriodMs = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pushChatPeriodMs] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pushChatLimit = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pushChatLimit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.savedGifsLimit = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:savedGifsLimit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.editTimeLimit = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:editTimeLimit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.disabledFeatures = ({ NSMutableArray *disabledFeatures_copy = [[NSMutableArray alloc] initWithCapacity:disabledFeatures.count]; for (id disabledFeatures_item in disabledFeatures) { [disabledFeatures_copy addObject:disabledFeatures_item]; } id disabledFeatures_result = [Api48__Serializer addSerializerToObject:disabledFeatures_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; disabledFeatures_result;}); return _object; } @end @implementation Api48_Config_config - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x317ceef4 serializeBlock:^bool (Api48_Config_config *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.expires data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.testMode data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.thisDc data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.dcOptions data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chatSizeMax data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.megagroupSizeMax data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.forwardedCountMax data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.onlineUpdatePeriodMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.offlineBlurTimeoutMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.offlineIdleTimeoutMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.onlineCloudTimeoutMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.notifyCloudDelayMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.notifyDefaultDelayMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatBigSize data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pushChatPeriodMs data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pushChatLimit data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.savedGifsLimit data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.editTimeLimit data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.disabledFeatures data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(config date:%@ expires:%@ test_mode:%@ this_dc:%@ dc_options:%@ chat_size_max:%@ megagroup_size_max:%@ forwarded_count_max:%@ online_update_period_ms:%@ offline_blur_timeout_ms:%@ offline_idle_timeout_ms:%@ online_cloud_timeout_ms:%@ notify_cloud_delay_ms:%@ notify_default_delay_ms:%@ chat_big_size:%@ push_chat_period_ms:%@ push_chat_limit:%@ saved_gifs_limit:%@ edit_time_limit:%@ disabled_features:%@)", self.date, self.expires, self.testMode, self.thisDc, self.dcOptions, self.chatSizeMax, self.megagroupSizeMax, self.forwardedCountMax, self.onlineUpdatePeriodMs, self.offlineBlurTimeoutMs, self.offlineIdleTimeoutMs, self.onlineCloudTimeoutMs, self.notifyCloudDelayMs, self.notifyDefaultDelayMs, self.chatBigSize, self.pushChatPeriodMs, self.pushChatLimit, self.savedGifsLimit, self.editTimeLimit, self.disabledFeatures]; } @end @interface Api48_BotCommand () @property (nonatomic, strong) NSString * command; @property (nonatomic, strong) NSString * pdescription; @end @interface Api48_BotCommand_botCommand () @end @implementation Api48_BotCommand + (Api48_BotCommand_botCommand *)botCommandWithCommand:(NSString *)command pdescription:(NSString *)pdescription { Api48_BotCommand_botCommand *_object = [[Api48_BotCommand_botCommand alloc] init]; _object.command = [Api48__Serializer addSerializerToObject:[command copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pdescription = [Api48__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_BotCommand_botCommand - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc27ac8c7 serializeBlock:^bool (Api48_BotCommand_botCommand *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.command data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pdescription data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botCommand command:%d description:%d)", (int)[self.command length], (int)[self.pdescription length]]; } @end @interface Api48_contacts_Located () @property (nonatomic, strong) NSArray * results; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_Located_contacts_located () @end @implementation Api48_contacts_Located + (Api48_contacts_Located_contacts_located *)contacts_locatedWithResults:(NSArray *)results users:(NSArray *)users { Api48_contacts_Located_contacts_located *_object = [[Api48_contacts_Located_contacts_located alloc] init]; _object.results = ({ NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count]; for (id results_item in results) { [results_copy addObject:results_item]; } id results_result = [Api48__Serializer addSerializerToObject:results_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; results_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_Located_contacts_located - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xaad7f4a7 serializeBlock:^bool (Api48_contacts_Located_contacts_located *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.results data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.located results:%@ users:%@)", self.results, self.users]; } @end @interface Api48_messages_AffectedMessages () @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @end @interface Api48_messages_AffectedMessages_messages_affectedMessages () @end @implementation Api48_messages_AffectedMessages + (Api48_messages_AffectedMessages_messages_affectedMessages *)messages_affectedMessagesWithPts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount { Api48_messages_AffectedMessages_messages_affectedMessages *_object = [[Api48_messages_AffectedMessages_messages_affectedMessages alloc] init]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_messages_AffectedMessages_messages_affectedMessages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x84d19185 serializeBlock:^bool (Api48_messages_AffectedMessages_messages_affectedMessages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.affectedMessages pts:%@ pts_count:%@)", self.pts, self.ptsCount]; } @end @interface Api48_messages_SavedGifs () @end @interface Api48_messages_SavedGifs_messages_savedGifsNotModified () @end @interface Api48_messages_SavedGifs_messages_savedGifs () @property (nonatomic, strong) NSNumber * phash; @property (nonatomic, strong) NSArray * gifs; @end @implementation Api48_messages_SavedGifs + (Api48_messages_SavedGifs_messages_savedGifsNotModified *)messages_savedGifsNotModified { Api48_messages_SavedGifs_messages_savedGifsNotModified *_object = [[Api48_messages_SavedGifs_messages_savedGifsNotModified alloc] init]; return _object; } + (Api48_messages_SavedGifs_messages_savedGifs *)messages_savedGifsWithPhash:(NSNumber *)phash gifs:(NSArray *)gifs { Api48_messages_SavedGifs_messages_savedGifs *_object = [[Api48_messages_SavedGifs_messages_savedGifs alloc] init]; _object.phash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:phash] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.gifs = ({ NSMutableArray *gifs_copy = [[NSMutableArray alloc] initWithCapacity:gifs.count]; for (id gifs_item in gifs) { [gifs_copy addObject:gifs_item]; } id gifs_result = [Api48__Serializer addSerializerToObject:gifs_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; gifs_result;}); return _object; } @end @implementation Api48_messages_SavedGifs_messages_savedGifsNotModified - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe8025ca2 serializeBlock:^bool (__unused Api48_messages_SavedGifs_messages_savedGifsNotModified *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.savedGifsNotModified)"]; } @end @implementation Api48_messages_SavedGifs_messages_savedGifs - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2e0709a5 serializeBlock:^bool (Api48_messages_SavedGifs_messages_savedGifs *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.gifs data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.savedGifs hash:%@ gifs:%@)", self.phash, self.gifs]; } @end @interface Api48_ResponseIndirect () @end @interface Api48_ResponseIndirect_responseIndirect () @end @implementation Api48_ResponseIndirect + (Api48_ResponseIndirect_responseIndirect *)responseIndirect { Api48_ResponseIndirect_responseIndirect *_object = [[Api48_ResponseIndirect_responseIndirect alloc] init]; return _object; } @end @implementation Api48_ResponseIndirect_responseIndirect - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2194f56e serializeBlock:^bool (__unused Api48_ResponseIndirect_responseIndirect *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(responseIndirect)"]; } @end @interface Api48_WallPaper () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSNumber * color; @end @interface Api48_WallPaper_wallPaper () @property (nonatomic, strong) NSArray * sizes; @end @interface Api48_WallPaper_wallPaperSolid () @property (nonatomic, strong) NSNumber * bgColor; @end @implementation Api48_WallPaper + (Api48_WallPaper_wallPaper *)wallPaperWithPid:(NSNumber *)pid title:(NSString *)title sizes:(NSArray *)sizes color:(NSNumber *)color { Api48_WallPaper_wallPaper *_object = [[Api48_WallPaper_wallPaper alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.sizes = ({ NSMutableArray *sizes_copy = [[NSMutableArray alloc] initWithCapacity:sizes.count]; for (id sizes_item in sizes) { [sizes_copy addObject:sizes_item]; } id sizes_result = [Api48__Serializer addSerializerToObject:sizes_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; sizes_result;}); _object.color = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:color] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_WallPaper_wallPaperSolid *)wallPaperSolidWithPid:(NSNumber *)pid title:(NSString *)title bgColor:(NSNumber *)bgColor color:(NSNumber *)color { Api48_WallPaper_wallPaperSolid *_object = [[Api48_WallPaper_wallPaperSolid alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.bgColor = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:bgColor] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.color = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:color] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_WallPaper_wallPaper - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xccb03657 serializeBlock:^bool (Api48_WallPaper_wallPaper *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sizes data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.color data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(wallPaper id:%@ title:%d sizes:%@ color:%@)", self.pid, (int)[self.title length], self.sizes, self.color]; } @end @implementation Api48_WallPaper_wallPaperSolid - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x63117f24 serializeBlock:^bool (Api48_WallPaper_wallPaperSolid *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.bgColor data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.color data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(wallPaperSolid id:%@ title:%d bg_color:%@ color:%@)", self.pid, (int)[self.title length], self.bgColor, self.color]; } @end @interface Api48_messages_Messages () @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @interface Api48_messages_Messages_messages_messages () @end @interface Api48_messages_Messages_messages_messagesSlice () @property (nonatomic, strong) NSNumber * count; @end @interface Api48_messages_Messages_messages_channelMessages () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * count; @property (nonatomic, strong) NSArray * collapsed; @end @implementation Api48_messages_Messages + (Api48_messages_Messages_messages_messages *)messages_messagesWithMessages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_Messages_messages_messages *_object = [[Api48_messages_Messages_messages_messages alloc] init]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:messages_item]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; messages_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_messages_Messages_messages_messagesSlice *)messages_messagesSliceWithCount:(NSNumber *)count messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_Messages_messages_messagesSlice *_object = [[Api48_messages_Messages_messages_messagesSlice alloc] init]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:messages_item]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; messages_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_messages_Messages_messages_channelMessages *)messages_channelMessagesWithFlags:(NSNumber *)flags pts:(NSNumber *)pts count:(NSNumber *)count messages:(NSArray *)messages collapsed:(NSArray *)collapsed chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_Messages_messages_channelMessages *_object = [[Api48_messages_Messages_messages_channelMessages alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:messages_item]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; messages_result;}); _object.collapsed = ({ NSMutableArray *collapsed_copy = [[NSMutableArray alloc] initWithCapacity:collapsed.count]; for (id collapsed_item in collapsed) { [collapsed_copy addObject:collapsed_item]; } id collapsed_result = [Api48__Serializer addSerializerToObject:collapsed_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; collapsed_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_messages_Messages_messages_messages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8c718e87 serializeBlock:^bool (Api48_messages_Messages_messages_messages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.messages messages:%@ chats:%@ users:%@)", self.messages, self.chats, self.users]; } @end @implementation Api48_messages_Messages_messages_messagesSlice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb446ae3 serializeBlock:^bool (Api48_messages_Messages_messages_messagesSlice *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.messagesSlice count:%@ messages:%@ chats:%@ users:%@)", self.count, self.messages, self.chats, self.users]; } @end @implementation Api48_messages_Messages_messages_channelMessages - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbc0f17bc serializeBlock:^bool (Api48_messages_Messages_messages_channelMessages *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.collapsed data:data addSignature:true]) return false; } if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.channelMessages flags:%@ pts:%@ count:%@ messages:%@ collapsed:%@ chats:%@ users:%@)", self.flags, self.pts, self.count, self.messages, self.collapsed, self.chats, self.users]; } @end @interface Api48_auth_SentCode () @property (nonatomic, strong) Api48_Bool * phoneRegistered; @end @interface Api48_auth_SentCode_auth_sentCodePreview () @property (nonatomic, strong) NSString * phoneCodeHash; @property (nonatomic, strong) NSString * phoneCodeTest; @end @interface Api48_auth_SentCode_auth_sentPassPhrase () @end @interface Api48_auth_SentCode_auth_sentCode () @property (nonatomic, strong) NSString * phoneCodeHash; @property (nonatomic, strong) NSNumber * sendCallTimeout; @property (nonatomic, strong) Api48_Bool * isPassword; @end @interface Api48_auth_SentCode_auth_sentAppCode () @property (nonatomic, strong) NSString * phoneCodeHash; @property (nonatomic, strong) NSNumber * sendCallTimeout; @property (nonatomic, strong) Api48_Bool * isPassword; @end @implementation Api48_auth_SentCode + (Api48_auth_SentCode_auth_sentCodePreview *)auth_sentCodePreviewWithPhoneRegistered:(Api48_Bool *)phoneRegistered phoneCodeHash:(NSString *)phoneCodeHash phoneCodeTest:(NSString *)phoneCodeTest { Api48_auth_SentCode_auth_sentCodePreview *_object = [[Api48_auth_SentCode_auth_sentCodePreview alloc] init]; _object.phoneRegistered = phoneRegistered; _object.phoneCodeHash = [Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.phoneCodeTest = [Api48__Serializer addSerializerToObject:[phoneCodeTest copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_auth_SentCode_auth_sentPassPhrase *)auth_sentPassPhraseWithPhoneRegistered:(Api48_Bool *)phoneRegistered { Api48_auth_SentCode_auth_sentPassPhrase *_object = [[Api48_auth_SentCode_auth_sentPassPhrase alloc] init]; _object.phoneRegistered = phoneRegistered; return _object; } + (Api48_auth_SentCode_auth_sentCode *)auth_sentCodeWithPhoneRegistered:(Api48_Bool *)phoneRegistered phoneCodeHash:(NSString *)phoneCodeHash sendCallTimeout:(NSNumber *)sendCallTimeout isPassword:(Api48_Bool *)isPassword { Api48_auth_SentCode_auth_sentCode *_object = [[Api48_auth_SentCode_auth_sentCode alloc] init]; _object.phoneRegistered = phoneRegistered; _object.phoneCodeHash = [Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.sendCallTimeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:sendCallTimeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.isPassword = isPassword; return _object; } + (Api48_auth_SentCode_auth_sentAppCode *)auth_sentAppCodeWithPhoneRegistered:(Api48_Bool *)phoneRegistered phoneCodeHash:(NSString *)phoneCodeHash sendCallTimeout:(NSNumber *)sendCallTimeout isPassword:(Api48_Bool *)isPassword { Api48_auth_SentCode_auth_sentAppCode *_object = [[Api48_auth_SentCode_auth_sentAppCode alloc] init]; _object.phoneRegistered = phoneRegistered; _object.phoneCodeHash = [Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.sendCallTimeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:sendCallTimeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.isPassword = isPassword; return _object; } @end @implementation Api48_auth_SentCode_auth_sentCodePreview - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3cf5727a serializeBlock:^bool (Api48_auth_SentCode_auth_sentCodePreview *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneRegistered data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.phoneCodeHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.phoneCodeTest data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.sentCodePreview phone_registered:%@ phone_code_hash:%d phone_code_test:%d)", self.phoneRegistered, (int)[self.phoneCodeHash length], (int)[self.phoneCodeTest length]]; } @end @implementation Api48_auth_SentCode_auth_sentPassPhrase - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1a1e1fae serializeBlock:^bool (Api48_auth_SentCode_auth_sentPassPhrase *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneRegistered data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.sentPassPhrase phone_registered:%@)", self.phoneRegistered]; } @end @implementation Api48_auth_SentCode_auth_sentCode - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xefed51d9 serializeBlock:^bool (Api48_auth_SentCode_auth_sentCode *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneRegistered data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.phoneCodeHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sendCallTimeout data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.isPassword data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.sentCode phone_registered:%@ phone_code_hash:%d send_call_timeout:%@ is_password:%@)", self.phoneRegistered, (int)[self.phoneCodeHash length], self.sendCallTimeout, self.isPassword]; } @end @implementation Api48_auth_SentCode_auth_sentAppCode - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe325edcf serializeBlock:^bool (Api48_auth_SentCode_auth_sentAppCode *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneRegistered data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.phoneCodeHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sendCallTimeout data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.isPassword data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(auth.sentAppCode phone_registered:%@ phone_code_hash:%d send_call_timeout:%@ is_password:%@)", self.phoneRegistered, (int)[self.phoneCodeHash length], self.sendCallTimeout, self.isPassword]; } @end @interface Api48_phone_DhConfig () @property (nonatomic, strong) NSNumber * g; @property (nonatomic, strong) NSString * p; @property (nonatomic, strong) NSNumber * ringTimeout; @property (nonatomic, strong) NSNumber * expires; @end @interface Api48_phone_DhConfig_phone_dhConfig () @end @implementation Api48_phone_DhConfig + (Api48_phone_DhConfig_phone_dhConfig *)phone_dhConfigWithG:(NSNumber *)g p:(NSString *)p ringTimeout:(NSNumber *)ringTimeout expires:(NSNumber *)expires { Api48_phone_DhConfig_phone_dhConfig *_object = [[Api48_phone_DhConfig_phone_dhConfig alloc] init]; _object.g = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:g] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.p = [Api48__Serializer addSerializerToObject:[p copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.ringTimeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ringTimeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.expires = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:expires] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_phone_DhConfig_phone_dhConfig - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8a5d855e serializeBlock:^bool (Api48_phone_DhConfig_phone_dhConfig *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.g data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.p data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ringTimeout data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.expires data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(phone.dhConfig g:%@ p:%d ring_timeout:%@ expires:%@)", self.g, (int)[self.p length], self.ringTimeout, self.expires]; } @end @interface Api48_InputChatPhoto () @end @interface Api48_InputChatPhoto_inputChatPhotoEmpty () @end @interface Api48_InputChatPhoto_inputChatUploadedPhoto () @property (nonatomic, strong) Api48_InputFile * file; @property (nonatomic, strong) Api48_InputPhotoCrop * crop; @end @interface Api48_InputChatPhoto_inputChatPhoto () @property (nonatomic, strong) Api48_InputPhoto * pid; @property (nonatomic, strong) Api48_InputPhotoCrop * crop; @end @implementation Api48_InputChatPhoto + (Api48_InputChatPhoto_inputChatPhotoEmpty *)inputChatPhotoEmpty { Api48_InputChatPhoto_inputChatPhotoEmpty *_object = [[Api48_InputChatPhoto_inputChatPhotoEmpty alloc] init]; return _object; } + (Api48_InputChatPhoto_inputChatUploadedPhoto *)inputChatUploadedPhotoWithFile:(Api48_InputFile *)file crop:(Api48_InputPhotoCrop *)crop { Api48_InputChatPhoto_inputChatUploadedPhoto *_object = [[Api48_InputChatPhoto_inputChatUploadedPhoto alloc] init]; _object.file = file; _object.crop = crop; return _object; } + (Api48_InputChatPhoto_inputChatPhoto *)inputChatPhotoWithPid:(Api48_InputPhoto *)pid crop:(Api48_InputPhotoCrop *)crop { Api48_InputChatPhoto_inputChatPhoto *_object = [[Api48_InputChatPhoto_inputChatPhoto alloc] init]; _object.pid = pid; _object.crop = crop; return _object; } @end @implementation Api48_InputChatPhoto_inputChatPhotoEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1ca48f57 serializeBlock:^bool (__unused Api48_InputChatPhoto_inputChatPhotoEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputChatPhotoEmpty)"]; } @end @implementation Api48_InputChatPhoto_inputChatUploadedPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x94254732 serializeBlock:^bool (Api48_InputChatPhoto_inputChatUploadedPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.file data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.crop data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputChatUploadedPhoto file:%@ crop:%@)", self.file, self.crop]; } @end @implementation Api48_InputChatPhoto_inputChatPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb2e1bf08 serializeBlock:^bool (Api48_InputChatPhoto_inputChatPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.crop data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputChatPhoto id:%@ crop:%@)", self.pid, self.crop]; } @end @interface Api48_Updates () @end @interface Api48_Updates_updatesTooLong () @end @interface Api48_Updates_updateShort () @property (nonatomic, strong) Api48_Update * update; @property (nonatomic, strong) NSNumber * date; @end @interface Api48_Updates_updatesCombined () @property (nonatomic, strong) NSArray * updates; @property (nonatomic, strong) NSArray * users; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * seqStart; @property (nonatomic, strong) NSNumber * seq; @end @interface Api48_Updates_updates () @property (nonatomic, strong) NSArray * updates; @property (nonatomic, strong) NSArray * users; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * seq; @end @interface Api48_Updates_updateShortSentMessage () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) Api48_MessageMedia * media; @property (nonatomic, strong) NSArray * entities; @end @interface Api48_Updates_updateShortMessage () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSString * message; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) Api48_MessageFwdHeader * fwdFrom; @property (nonatomic, strong) NSNumber * viaBotId; @property (nonatomic, strong) NSNumber * replyToMsgId; @property (nonatomic, strong) NSArray * entities; @end @interface Api48_Updates_updateShortChatMessage () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * fromId; @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSString * message; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * ptsCount; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) Api48_MessageFwdHeader * fwdFrom; @property (nonatomic, strong) NSNumber * viaBotId; @property (nonatomic, strong) NSNumber * replyToMsgId; @property (nonatomic, strong) NSArray * entities; @end @implementation Api48_Updates + (Api48_Updates_updatesTooLong *)updatesTooLong { Api48_Updates_updatesTooLong *_object = [[Api48_Updates_updatesTooLong alloc] init]; return _object; } + (Api48_Updates_updateShort *)updateShortWithUpdate:(Api48_Update *)update date:(NSNumber *)date { Api48_Updates_updateShort *_object = [[Api48_Updates_updateShort alloc] init]; _object.update = update; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Updates_updatesCombined *)updatesCombinedWithUpdates:(NSArray *)updates users:(NSArray *)users chats:(NSArray *)chats date:(NSNumber *)date seqStart:(NSNumber *)seqStart seq:(NSNumber *)seq { Api48_Updates_updatesCombined *_object = [[Api48_Updates_updatesCombined alloc] init]; _object.updates = ({ NSMutableArray *updates_copy = [[NSMutableArray alloc] initWithCapacity:updates.count]; for (id updates_item in updates) { [updates_copy addObject:updates_item]; } id updates_result = [Api48__Serializer addSerializerToObject:updates_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; updates_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.seqStart = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:seqStart] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.seq = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:seq] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Updates_updates *)updatesWithUpdates:(NSArray *)updates users:(NSArray *)users chats:(NSArray *)chats date:(NSNumber *)date seq:(NSNumber *)seq { Api48_Updates_updates *_object = [[Api48_Updates_updates alloc] init]; _object.updates = ({ NSMutableArray *updates_copy = [[NSMutableArray alloc] initWithCapacity:updates.count]; for (id updates_item in updates) { [updates_copy addObject:updates_item]; } id updates_result = [Api48__Serializer addSerializerToObject:updates_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; updates_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.seq = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:seq] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Updates_updateShortSentMessage *)updateShortSentMessageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount date:(NSNumber *)date media:(Api48_MessageMedia *)media entities:(NSArray *)entities { Api48_Updates_updateShortSentMessage *_object = [[Api48_Updates_updateShortSentMessage alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.media = media; _object.entities = ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}); return _object; } + (Api48_Updates_updateShortMessage *)updateShortMessageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid userId:(NSNumber *)userId message:(NSString *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount date:(NSNumber *)date fwdFrom:(Api48_MessageFwdHeader *)fwdFrom viaBotId:(NSNumber *)viaBotId replyToMsgId:(NSNumber *)replyToMsgId entities:(NSArray *)entities { Api48_Updates_updateShortMessage *_object = [[Api48_Updates_updateShortMessage alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fwdFrom = fwdFrom; _object.viaBotId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:viaBotId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.replyToMsgId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.entities = ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}); return _object; } + (Api48_Updates_updateShortChatMessage *)updateShortChatMessageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid fromId:(NSNumber *)fromId chatId:(NSNumber *)chatId message:(NSString *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount date:(NSNumber *)date fwdFrom:(Api48_MessageFwdHeader *)fwdFrom viaBotId:(NSNumber *)viaBotId replyToMsgId:(NSNumber *)replyToMsgId entities:(NSArray *)entities { Api48_Updates_updateShortChatMessage *_object = [[Api48_Updates_updateShortChatMessage alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fromId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fromId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ptsCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:ptsCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fwdFrom = fwdFrom; _object.viaBotId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:viaBotId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.replyToMsgId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.entities = ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}); return _object; } @end @implementation Api48_Updates_updatesTooLong - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe317af7e serializeBlock:^bool (__unused Api48_Updates_updatesTooLong *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updatesTooLong)"]; } @end @implementation Api48_Updates_updateShort - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x78d4dec1 serializeBlock:^bool (Api48_Updates_updateShort *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.update data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateShort update:%@ date:%@)", self.update, self.date]; } @end @implementation Api48_Updates_updatesCombined - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x725b04c3 serializeBlock:^bool (Api48_Updates_updatesCombined *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.updates data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.seqStart data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.seq data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updatesCombined updates:%@ users:%@ chats:%@ date:%@ seq_start:%@ seq:%@)", self.updates, self.users, self.chats, self.date, self.seqStart, self.seq]; } @end @implementation Api48_Updates_updates - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x74ae4240 serializeBlock:^bool (Api48_Updates_updates *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.updates data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.seq data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates updates:%@ users:%@ chats:%@ date:%@ seq:%@)", self.updates, self.users, self.chats, self.date, self.seq]; } @end @implementation Api48_Updates_updateShortSentMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x11f1331c serializeBlock:^bool (Api48_Updates_updateShortSentMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 9)) { if (![Api48__Environment serializeObject:object.media data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.entities data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateShortSentMessage flags:%@ id:%@ pts:%@ pts_count:%@ date:%@ media:%@ entities:%@)", self.flags, self.pid, self.pts, self.ptsCount, self.date, self.media, self.entities]; } @end @implementation Api48_Updates_updateShortMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x914fbf11 serializeBlock:^bool (Api48_Updates_updateShortMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.fwdFrom data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 11)) { if (![Api48__Environment serializeObject:object.viaBotId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.replyToMsgId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.entities data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateShortMessage flags:%@ id:%@ user_id:%@ message:%d pts:%@ pts_count:%@ date:%@ fwd_from:%@ via_bot_id:%@ reply_to_msg_id:%@ entities:%@)", self.flags, self.pid, self.userId, (int)[self.message length], self.pts, self.ptsCount, self.date, self.fwdFrom, self.viaBotId, self.replyToMsgId, self.entities]; } @end @implementation Api48_Updates_updateShortChatMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x16812688 serializeBlock:^bool (Api48_Updates_updateShortChatMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.fromId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ptsCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.fwdFrom data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 11)) { if (![Api48__Environment serializeObject:object.viaBotId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.replyToMsgId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.entities data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updateShortChatMessage flags:%@ id:%@ from_id:%@ chat_id:%@ message:%d pts:%@ pts_count:%@ date:%@ fwd_from:%@ via_bot_id:%@ reply_to_msg_id:%@ entities:%@)", self.flags, self.pid, self.fromId, self.chatId, (int)[self.message length], self.pts, self.ptsCount, self.date, self.fwdFrom, self.viaBotId, self.replyToMsgId, self.entities]; } @end @interface Api48_InitConnection () @property (nonatomic, strong) NSNumber * apiId; @property (nonatomic, strong) NSString * deviceModel; @property (nonatomic, strong) NSString * systemVersion; @property (nonatomic, strong) NSString * appVersion; @property (nonatomic, strong) NSString * langCode; @property (nonatomic, strong) NSObject * query; @end @interface Api48_InitConnection_pinitConnection () @end @implementation Api48_InitConnection + (Api48_InitConnection_pinitConnection *)pinitConnectionWithApiId:(NSNumber *)apiId deviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion langCode:(NSString *)langCode query:(NSObject *)query { Api48_InitConnection_pinitConnection *_object = [[Api48_InitConnection_pinitConnection alloc] init]; _object.apiId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:apiId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.deviceModel = [Api48__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.systemVersion = [Api48__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.appVersion = [Api48__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.langCode = [Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.query = query; return _object; } @end @implementation Api48_InitConnection_pinitConnection - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x69796de9 serializeBlock:^bool (Api48_InitConnection_pinitConnection *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.apiId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.deviceModel data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.systemVersion data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.appVersion data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.langCode data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.query data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(initConnection api_id:%@ device_model:%d system_version:%d app_version:%d lang_code:%d query:%@)", self.apiId, (int)[self.deviceModel length], (int)[self.systemVersion length], (int)[self.appVersion length], (int)[self.langCode length], self.query]; } @end @interface Api48_MessageMedia () @end @interface Api48_MessageMedia_messageMediaEmpty () @end @interface Api48_MessageMedia_messageMediaGeo () @property (nonatomic, strong) Api48_GeoPoint * geo; @end @interface Api48_MessageMedia_messageMediaContact () @property (nonatomic, strong) NSString * phoneNumber; @property (nonatomic, strong) NSString * firstName; @property (nonatomic, strong) NSString * lastName; @property (nonatomic, strong) NSNumber * userId; @end @interface Api48_MessageMedia_messageMediaUnsupported () @end @interface Api48_MessageMedia_messageMediaWebPage () @property (nonatomic, strong) Api48_WebPage * webpage; @end @interface Api48_MessageMedia_messageMediaPhoto () @property (nonatomic, strong) Api48_Photo * photo; @property (nonatomic, strong) NSString * caption; @end @interface Api48_MessageMedia_messageMediaVenue () @property (nonatomic, strong) Api48_GeoPoint * geo; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * address; @property (nonatomic, strong) NSString * provider; @property (nonatomic, strong) NSString * venueId; @end @interface Api48_MessageMedia_messageMediaDocument () @property (nonatomic, strong) Api48_Document * document; @property (nonatomic, strong) NSString * caption; @end @implementation Api48_MessageMedia + (Api48_MessageMedia_messageMediaEmpty *)messageMediaEmpty { Api48_MessageMedia_messageMediaEmpty *_object = [[Api48_MessageMedia_messageMediaEmpty alloc] init]; return _object; } + (Api48_MessageMedia_messageMediaGeo *)messageMediaGeoWithGeo:(Api48_GeoPoint *)geo { Api48_MessageMedia_messageMediaGeo *_object = [[Api48_MessageMedia_messageMediaGeo alloc] init]; _object.geo = geo; return _object; } + (Api48_MessageMedia_messageMediaContact *)messageMediaContactWithPhoneNumber:(NSString *)phoneNumber firstName:(NSString *)firstName lastName:(NSString *)lastName userId:(NSNumber *)userId { Api48_MessageMedia_messageMediaContact *_object = [[Api48_MessageMedia_messageMediaContact alloc] init]; _object.phoneNumber = [Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.firstName = [Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.lastName = [Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageMedia_messageMediaUnsupported *)messageMediaUnsupported { Api48_MessageMedia_messageMediaUnsupported *_object = [[Api48_MessageMedia_messageMediaUnsupported alloc] init]; return _object; } + (Api48_MessageMedia_messageMediaWebPage *)messageMediaWebPageWithWebpage:(Api48_WebPage *)webpage { Api48_MessageMedia_messageMediaWebPage *_object = [[Api48_MessageMedia_messageMediaWebPage alloc] init]; _object.webpage = webpage; return _object; } + (Api48_MessageMedia_messageMediaPhoto *)messageMediaPhotoWithPhoto:(Api48_Photo *)photo caption:(NSString *)caption { Api48_MessageMedia_messageMediaPhoto *_object = [[Api48_MessageMedia_messageMediaPhoto alloc] init]; _object.photo = photo; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_MessageMedia_messageMediaVenue *)messageMediaVenueWithGeo:(Api48_GeoPoint *)geo title:(NSString *)title address:(NSString *)address provider:(NSString *)provider venueId:(NSString *)venueId { Api48_MessageMedia_messageMediaVenue *_object = [[Api48_MessageMedia_messageMediaVenue alloc] init]; _object.geo = geo; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.address = [Api48__Serializer addSerializerToObject:[address copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.provider = [Api48__Serializer addSerializerToObject:[provider copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.venueId = [Api48__Serializer addSerializerToObject:[venueId copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_MessageMedia_messageMediaDocument *)messageMediaDocumentWithDocument:(Api48_Document *)document caption:(NSString *)caption { Api48_MessageMedia_messageMediaDocument *_object = [[Api48_MessageMedia_messageMediaDocument alloc] init]; _object.document = document; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_MessageMedia_messageMediaEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3ded6320 serializeBlock:^bool (__unused Api48_MessageMedia_messageMediaEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaEmpty)"]; } @end @implementation Api48_MessageMedia_messageMediaGeo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x56e0d474 serializeBlock:^bool (Api48_MessageMedia_messageMediaGeo *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.geo data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaGeo geo:%@)", self.geo]; } @end @implementation Api48_MessageMedia_messageMediaContact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5e7d2f39 serializeBlock:^bool (Api48_MessageMedia_messageMediaContact *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneNumber data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.firstName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.lastName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaContact phone_number:%d first_name:%d last_name:%d user_id:%@)", (int)[self.phoneNumber length], (int)[self.firstName length], (int)[self.lastName length], self.userId]; } @end @implementation Api48_MessageMedia_messageMediaUnsupported - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9f84f49e serializeBlock:^bool (__unused Api48_MessageMedia_messageMediaUnsupported *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaUnsupported)"]; } @end @implementation Api48_MessageMedia_messageMediaWebPage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa32dd600 serializeBlock:^bool (Api48_MessageMedia_messageMediaWebPage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.webpage data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaWebPage webpage:%@)", self.webpage]; } @end @implementation Api48_MessageMedia_messageMediaPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3d8ce53d serializeBlock:^bool (Api48_MessageMedia_messageMediaPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaPhoto photo:%@ caption:%d)", self.photo, (int)[self.caption length]]; } @end @implementation Api48_MessageMedia_messageMediaVenue - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7912b71f serializeBlock:^bool (Api48_MessageMedia_messageMediaVenue *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.geo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.address data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.provider data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.venueId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaVenue geo:%@ title:%d address:%d provider:%d venue_id:%d)", self.geo, (int)[self.title length], (int)[self.address length], (int)[self.provider length], (int)[self.venueId length]]; } @end @implementation Api48_MessageMedia_messageMediaDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf3e02ea8 serializeBlock:^bool (Api48_MessageMedia_messageMediaDocument *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.document data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageMediaDocument document:%@ caption:%d)", self.document, (int)[self.caption length]]; } @end @interface Api48_Null () @end @interface Api48_Null_null () @end @implementation Api48_Null + (Api48_Null_null *)null { Api48_Null_null *_object = [[Api48_Null_null alloc] init]; return _object; } @end @implementation Api48_Null_null - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x56730bcc serializeBlock:^bool (__unused Api48_Null_null *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(null)"]; } @end @interface Api48_DocumentAttribute () @end @interface Api48_DocumentAttribute_documentAttributeImageSize () @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @end @interface Api48_DocumentAttribute_documentAttributeAnimated () @end @interface Api48_DocumentAttribute_documentAttributeVideo () @property (nonatomic, strong) NSNumber * duration; @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @end @interface Api48_DocumentAttribute_documentAttributeFilename () @property (nonatomic, strong) NSString * fileName; @end @interface Api48_DocumentAttribute_documentAttributeSticker () @property (nonatomic, strong) NSString * alt; @property (nonatomic, strong) Api48_InputStickerSet * stickerset; @end @interface Api48_DocumentAttribute_documentAttributeAudio () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * duration; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * performer; @property (nonatomic, strong) NSData * waveform; @end @implementation Api48_DocumentAttribute + (Api48_DocumentAttribute_documentAttributeImageSize *)documentAttributeImageSizeWithW:(NSNumber *)w h:(NSNumber *)h { Api48_DocumentAttribute_documentAttributeImageSize *_object = [[Api48_DocumentAttribute_documentAttributeImageSize alloc] init]; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_DocumentAttribute_documentAttributeAnimated *)documentAttributeAnimated { Api48_DocumentAttribute_documentAttributeAnimated *_object = [[Api48_DocumentAttribute_documentAttributeAnimated alloc] init]; return _object; } + (Api48_DocumentAttribute_documentAttributeVideo *)documentAttributeVideoWithDuration:(NSNumber *)duration w:(NSNumber *)w h:(NSNumber *)h { Api48_DocumentAttribute_documentAttributeVideo *_object = [[Api48_DocumentAttribute_documentAttributeVideo alloc] init]; _object.duration = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:duration] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_DocumentAttribute_documentAttributeFilename *)documentAttributeFilenameWithFileName:(NSString *)fileName { Api48_DocumentAttribute_documentAttributeFilename *_object = [[Api48_DocumentAttribute_documentAttributeFilename alloc] init]; _object.fileName = [Api48__Serializer addSerializerToObject:[fileName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_DocumentAttribute_documentAttributeSticker *)documentAttributeStickerWithAlt:(NSString *)alt stickerset:(Api48_InputStickerSet *)stickerset { Api48_DocumentAttribute_documentAttributeSticker *_object = [[Api48_DocumentAttribute_documentAttributeSticker alloc] init]; _object.alt = [Api48__Serializer addSerializerToObject:[alt copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.stickerset = stickerset; return _object; } + (Api48_DocumentAttribute_documentAttributeAudio *)documentAttributeAudioWithFlags:(NSNumber *)flags duration:(NSNumber *)duration title:(NSString *)title performer:(NSString *)performer waveform:(NSData *)waveform { Api48_DocumentAttribute_documentAttributeAudio *_object = [[Api48_DocumentAttribute_documentAttributeAudio alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.duration = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:duration] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.performer = [Api48__Serializer addSerializerToObject:[performer copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.waveform = [Api48__Serializer addSerializerToObject:[waveform copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_DocumentAttribute_documentAttributeImageSize - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6c37c15c serializeBlock:^bool (Api48_DocumentAttribute_documentAttributeImageSize *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentAttributeImageSize w:%@ h:%@)", self.w, self.h]; } @end @implementation Api48_DocumentAttribute_documentAttributeAnimated - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x11b58939 serializeBlock:^bool (__unused Api48_DocumentAttribute_documentAttributeAnimated *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentAttributeAnimated)"]; } @end @implementation Api48_DocumentAttribute_documentAttributeVideo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5910cccb serializeBlock:^bool (Api48_DocumentAttribute_documentAttributeVideo *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.duration data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentAttributeVideo duration:%@ w:%@ h:%@)", self.duration, self.w, self.h]; } @end @implementation Api48_DocumentAttribute_documentAttributeFilename - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x15590068 serializeBlock:^bool (Api48_DocumentAttribute_documentAttributeFilename *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.fileName data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentAttributeFilename file_name:%d)", (int)[self.fileName length]]; } @end @implementation Api48_DocumentAttribute_documentAttributeSticker - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3a556302 serializeBlock:^bool (Api48_DocumentAttribute_documentAttributeSticker *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.alt data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.stickerset data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentAttributeSticker alt:%d stickerset:%@)", (int)[self.alt length], self.stickerset]; } @end @implementation Api48_DocumentAttribute_documentAttributeAudio - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9852f9c6 serializeBlock:^bool (Api48_DocumentAttribute_documentAttributeAudio *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.duration data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.performer data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.waveform data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentAttributeAudio flags:%@ duration:%@ title:%d performer:%d waveform:%d)", self.flags, self.duration, (int)[self.title length], (int)[self.performer length], (int)[self.waveform length]]; } @end @interface Api48_account_Authorizations () @property (nonatomic, strong) NSArray * authorizations; @end @interface Api48_account_Authorizations_account_authorizations () @end @implementation Api48_account_Authorizations + (Api48_account_Authorizations_account_authorizations *)account_authorizationsWithAuthorizations:(NSArray *)authorizations { Api48_account_Authorizations_account_authorizations *_object = [[Api48_account_Authorizations_account_authorizations alloc] init]; _object.authorizations = ({ NSMutableArray *authorizations_copy = [[NSMutableArray alloc] initWithCapacity:authorizations.count]; for (id authorizations_item in authorizations) { [authorizations_copy addObject:authorizations_item]; } id authorizations_result = [Api48__Serializer addSerializerToObject:authorizations_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; authorizations_result;}); return _object; } @end @implementation Api48_account_Authorizations_account_authorizations - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1250abde serializeBlock:^bool (Api48_account_Authorizations_account_authorizations *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.authorizations data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.authorizations authorizations:%@)", self.authorizations]; } @end @interface Api48_ChatPhoto () @end @interface Api48_ChatPhoto_chatPhotoEmpty () @end @interface Api48_ChatPhoto_chatPhoto () @property (nonatomic, strong) Api48_FileLocation * photoSmall; @property (nonatomic, strong) Api48_FileLocation * photoBig; @end @implementation Api48_ChatPhoto + (Api48_ChatPhoto_chatPhotoEmpty *)chatPhotoEmpty { Api48_ChatPhoto_chatPhotoEmpty *_object = [[Api48_ChatPhoto_chatPhotoEmpty alloc] init]; return _object; } + (Api48_ChatPhoto_chatPhoto *)chatPhotoWithPhotoSmall:(Api48_FileLocation *)photoSmall photoBig:(Api48_FileLocation *)photoBig { Api48_ChatPhoto_chatPhoto *_object = [[Api48_ChatPhoto_chatPhoto alloc] init]; _object.photoSmall = photoSmall; _object.photoBig = photoBig; return _object; } @end @implementation Api48_ChatPhoto_chatPhotoEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x37c1011c serializeBlock:^bool (__unused Api48_ChatPhoto_chatPhotoEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatPhotoEmpty)"]; } @end @implementation Api48_ChatPhoto_chatPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6153276a serializeBlock:^bool (Api48_ChatPhoto_chatPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.photoSmall data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.photoBig data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatPhoto photo_small:%@ photo_big:%@)", self.photoSmall, self.photoBig]; } @end @interface Api48_InputStickerSet () @end @interface Api48_InputStickerSet_inputStickerSetEmpty () @end @interface Api48_InputStickerSet_inputStickerSetID () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @interface Api48_InputStickerSet_inputStickerSetShortName () @property (nonatomic, strong) NSString * shortName; @end @implementation Api48_InputStickerSet + (Api48_InputStickerSet_inputStickerSetEmpty *)inputStickerSetEmpty { Api48_InputStickerSet_inputStickerSetEmpty *_object = [[Api48_InputStickerSet_inputStickerSetEmpty alloc] init]; return _object; } + (Api48_InputStickerSet_inputStickerSetID *)inputStickerSetIDWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputStickerSet_inputStickerSetID *_object = [[Api48_InputStickerSet_inputStickerSetID alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_InputStickerSet_inputStickerSetShortName *)inputStickerSetShortNameWithShortName:(NSString *)shortName { Api48_InputStickerSet_inputStickerSetShortName *_object = [[Api48_InputStickerSet_inputStickerSetShortName alloc] init]; _object.shortName = [Api48__Serializer addSerializerToObject:[shortName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_InputStickerSet_inputStickerSetEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xffb62b95 serializeBlock:^bool (__unused Api48_InputStickerSet_inputStickerSetEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputStickerSetEmpty)"]; } @end @implementation Api48_InputStickerSet_inputStickerSetID - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9de7a269 serializeBlock:^bool (Api48_InputStickerSet_inputStickerSetID *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputStickerSetID id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @implementation Api48_InputStickerSet_inputStickerSetShortName - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x861cc8a0 serializeBlock:^bool (Api48_InputStickerSet_inputStickerSetShortName *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.shortName data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputStickerSetShortName short_name:%d)", (int)[self.shortName length]]; } @end @interface Api48_BotInfo () @end @interface Api48_BotInfo_botInfoEmpty () @end @interface Api48_BotInfo_botInfo () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * version; @property (nonatomic, strong) NSString * shareText; @property (nonatomic, strong) NSString * pdescription; @property (nonatomic, strong) NSArray * commands; @end @implementation Api48_BotInfo + (Api48_BotInfo_botInfoEmpty *)botInfoEmpty { Api48_BotInfo_botInfoEmpty *_object = [[Api48_BotInfo_botInfoEmpty alloc] init]; return _object; } + (Api48_BotInfo_botInfo *)botInfoWithUserId:(NSNumber *)userId version:(NSNumber *)version shareText:(NSString *)shareText pdescription:(NSString *)pdescription commands:(NSArray *)commands { Api48_BotInfo_botInfo *_object = [[Api48_BotInfo_botInfo alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.shareText = [Api48__Serializer addSerializerToObject:[shareText copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pdescription = [Api48__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.commands = ({ NSMutableArray *commands_copy = [[NSMutableArray alloc] initWithCapacity:commands.count]; for (id commands_item in commands) { [commands_copy addObject:commands_item]; } id commands_result = [Api48__Serializer addSerializerToObject:commands_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; commands_result;}); return _object; } @end @implementation Api48_BotInfo_botInfoEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbb2e37ce serializeBlock:^bool (__unused Api48_BotInfo_botInfoEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInfoEmpty)"]; } @end @implementation Api48_BotInfo_botInfo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9cf585d serializeBlock:^bool (Api48_BotInfo_botInfo *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.shareText data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pdescription data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.commands data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInfo user_id:%@ version:%@ share_text:%d description:%d commands:%@)", self.userId, self.version, (int)[self.shareText length], (int)[self.pdescription length], self.commands]; } @end @interface Api48_contacts_Suggested () @property (nonatomic, strong) NSArray * results; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_Suggested_contacts_suggested () @end @implementation Api48_contacts_Suggested + (Api48_contacts_Suggested_contacts_suggested *)contacts_suggestedWithResults:(NSArray *)results users:(NSArray *)users { Api48_contacts_Suggested_contacts_suggested *_object = [[Api48_contacts_Suggested_contacts_suggested alloc] init]; _object.results = ({ NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count]; for (id results_item in results) { [results_copy addObject:results_item]; } id results_result = [Api48__Serializer addSerializerToObject:results_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; results_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_Suggested_contacts_suggested - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5649dcc5 serializeBlock:^bool (Api48_contacts_Suggested_contacts_suggested *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.results data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.suggested results:%@ users:%@)", self.results, self.users]; } @end @interface Api48_updates_State () @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * qts; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * seq; @property (nonatomic, strong) NSNumber * unreadCount; @end @interface Api48_updates_State_updates_state () @end @implementation Api48_updates_State + (Api48_updates_State_updates_state *)updates_stateWithPts:(NSNumber *)pts qts:(NSNumber *)qts date:(NSNumber *)date seq:(NSNumber *)seq unreadCount:(NSNumber *)unreadCount { Api48_updates_State_updates_state *_object = [[Api48_updates_State_updates_state alloc] init]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.qts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:qts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.seq = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:seq] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_updates_State_updates_state - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa56c2a3e serializeBlock:^bool (Api48_updates_State_updates_state *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.qts data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.seq data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadCount data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.state pts:%@ qts:%@ date:%@ seq:%@ unread_count:%@)", self.pts, self.qts, self.date, self.seq, self.unreadCount]; } @end @interface Api48_FoundGif () @property (nonatomic, strong) NSString * url; @end @interface Api48_FoundGif_foundGif () @property (nonatomic, strong) NSString * thumbUrl; @property (nonatomic, strong) NSString * contentUrl; @property (nonatomic, strong) NSString * contentType; @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @end @interface Api48_FoundGif_foundGifCached () @property (nonatomic, strong) Api48_Photo * photo; @property (nonatomic, strong) Api48_Document * document; @end @implementation Api48_FoundGif + (Api48_FoundGif_foundGif *)foundGifWithUrl:(NSString *)url thumbUrl:(NSString *)thumbUrl contentUrl:(NSString *)contentUrl contentType:(NSString *)contentType w:(NSNumber *)w h:(NSNumber *)h { Api48_FoundGif_foundGif *_object = [[Api48_FoundGif_foundGif alloc] init]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.thumbUrl = [Api48__Serializer addSerializerToObject:[thumbUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.contentUrl = [Api48__Serializer addSerializerToObject:[contentUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.contentType = [Api48__Serializer addSerializerToObject:[contentType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_FoundGif_foundGifCached *)foundGifCachedWithUrl:(NSString *)url photo:(Api48_Photo *)photo document:(Api48_Document *)document { Api48_FoundGif_foundGifCached *_object = [[Api48_FoundGif_foundGifCached alloc] init]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.photo = photo; _object.document = document; return _object; } @end @implementation Api48_FoundGif_foundGif - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x162ecc1f serializeBlock:^bool (Api48_FoundGif_foundGif *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.thumbUrl data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.contentUrl data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.contentType data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(foundGif url:%d thumb_url:%d content_url:%d content_type:%d w:%@ h:%@)", (int)[self.url length], (int)[self.thumbUrl length], (int)[self.contentUrl length], (int)[self.contentType length], self.w, self.h]; } @end @implementation Api48_FoundGif_foundGifCached - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9c750409 serializeBlock:^bool (Api48_FoundGif_foundGifCached *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.document data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(foundGifCached url:%d photo:%@ document:%@)", (int)[self.url length], self.photo, self.document]; } @end @interface Api48_User () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_User_userEmpty () @end @interface Api48_User_user () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSString * firstName; @property (nonatomic, strong) NSString * lastName; @property (nonatomic, strong) NSString * username; @property (nonatomic, strong) NSString * phone; @property (nonatomic, strong) Api48_UserProfilePhoto * photo; @property (nonatomic, strong) Api48_UserStatus * status; @property (nonatomic, strong) NSNumber * botInfoVersion; @property (nonatomic, strong) NSString * restrictionReason; @property (nonatomic, strong) NSString * botInlinePlaceholder; @end @implementation Api48_User + (Api48_User_userEmpty *)userEmptyWithPid:(NSNumber *)pid { Api48_User_userEmpty *_object = [[Api48_User_userEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_User_user *)userWithFlags:(NSNumber *)flags pid:(NSNumber *)pid accessHash:(NSNumber *)accessHash firstName:(NSString *)firstName lastName:(NSString *)lastName username:(NSString *)username phone:(NSString *)phone photo:(Api48_UserProfilePhoto *)photo status:(Api48_UserStatus *)status botInfoVersion:(NSNumber *)botInfoVersion restrictionReason:(NSString *)restrictionReason botInlinePlaceholder:(NSString *)botInlinePlaceholder { Api48_User_user *_object = [[Api48_User_user alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.firstName = [Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.lastName = [Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.username = [Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.phone = [Api48__Serializer addSerializerToObject:[phone copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.photo = photo; _object.status = status; _object.botInfoVersion = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:botInfoVersion] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.restrictionReason = [Api48__Serializer addSerializerToObject:[restrictionReason copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.botInlinePlaceholder = [Api48__Serializer addSerializerToObject:[botInlinePlaceholder copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_User_userEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x200250ba serializeBlock:^bool (Api48_User_userEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userEmpty id:%@)", self.pid]; } @end @implementation Api48_User_user - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd10d979a serializeBlock:^bool (Api48_User_user *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.firstName data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.lastName data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.username data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 4)) { if (![Api48__Environment serializeObject:object.phone data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.status data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 14)) { if (![Api48__Environment serializeObject:object.botInfoVersion data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 18)) { if (![Api48__Environment serializeObject:object.restrictionReason data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 19)) { if (![Api48__Environment serializeObject:object.botInlinePlaceholder data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(user flags:%@ id:%@ access_hash:%@ first_name:%d last_name:%d username:%d phone:%d photo:%@ status:%@ bot_info_version:%@ restriction_reason:%d bot_inline_placeholder:%d)", self.flags, self.pid, self.accessHash, (int)[self.firstName length], (int)[self.lastName length], (int)[self.username length], (int)[self.phone length], self.photo, self.status, self.botInfoVersion, (int)[self.restrictionReason length], (int)[self.botInlinePlaceholder length]]; } @end @interface Api48_Message () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_Message_messageEmpty () @end @interface Api48_Message_message () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * fromId; @property (nonatomic, strong) Api48_Peer * toId; @property (nonatomic, strong) Api48_MessageFwdHeader * fwdFrom; @property (nonatomic, strong) NSNumber * viaBotId; @property (nonatomic, strong) NSNumber * replyToMsgId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSString * message; @property (nonatomic, strong) Api48_MessageMedia * media; @property (nonatomic, strong) Api48_ReplyMarkup * replyMarkup; @property (nonatomic, strong) NSArray * entities; @property (nonatomic, strong) NSNumber * views; @property (nonatomic, strong) NSNumber * editDate; @end @interface Api48_Message_messageService () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * fromId; @property (nonatomic, strong) Api48_Peer * toId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) Api48_MessageAction * action; @end @implementation Api48_Message + (Api48_Message_messageEmpty *)messageEmptyWithPid:(NSNumber *)pid { Api48_Message_messageEmpty *_object = [[Api48_Message_messageEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Message_message *)messageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid fromId:(NSNumber *)fromId toId:(Api48_Peer *)toId fwdFrom:(Api48_MessageFwdHeader *)fwdFrom viaBotId:(NSNumber *)viaBotId replyToMsgId:(NSNumber *)replyToMsgId date:(NSNumber *)date message:(NSString *)message media:(Api48_MessageMedia *)media replyMarkup:(Api48_ReplyMarkup *)replyMarkup entities:(NSArray *)entities views:(NSNumber *)views editDate:(NSNumber *)editDate { Api48_Message_message *_object = [[Api48_Message_message alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fromId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fromId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.toId = toId; _object.fwdFrom = fwdFrom; _object.viaBotId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:viaBotId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.replyToMsgId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.media = media; _object.replyMarkup = replyMarkup; _object.entities = ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}); _object.views = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:views] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.editDate = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:editDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Message_messageService *)messageServiceWithFlags:(NSNumber *)flags pid:(NSNumber *)pid fromId:(NSNumber *)fromId toId:(Api48_Peer *)toId date:(NSNumber *)date action:(Api48_MessageAction *)action { Api48_Message_messageService *_object = [[Api48_Message_messageService alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fromId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fromId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.toId = toId; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.action = action; return _object; } @end @implementation Api48_Message_messageEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x83e5de54 serializeBlock:^bool (Api48_Message_messageEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEmpty id:%@)", self.pid]; } @end @implementation Api48_Message_message - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc09be45f serializeBlock:^bool (Api48_Message_message *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 8)) { if (![Api48__Environment serializeObject:object.fromId data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.toId data:data addSignature:true]) return false; if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.fwdFrom data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 11)) { if (![Api48__Environment serializeObject:object.viaBotId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.replyToMsgId data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 9)) { if (![Api48__Environment serializeObject:object.media data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.replyMarkup data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.entities data:data addSignature:true]) return false; } if ([object.flags intValue] & (1 << 10)) { if (![Api48__Environment serializeObject:object.views data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 15)) { if (![Api48__Environment serializeObject:object.editDate data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(message flags:%@ id:%@ from_id:%@ to_id:%@ fwd_from:%@ via_bot_id:%@ reply_to_msg_id:%@ date:%@ message:%d media:%@ reply_markup:%@ entities:%@ views:%@ edit_date:%@)", self.flags, self.pid, self.fromId, self.toId, self.fwdFrom, self.viaBotId, self.replyToMsgId, self.date, (int)[self.message length], self.media, self.replyMarkup, self.entities, self.views, self.editDate]; } @end @implementation Api48_Message_messageService - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc06b9607 serializeBlock:^bool (Api48_Message_messageService *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 8)) { if (![Api48__Environment serializeObject:object.fromId data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.toId data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.action data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageService flags:%@ id:%@ from_id:%@ to_id:%@ date:%@ action:%@)", self.flags, self.pid, self.fromId, self.toId, self.date, self.action]; } @end @interface Api48_InputFileLocation () @end @interface Api48_InputFileLocation_inputFileLocation () @property (nonatomic, strong) NSNumber * volumeId; @property (nonatomic, strong) NSNumber * localId; @property (nonatomic, strong) NSNumber * secret; @end @interface Api48_InputFileLocation_inputEncryptedFileLocation () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @interface Api48_InputFileLocation_inputDocumentFileLocation () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @implementation Api48_InputFileLocation + (Api48_InputFileLocation_inputFileLocation *)inputFileLocationWithVolumeId:(NSNumber *)volumeId localId:(NSNumber *)localId secret:(NSNumber *)secret { Api48_InputFileLocation_inputFileLocation *_object = [[Api48_InputFileLocation_inputFileLocation alloc] init]; _object.volumeId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:volumeId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.localId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:localId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.secret = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:secret] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_InputFileLocation_inputEncryptedFileLocation *)inputEncryptedFileLocationWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputFileLocation_inputEncryptedFileLocation *_object = [[Api48_InputFileLocation_inputEncryptedFileLocation alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_InputFileLocation_inputDocumentFileLocation *)inputDocumentFileLocationWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputFileLocation_inputDocumentFileLocation *_object = [[Api48_InputFileLocation_inputDocumentFileLocation alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputFileLocation_inputFileLocation - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x14637196 serializeBlock:^bool (Api48_InputFileLocation_inputFileLocation *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.volumeId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.localId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.secret data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputFileLocation volume_id:%@ local_id:%@ secret:%@)", self.volumeId, self.localId, self.secret]; } @end @implementation Api48_InputFileLocation_inputEncryptedFileLocation - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf5235d55 serializeBlock:^bool (Api48_InputFileLocation_inputEncryptedFileLocation *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputEncryptedFileLocation id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @implementation Api48_InputFileLocation_inputDocumentFileLocation - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4e45abe9 serializeBlock:^bool (Api48_InputFileLocation_inputDocumentFileLocation *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputDocumentFileLocation id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @interface Api48_GeoPoint () @end @interface Api48_GeoPoint_geoPointEmpty () @end @interface Api48_GeoPoint_geoPoint () @property (nonatomic, strong) NSNumber * plong; @property (nonatomic, strong) NSNumber * lat; @end @interface Api48_GeoPoint_geoPlace () @property (nonatomic, strong) NSNumber * plong; @property (nonatomic, strong) NSNumber * lat; @property (nonatomic, strong) Api48_GeoPlaceName * name; @end @implementation Api48_GeoPoint + (Api48_GeoPoint_geoPointEmpty *)geoPointEmpty { Api48_GeoPoint_geoPointEmpty *_object = [[Api48_GeoPoint_geoPointEmpty alloc] init]; return _object; } + (Api48_GeoPoint_geoPoint *)geoPointWithPlong:(NSNumber *)plong lat:(NSNumber *)lat { Api48_GeoPoint_geoPoint *_object = [[Api48_GeoPoint_geoPoint alloc] init]; _object.plong = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:plong] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; _object.lat = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:lat] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; return _object; } + (Api48_GeoPoint_geoPlace *)geoPlaceWithPlong:(NSNumber *)plong lat:(NSNumber *)lat name:(Api48_GeoPlaceName *)name { Api48_GeoPoint_geoPlace *_object = [[Api48_GeoPoint_geoPlace alloc] init]; _object.plong = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:plong] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; _object.lat = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:lat] serializer:[[Api48_BuiltinSerializer_Double alloc] init]]; _object.name = name; return _object; } @end @implementation Api48_GeoPoint_geoPointEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1117dd5f serializeBlock:^bool (__unused Api48_GeoPoint_geoPointEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(geoPointEmpty)"]; } @end @implementation Api48_GeoPoint_geoPoint - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2049d70c serializeBlock:^bool (Api48_GeoPoint_geoPoint *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.plong data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.lat data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(geoPoint long:%@ lat:%@)", self.plong, self.lat]; } @end @implementation Api48_GeoPoint_geoPlace - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6e9e21ca serializeBlock:^bool (Api48_GeoPoint_geoPlace *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.plong data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.lat data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.name data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(geoPlace long:%@ lat:%@ name:%@)", self.plong, self.lat, self.name]; } @end @interface Api48_InputPhoneCall () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @interface Api48_InputPhoneCall_inputPhoneCall () @end @implementation Api48_InputPhoneCall + (Api48_InputPhoneCall_inputPhoneCall *)inputPhoneCallWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputPhoneCall_inputPhoneCall *_object = [[Api48_InputPhoneCall_inputPhoneCall alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputPhoneCall_inputPhoneCall - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1e36fded serializeBlock:^bool (Api48_InputPhoneCall_inputPhoneCall *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPhoneCall id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @interface Api48_ReceivedNotifyMessage () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * flags; @end @interface Api48_ReceivedNotifyMessage_receivedNotifyMessage () @end @implementation Api48_ReceivedNotifyMessage + (Api48_ReceivedNotifyMessage_receivedNotifyMessage *)receivedNotifyMessageWithPid:(NSNumber *)pid flags:(NSNumber *)flags { Api48_ReceivedNotifyMessage_receivedNotifyMessage *_object = [[Api48_ReceivedNotifyMessage_receivedNotifyMessage alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ReceivedNotifyMessage_receivedNotifyMessage - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa384b779 serializeBlock:^bool (Api48_ReceivedNotifyMessage_receivedNotifyMessage *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(receivedNotifyMessage id:%@ flags:%@)", self.pid, self.flags]; } @end @interface Api48_ChatParticipants () @property (nonatomic, strong) NSNumber * chatId; @end @interface Api48_ChatParticipants_chatParticipantsForbidden () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) Api48_ChatParticipant * selfParticipant; @end @interface Api48_ChatParticipants_chatParticipants () @property (nonatomic, strong) NSArray * participants; @property (nonatomic, strong) NSNumber * version; @end @implementation Api48_ChatParticipants + (Api48_ChatParticipants_chatParticipantsForbidden *)chatParticipantsForbiddenWithFlags:(NSNumber *)flags chatId:(NSNumber *)chatId selfParticipant:(Api48_ChatParticipant *)selfParticipant { Api48_ChatParticipants_chatParticipantsForbidden *_object = [[Api48_ChatParticipants_chatParticipantsForbidden alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.selfParticipant = selfParticipant; return _object; } + (Api48_ChatParticipants_chatParticipants *)chatParticipantsWithChatId:(NSNumber *)chatId participants:(NSArray *)participants version:(NSNumber *)version { Api48_ChatParticipants_chatParticipants *_object = [[Api48_ChatParticipants_chatParticipants alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.participants = ({ NSMutableArray *participants_copy = [[NSMutableArray alloc] initWithCapacity:participants.count]; for (id participants_item in participants) { [participants_copy addObject:participants_item]; } id participants_result = [Api48__Serializer addSerializerToObject:participants_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; participants_result;}); _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ChatParticipants_chatParticipantsForbidden - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfc900c2b serializeBlock:^bool (Api48_ChatParticipants_chatParticipantsForbidden *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.selfParticipant data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatParticipantsForbidden flags:%@ chat_id:%@ self_participant:%@)", self.flags, self.chatId, self.selfParticipant]; } @end @implementation Api48_ChatParticipants_chatParticipants - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3f460fed serializeBlock:^bool (Api48_ChatParticipants_chatParticipants *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.participants data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatParticipants chat_id:%@ participants:%@ version:%@)", self.chatId, self.participants, self.version]; } @end @interface Api48_NearestDc () @property (nonatomic, strong) NSString * country; @property (nonatomic, strong) NSNumber * thisDc; @property (nonatomic, strong) NSNumber * nearestDc; @end @interface Api48_NearestDc_nearestDc () @end @implementation Api48_NearestDc + (Api48_NearestDc_nearestDc *)nearestDcWithCountry:(NSString *)country thisDc:(NSNumber *)thisDc nearestDc:(NSNumber *)nearestDc { Api48_NearestDc_nearestDc *_object = [[Api48_NearestDc_nearestDc alloc] init]; _object.country = [Api48__Serializer addSerializerToObject:[country copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.thisDc = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:thisDc] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.nearestDc = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:nearestDc] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_NearestDc_nearestDc - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8e1a1775 serializeBlock:^bool (Api48_NearestDc_nearestDc *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.country data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.thisDc data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.nearestDc data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(nearestDc country:%d this_dc:%@ nearest_dc:%@)", (int)[self.country length], self.thisDc, self.nearestDc]; } @end @interface Api48_photos_Photos () @property (nonatomic, strong) NSArray * photos; @property (nonatomic, strong) NSArray * users; @end @interface Api48_photos_Photos_photos_photos () @end @interface Api48_photos_Photos_photos_photosSlice () @property (nonatomic, strong) NSNumber * count; @end @implementation Api48_photos_Photos + (Api48_photos_Photos_photos_photos *)photos_photosWithPhotos:(NSArray *)photos users:(NSArray *)users { Api48_photos_Photos_photos_photos *_object = [[Api48_photos_Photos_photos_photos alloc] init]; _object.photos = ({ NSMutableArray *photos_copy = [[NSMutableArray alloc] initWithCapacity:photos.count]; for (id photos_item in photos) { [photos_copy addObject:photos_item]; } id photos_result = [Api48__Serializer addSerializerToObject:photos_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; photos_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_photos_Photos_photos_photosSlice *)photos_photosSliceWithCount:(NSNumber *)count photos:(NSArray *)photos users:(NSArray *)users { Api48_photos_Photos_photos_photosSlice *_object = [[Api48_photos_Photos_photos_photosSlice alloc] init]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.photos = ({ NSMutableArray *photos_copy = [[NSMutableArray alloc] initWithCapacity:photos.count]; for (id photos_item in photos) { [photos_copy addObject:photos_item]; } id photos_result = [Api48__Serializer addSerializerToObject:photos_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; photos_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_photos_Photos_photos_photos - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8dca6aa5 serializeBlock:^bool (Api48_photos_Photos_photos_photos *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.photos data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photos.photos photos:%@ users:%@)", self.photos, self.users]; } @end @implementation Api48_photos_Photos_photos_photosSlice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x15051f54 serializeBlock:^bool (Api48_photos_Photos_photos_photosSlice *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.photos data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(photos.photosSlice count:%@ photos:%@ users:%@)", self.count, self.photos, self.users]; } @end @interface Api48_contacts_ImportedContacts () @property (nonatomic, strong) NSArray * imported; @property (nonatomic, strong) NSArray * retryContacts; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_ImportedContacts_contacts_importedContacts () @end @implementation Api48_contacts_ImportedContacts + (Api48_contacts_ImportedContacts_contacts_importedContacts *)contacts_importedContactsWithImported:(NSArray *)imported retryContacts:(NSArray *)retryContacts users:(NSArray *)users { Api48_contacts_ImportedContacts_contacts_importedContacts *_object = [[Api48_contacts_ImportedContacts_contacts_importedContacts alloc] init]; _object.imported = ({ NSMutableArray *imported_copy = [[NSMutableArray alloc] initWithCapacity:imported.count]; for (id imported_item in imported) { [imported_copy addObject:imported_item]; } id imported_result = [Api48__Serializer addSerializerToObject:imported_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; imported_result;}); _object.retryContacts = ({ NSMutableArray *retryContacts_copy = [[NSMutableArray alloc] initWithCapacity:retryContacts.count]; for (id retryContacts_item in retryContacts) { [retryContacts_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:retryContacts_item] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]]; } id retryContacts_result = [Api48__Serializer addSerializerToObject:retryContacts_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; retryContacts_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_ImportedContacts_contacts_importedContacts - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xad524315 serializeBlock:^bool (Api48_contacts_ImportedContacts_contacts_importedContacts *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.imported data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.retryContacts data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.importedContacts imported:%@ retry_contacts:%@ users:%@)", self.imported, self.retryContacts, self.users]; } @end @interface Api48_Bool () @end @interface Api48_Bool_boolFalse () @end @interface Api48_Bool_boolTrue () @end @implementation Api48_Bool + (Api48_Bool_boolFalse *)boolFalse { Api48_Bool_boolFalse *_object = [[Api48_Bool_boolFalse alloc] init]; return _object; } + (Api48_Bool_boolTrue *)boolTrue { Api48_Bool_boolTrue *_object = [[Api48_Bool_boolTrue alloc] init]; return _object; } @end @implementation Api48_Bool_boolFalse - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbc799737 serializeBlock:^bool (__unused Api48_Bool_boolFalse *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(boolFalse)"]; } @end @implementation Api48_Bool_boolTrue - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x997275b5 serializeBlock:^bool (__unused Api48_Bool_boolTrue *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(boolTrue)"]; } @end @interface Api48_MessageFwdHeader () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * fromId; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * channelId; @property (nonatomic, strong) NSNumber * channelPost; @end @interface Api48_MessageFwdHeader_messageFwdHeader () @end @implementation Api48_MessageFwdHeader + (Api48_MessageFwdHeader_messageFwdHeader *)messageFwdHeaderWithFlags:(NSNumber *)flags fromId:(NSNumber *)fromId date:(NSNumber *)date channelId:(NSNumber *)channelId channelPost:(NSNumber *)channelPost { Api48_MessageFwdHeader_messageFwdHeader *_object = [[Api48_MessageFwdHeader_messageFwdHeader alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.fromId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fromId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.channelPost = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelPost] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_MessageFwdHeader_messageFwdHeader - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc786ddcb serializeBlock:^bool (Api48_MessageFwdHeader_messageFwdHeader *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:object.fromId data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.channelPost data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageFwdHeader flags:%@ from_id:%@ date:%@ channel_id:%@ channel_post:%@)", self.flags, self.fromId, self.date, self.channelId, self.channelPost]; } @end @interface Api48_help_Support () @property (nonatomic, strong) NSString * phoneNumber; @property (nonatomic, strong) Api48_User * user; @end @interface Api48_help_Support_help_support () @end @implementation Api48_help_Support + (Api48_help_Support_help_support *)help_supportWithPhoneNumber:(NSString *)phoneNumber user:(Api48_User *)user { Api48_help_Support_help_support *_object = [[Api48_help_Support_help_support alloc] init]; _object.phoneNumber = [Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.user = user; return _object; } @end @implementation Api48_help_Support_help_support - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x17c6b5f6 serializeBlock:^bool (Api48_help_Support_help_support *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneNumber data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.user data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.support phone_number:%d user:%@)", (int)[self.phoneNumber length], self.user]; } @end @interface Api48_ChatLocated () @property (nonatomic, strong) NSNumber * chatId; @property (nonatomic, strong) NSNumber * distance; @end @interface Api48_ChatLocated_chatLocated () @end @implementation Api48_ChatLocated + (Api48_ChatLocated_chatLocated *)chatLocatedWithChatId:(NSNumber *)chatId distance:(NSNumber *)distance { Api48_ChatLocated_chatLocated *_object = [[Api48_ChatLocated_chatLocated alloc] init]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.distance = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:distance] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ChatLocated_chatLocated - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3631cf4c serializeBlock:^bool (Api48_ChatLocated_chatLocated *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.distance data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatLocated chat_id:%@ distance:%@)", self.chatId, self.distance]; } @end @interface Api48_MessagesFilter () @end @interface Api48_MessagesFilter_inputMessagesFilterEmpty () @end @interface Api48_MessagesFilter_inputMessagesFilterPhotos () @end @interface Api48_MessagesFilter_inputMessagesFilterVideo () @end @interface Api48_MessagesFilter_inputMessagesFilterPhotoVideo () @end @interface Api48_MessagesFilter_inputMessagesFilterDocument () @end @interface Api48_MessagesFilter_inputMessagesFilterPhotoVideoDocuments () @end @interface Api48_MessagesFilter_inputMessagesFilterVoice () @end @interface Api48_MessagesFilter_inputMessagesFilterMusic () @end @implementation Api48_MessagesFilter + (Api48_MessagesFilter_inputMessagesFilterEmpty *)inputMessagesFilterEmpty { Api48_MessagesFilter_inputMessagesFilterEmpty *_object = [[Api48_MessagesFilter_inputMessagesFilterEmpty alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterPhotos *)inputMessagesFilterPhotos { Api48_MessagesFilter_inputMessagesFilterPhotos *_object = [[Api48_MessagesFilter_inputMessagesFilterPhotos alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterVideo *)inputMessagesFilterVideo { Api48_MessagesFilter_inputMessagesFilterVideo *_object = [[Api48_MessagesFilter_inputMessagesFilterVideo alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterPhotoVideo *)inputMessagesFilterPhotoVideo { Api48_MessagesFilter_inputMessagesFilterPhotoVideo *_object = [[Api48_MessagesFilter_inputMessagesFilterPhotoVideo alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterDocument *)inputMessagesFilterDocument { Api48_MessagesFilter_inputMessagesFilterDocument *_object = [[Api48_MessagesFilter_inputMessagesFilterDocument alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterPhotoVideoDocuments *)inputMessagesFilterPhotoVideoDocuments { Api48_MessagesFilter_inputMessagesFilterPhotoVideoDocuments *_object = [[Api48_MessagesFilter_inputMessagesFilterPhotoVideoDocuments alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterVoice *)inputMessagesFilterVoice { Api48_MessagesFilter_inputMessagesFilterVoice *_object = [[Api48_MessagesFilter_inputMessagesFilterVoice alloc] init]; return _object; } + (Api48_MessagesFilter_inputMessagesFilterMusic *)inputMessagesFilterMusic { Api48_MessagesFilter_inputMessagesFilterMusic *_object = [[Api48_MessagesFilter_inputMessagesFilterMusic alloc] init]; return _object; } @end @implementation Api48_MessagesFilter_inputMessagesFilterEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x57e2f66c serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterEmpty)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterPhotos - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9609a51c serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterPhotos *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterPhotos)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterVideo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9fc00e65 serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterVideo *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterVideo)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterPhotoVideo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x56e9f0e4 serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterPhotoVideo *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterPhotoVideo)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterDocument - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9eddf188 serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterDocument *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterDocument)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterPhotoVideoDocuments - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd95e73bb serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterPhotoVideoDocuments *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterPhotoVideoDocuments)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterVoice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x50f5c392 serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterVoice *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterVoice)"]; } @end @implementation Api48_MessagesFilter_inputMessagesFilterMusic - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3751b49e serializeBlock:^bool (__unused Api48_MessagesFilter_inputMessagesFilterMusic *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputMessagesFilterMusic)"]; } @end @interface Api48_messages_Dialogs () @property (nonatomic, strong) NSArray * dialogs; @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @interface Api48_messages_Dialogs_messages_dialogs () @end @interface Api48_messages_Dialogs_messages_dialogsSlice () @property (nonatomic, strong) NSNumber * count; @end @implementation Api48_messages_Dialogs + (Api48_messages_Dialogs_messages_dialogs *)messages_dialogsWithDialogs:(NSArray *)dialogs messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_Dialogs_messages_dialogs *_object = [[Api48_messages_Dialogs_messages_dialogs alloc] init]; _object.dialogs = ({ NSMutableArray *dialogs_copy = [[NSMutableArray alloc] initWithCapacity:dialogs.count]; for (id dialogs_item in dialogs) { [dialogs_copy addObject:dialogs_item]; } id dialogs_result = [Api48__Serializer addSerializerToObject:dialogs_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; dialogs_result;}); _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:messages_item]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; messages_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_messages_Dialogs_messages_dialogsSlice *)messages_dialogsSliceWithCount:(NSNumber *)count dialogs:(NSArray *)dialogs messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_Dialogs_messages_dialogsSlice *_object = [[Api48_messages_Dialogs_messages_dialogsSlice alloc] init]; _object.count = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:count] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.dialogs = ({ NSMutableArray *dialogs_copy = [[NSMutableArray alloc] initWithCapacity:dialogs.count]; for (id dialogs_item in dialogs) { [dialogs_copy addObject:dialogs_item]; } id dialogs_result = [Api48__Serializer addSerializerToObject:dialogs_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; dialogs_result;}); _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:messages_item]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; messages_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_messages_Dialogs_messages_dialogs - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x15ba6c40 serializeBlock:^bool (Api48_messages_Dialogs_messages_dialogs *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.dialogs data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.dialogs dialogs:%@ messages:%@ chats:%@ users:%@)", self.dialogs, self.messages, self.chats, self.users]; } @end @implementation Api48_messages_Dialogs_messages_dialogsSlice - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x71e094f3 serializeBlock:^bool (Api48_messages_Dialogs_messages_dialogsSlice *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.count data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.dialogs data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.dialogsSlice count:%@ dialogs:%@ messages:%@ chats:%@ users:%@)", self.count, self.dialogs, self.messages, self.chats, self.users]; } @end @interface Api48_help_InviteText () @property (nonatomic, strong) NSString * message; @end @interface Api48_help_InviteText_help_inviteText () @end @implementation Api48_help_InviteText + (Api48_help_InviteText_help_inviteText *)help_inviteTextWithMessage:(NSString *)message { Api48_help_InviteText_help_inviteText *_object = [[Api48_help_InviteText_help_inviteText alloc] init]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_help_InviteText_help_inviteText - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x18cb9f78 serializeBlock:^bool (Api48_help_InviteText_help_inviteText *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.inviteText message:%d)", (int)[self.message length]]; } @end @interface Api48_ContactSuggested () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * mutualContacts; @end @interface Api48_ContactSuggested_contactSuggested () @end @implementation Api48_ContactSuggested + (Api48_ContactSuggested_contactSuggested *)contactSuggestedWithUserId:(NSNumber *)userId mutualContacts:(NSNumber *)mutualContacts { Api48_ContactSuggested_contactSuggested *_object = [[Api48_ContactSuggested_contactSuggested alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.mutualContacts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:mutualContacts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_ContactSuggested_contactSuggested - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3de191a1 serializeBlock:^bool (Api48_ContactSuggested_contactSuggested *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.mutualContacts data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactSuggested user_id:%@ mutual_contacts:%@)", self.userId, self.mutualContacts]; } @end @interface Api48_BotInlineMessage () @end @interface Api48_BotInlineMessage_botInlineMessageMediaAuto () @property (nonatomic, strong) NSString * caption; @end @interface Api48_BotInlineMessage_botInlineMessageText () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * message; @property (nonatomic, strong) NSArray * entities; @end @implementation Api48_BotInlineMessage + (Api48_BotInlineMessage_botInlineMessageMediaAuto *)botInlineMessageMediaAutoWithCaption:(NSString *)caption { Api48_BotInlineMessage_botInlineMessageMediaAuto *_object = [[Api48_BotInlineMessage_botInlineMessageMediaAuto alloc] init]; _object.caption = [Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_BotInlineMessage_botInlineMessageText *)botInlineMessageTextWithFlags:(NSNumber *)flags message:(NSString *)message entities:(NSArray *)entities { Api48_BotInlineMessage_botInlineMessageText *_object = [[Api48_BotInlineMessage_botInlineMessageText alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.message = [Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.entities = ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}); return _object; } @end @implementation Api48_BotInlineMessage_botInlineMessageMediaAuto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfc56e87d serializeBlock:^bool (Api48_BotInlineMessage_botInlineMessageMediaAuto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.caption data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInlineMessageMediaAuto caption:%d)", (int)[self.caption length]]; } @end @implementation Api48_BotInlineMessage_botInlineMessageText - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa56197a9 serializeBlock:^bool (Api48_BotInlineMessage_botInlineMessageText *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.message data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.entities data:data addSignature:true]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(botInlineMessageText flags:%@ message:%d entities:%@)", self.flags, (int)[self.message length], self.entities]; } @end @interface Api48_InputPeerNotifySettings () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * muteUntil; @property (nonatomic, strong) NSString * sound; @end @interface Api48_InputPeerNotifySettings_inputPeerNotifySettings () @end @implementation Api48_InputPeerNotifySettings + (Api48_InputPeerNotifySettings_inputPeerNotifySettings *)inputPeerNotifySettingsWithFlags:(NSNumber *)flags muteUntil:(NSNumber *)muteUntil sound:(NSString *)sound { Api48_InputPeerNotifySettings_inputPeerNotifySettings *_object = [[Api48_InputPeerNotifySettings_inputPeerNotifySettings alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.muteUntil = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:muteUntil] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.sound = [Api48__Serializer addSerializerToObject:[sound copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_InputPeerNotifySettings_inputPeerNotifySettings - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x38935eb2 serializeBlock:^bool (Api48_InputPeerNotifySettings_inputPeerNotifySettings *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.muteUntil data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sound data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPeerNotifySettings flags:%@ mute_until:%@ sound:%d)", self.flags, self.muteUntil, (int)[self.sound length]]; } @end @interface Api48_ExportedChatInvite () @end @interface Api48_ExportedChatInvite_chatInviteEmpty () @end @interface Api48_ExportedChatInvite_chatInviteExported () @property (nonatomic, strong) NSString * link; @end @implementation Api48_ExportedChatInvite + (Api48_ExportedChatInvite_chatInviteEmpty *)chatInviteEmpty { Api48_ExportedChatInvite_chatInviteEmpty *_object = [[Api48_ExportedChatInvite_chatInviteEmpty alloc] init]; return _object; } + (Api48_ExportedChatInvite_chatInviteExported *)chatInviteExportedWithLink:(NSString *)link { Api48_ExportedChatInvite_chatInviteExported *_object = [[Api48_ExportedChatInvite_chatInviteExported alloc] init]; _object.link = [Api48__Serializer addSerializerToObject:[link copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_ExportedChatInvite_chatInviteEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x69df3769 serializeBlock:^bool (__unused Api48_ExportedChatInvite_chatInviteEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatInviteEmpty)"]; } @end @implementation Api48_ExportedChatInvite_chatInviteExported - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfc2e05bc serializeBlock:^bool (Api48_ExportedChatInvite_chatInviteExported *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.link data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(chatInviteExported link:%d)", (int)[self.link length]]; } @end @interface Api48_DcNetworkStats () @property (nonatomic, strong) NSNumber * dcId; @property (nonatomic, strong) NSString * ipAddress; @property (nonatomic, strong) NSArray * pings; @end @interface Api48_DcNetworkStats_dcPingStats () @end @implementation Api48_DcNetworkStats + (Api48_DcNetworkStats_dcPingStats *)dcPingStatsWithDcId:(NSNumber *)dcId ipAddress:(NSString *)ipAddress pings:(NSArray *)pings { Api48_DcNetworkStats_dcPingStats *_object = [[Api48_DcNetworkStats_dcPingStats alloc] init]; _object.dcId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dcId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ipAddress = [Api48__Serializer addSerializerToObject:[ipAddress copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pings = ({ NSMutableArray *pings_copy = [[NSMutableArray alloc] initWithCapacity:pings.count]; for (id pings_item in pings) { [pings_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pings_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pings_result = [Api48__Serializer addSerializerToObject:pings_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pings_result;}); return _object; } @end @implementation Api48_DcNetworkStats_dcPingStats - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3203df8c serializeBlock:^bool (Api48_DcNetworkStats_dcPingStats *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.dcId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ipAddress data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pings data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(dcPingStats dc_id:%@ ip_address:%d pings:%@)", self.dcId, (int)[self.ipAddress length], self.pings]; } @end @interface Api48_Authorization () @property (nonatomic, strong) NSNumber * phash; @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * deviceModel; @property (nonatomic, strong) NSString * platform; @property (nonatomic, strong) NSString * systemVersion; @property (nonatomic, strong) NSNumber * apiId; @property (nonatomic, strong) NSString * appName; @property (nonatomic, strong) NSString * appVersion; @property (nonatomic, strong) NSNumber * dateCreated; @property (nonatomic, strong) NSNumber * dateActive; @property (nonatomic, strong) NSString * ip; @property (nonatomic, strong) NSString * country; @property (nonatomic, strong) NSString * region; @end @interface Api48_Authorization_authorization () @end @implementation Api48_Authorization + (Api48_Authorization_authorization *)authorizationWithPhash:(NSNumber *)phash flags:(NSNumber *)flags deviceModel:(NSString *)deviceModel platform:(NSString *)platform systemVersion:(NSString *)systemVersion apiId:(NSNumber *)apiId appName:(NSString *)appName appVersion:(NSString *)appVersion dateCreated:(NSNumber *)dateCreated dateActive:(NSNumber *)dateActive ip:(NSString *)ip country:(NSString *)country region:(NSString *)region { Api48_Authorization_authorization *_object = [[Api48_Authorization_authorization alloc] init]; _object.phash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:phash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.deviceModel = [Api48__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.platform = [Api48__Serializer addSerializerToObject:[platform copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.systemVersion = [Api48__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.apiId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:apiId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.appName = [Api48__Serializer addSerializerToObject:[appName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.appVersion = [Api48__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.dateCreated = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dateCreated] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.dateActive = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dateActive] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.ip = [Api48__Serializer addSerializerToObject:[ip copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.country = [Api48__Serializer addSerializerToObject:[country copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.region = [Api48__Serializer addSerializerToObject:[region copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_Authorization_authorization - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7bf2e6f6 serializeBlock:^bool (Api48_Authorization_authorization *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.deviceModel data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.platform data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.systemVersion data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.apiId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.appName data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.appVersion data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.dateCreated data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.dateActive data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.ip data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.country data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.region data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(authorization hash:%@ flags:%@ device_model:%d platform:%d system_version:%d api_id:%@ app_name:%d app_version:%d date_created:%@ date_active:%@ ip:%d country:%d region:%d)", self.phash, self.flags, (int)[self.deviceModel length], (int)[self.platform length], (int)[self.systemVersion length], self.apiId, (int)[self.appName length], (int)[self.appVersion length], self.dateCreated, self.dateActive, (int)[self.ip length], (int)[self.country length], (int)[self.region length]]; } @end @interface Api48_messages_AllStickers () @end @interface Api48_messages_AllStickers_messages_allStickersNotModified () @end @interface Api48_messages_AllStickers_messages_allStickers () @property (nonatomic, strong) NSNumber * phash; @property (nonatomic, strong) NSArray * sets; @end @implementation Api48_messages_AllStickers + (Api48_messages_AllStickers_messages_allStickersNotModified *)messages_allStickersNotModified { Api48_messages_AllStickers_messages_allStickersNotModified *_object = [[Api48_messages_AllStickers_messages_allStickersNotModified alloc] init]; return _object; } + (Api48_messages_AllStickers_messages_allStickers *)messages_allStickersWithPhash:(NSNumber *)phash sets:(NSArray *)sets { Api48_messages_AllStickers_messages_allStickers *_object = [[Api48_messages_AllStickers_messages_allStickers alloc] init]; _object.phash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:phash] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.sets = ({ NSMutableArray *sets_copy = [[NSMutableArray alloc] initWithCapacity:sets.count]; for (id sets_item in sets) { [sets_copy addObject:sets_item]; } id sets_result = [Api48__Serializer addSerializerToObject:sets_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; sets_result;}); return _object; } @end @implementation Api48_messages_AllStickers_messages_allStickersNotModified - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xe86602c3 serializeBlock:^bool (__unused Api48_messages_AllStickers_messages_allStickersNotModified *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.allStickersNotModified)"]; } @end @implementation Api48_messages_AllStickers_messages_allStickers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xedfd405f serializeBlock:^bool (Api48_messages_AllStickers_messages_allStickers *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sets data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.allStickers hash:%@ sets:%@)", self.phash, self.sets]; } @end @interface Api48_PhoneConnection () @end @interface Api48_PhoneConnection_phoneConnectionNotReady () @end @interface Api48_PhoneConnection_phoneConnection () @property (nonatomic, strong) NSString * server; @property (nonatomic, strong) NSNumber * port; @property (nonatomic, strong) NSNumber * streamId; @end @implementation Api48_PhoneConnection + (Api48_PhoneConnection_phoneConnectionNotReady *)phoneConnectionNotReady { Api48_PhoneConnection_phoneConnectionNotReady *_object = [[Api48_PhoneConnection_phoneConnectionNotReady alloc] init]; return _object; } + (Api48_PhoneConnection_phoneConnection *)phoneConnectionWithServer:(NSString *)server port:(NSNumber *)port streamId:(NSNumber *)streamId { Api48_PhoneConnection_phoneConnection *_object = [[Api48_PhoneConnection_phoneConnection alloc] init]; _object.server = [Api48__Serializer addSerializerToObject:[server copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.port = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:port] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.streamId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:streamId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_PhoneConnection_phoneConnectionNotReady - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x26bc3c3 serializeBlock:^bool (__unused Api48_PhoneConnection_phoneConnectionNotReady *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(phoneConnectionNotReady)"]; } @end @implementation Api48_PhoneConnection_phoneConnection - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3a84026a serializeBlock:^bool (Api48_PhoneConnection_phoneConnection *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.server data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.port data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.streamId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(phoneConnection server:%d port:%@ stream_id:%@)", (int)[self.server length], self.port, self.streamId]; } @end @interface Api48_AccountDaysTTL () @property (nonatomic, strong) NSNumber * days; @end @interface Api48_AccountDaysTTL_accountDaysTTL () @end @implementation Api48_AccountDaysTTL + (Api48_AccountDaysTTL_accountDaysTTL *)accountDaysTTLWithDays:(NSNumber *)days { Api48_AccountDaysTTL_accountDaysTTL *_object = [[Api48_AccountDaysTTL_accountDaysTTL alloc] init]; _object.days = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:days] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_AccountDaysTTL_accountDaysTTL - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb8d0afdf serializeBlock:^bool (Api48_AccountDaysTTL_accountDaysTTL *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.days data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(accountDaysTTL days:%@)", self.days]; } @end @interface Api48_Scheme () @end @interface Api48_Scheme_scheme () @property (nonatomic, strong) NSString * schemeRaw; @property (nonatomic, strong) NSArray * types; @property (nonatomic, strong) NSArray * methods; @property (nonatomic, strong) NSNumber * version; @end @interface Api48_Scheme_schemeNotModified () @end @implementation Api48_Scheme + (Api48_Scheme_scheme *)schemeWithSchemeRaw:(NSString *)schemeRaw types:(NSArray *)types methods:(NSArray *)methods version:(NSNumber *)version { Api48_Scheme_scheme *_object = [[Api48_Scheme_scheme alloc] init]; _object.schemeRaw = [Api48__Serializer addSerializerToObject:[schemeRaw copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.types = ({ NSMutableArray *types_copy = [[NSMutableArray alloc] initWithCapacity:types.count]; for (id types_item in types) { [types_copy addObject:types_item]; } id types_result = [Api48__Serializer addSerializerToObject:types_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; types_result;}); _object.methods = ({ NSMutableArray *methods_copy = [[NSMutableArray alloc] initWithCapacity:methods.count]; for (id methods_item in methods) { [methods_copy addObject:methods_item]; } id methods_result = [Api48__Serializer addSerializerToObject:methods_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; methods_result;}); _object.version = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_Scheme_schemeNotModified *)schemeNotModified { Api48_Scheme_schemeNotModified *_object = [[Api48_Scheme_schemeNotModified alloc] init]; return _object; } @end @implementation Api48_Scheme_scheme - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4e6ef65e serializeBlock:^bool (Api48_Scheme_scheme *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.schemeRaw data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.types data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.methods data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.version data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(scheme scheme_raw:%d types:%@ methods:%@ version:%@)", (int)[self.schemeRaw length], self.types, self.methods, self.version]; } @end @implementation Api48_Scheme_schemeNotModified - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x263c9c58 serializeBlock:^bool (__unused Api48_Scheme_schemeNotModified *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(schemeNotModified)"]; } @end @interface Api48_account_Password () @property (nonatomic, strong) NSData * pnewSalt; @property (nonatomic, strong) NSString * emailUnconfirmedPattern; @end @interface Api48_account_Password_account_noPassword () @end @interface Api48_account_Password_account_password () @property (nonatomic, strong) NSData * currentSalt; @property (nonatomic, strong) NSString * hint; @property (nonatomic, strong) Api48_Bool * hasRecovery; @end @implementation Api48_account_Password + (Api48_account_Password_account_noPassword *)account_noPasswordWithPnewSalt:(NSData *)pnewSalt emailUnconfirmedPattern:(NSString *)emailUnconfirmedPattern { Api48_account_Password_account_noPassword *_object = [[Api48_account_Password_account_noPassword alloc] init]; _object.pnewSalt = [Api48__Serializer addSerializerToObject:[pnewSalt copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.emailUnconfirmedPattern = [Api48__Serializer addSerializerToObject:[emailUnconfirmedPattern copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_account_Password_account_password *)account_passwordWithCurrentSalt:(NSData *)currentSalt pnewSalt:(NSData *)pnewSalt hint:(NSString *)hint hasRecovery:(Api48_Bool *)hasRecovery emailUnconfirmedPattern:(NSString *)emailUnconfirmedPattern { Api48_account_Password_account_password *_object = [[Api48_account_Password_account_password alloc] init]; _object.currentSalt = [Api48__Serializer addSerializerToObject:[currentSalt copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.pnewSalt = [Api48__Serializer addSerializerToObject:[pnewSalt copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.hint = [Api48__Serializer addSerializerToObject:[hint copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.hasRecovery = hasRecovery; _object.emailUnconfirmedPattern = [Api48__Serializer addSerializerToObject:[emailUnconfirmedPattern copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_account_Password_account_noPassword - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x96dabc18 serializeBlock:^bool (Api48_account_Password_account_noPassword *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pnewSalt data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.emailUnconfirmedPattern data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.noPassword new_salt:%d email_unconfirmed_pattern:%d)", (int)[self.pnewSalt length], (int)[self.emailUnconfirmedPattern length]]; } @end @implementation Api48_account_Password_account_password - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7c18141c serializeBlock:^bool (Api48_account_Password_account_password *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.currentSalt data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pnewSalt data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.hint data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.hasRecovery data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.emailUnconfirmedPattern data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.password current_salt:%d new_salt:%d hint:%d has_recovery:%@ email_unconfirmed_pattern:%d)", (int)[self.currentSalt length], (int)[self.pnewSalt length], (int)[self.hint length], self.hasRecovery, (int)[self.emailUnconfirmedPattern length]]; } @end @interface Api48_InputBotInlineResult () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSString * pid; @property (nonatomic, strong) NSString * type; @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSString * pdescription; @property (nonatomic, strong) NSString * url; @property (nonatomic, strong) NSString * thumbUrl; @property (nonatomic, strong) NSString * contentUrl; @property (nonatomic, strong) NSString * contentType; @property (nonatomic, strong) NSNumber * w; @property (nonatomic, strong) NSNumber * h; @property (nonatomic, strong) NSNumber * duration; @property (nonatomic, strong) Api48_InputBotInlineMessage * sendMessage; @end @interface Api48_InputBotInlineResult_inputBotInlineResult () @end @implementation Api48_InputBotInlineResult + (Api48_InputBotInlineResult_inputBotInlineResult *)inputBotInlineResultWithFlags:(NSNumber *)flags pid:(NSString *)pid type:(NSString *)type title:(NSString *)title pdescription:(NSString *)pdescription url:(NSString *)url thumbUrl:(NSString *)thumbUrl contentUrl:(NSString *)contentUrl contentType:(NSString *)contentType w:(NSNumber *)w h:(NSNumber *)h duration:(NSNumber *)duration sendMessage:(Api48_InputBotInlineMessage *)sendMessage { Api48_InputBotInlineResult_inputBotInlineResult *_object = [[Api48_InputBotInlineResult_inputBotInlineResult alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pid = [Api48__Serializer addSerializerToObject:[pid copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.pdescription = [Api48__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.thumbUrl = [Api48__Serializer addSerializerToObject:[thumbUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.contentUrl = [Api48__Serializer addSerializerToObject:[contentUrl copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.contentType = [Api48__Serializer addSerializerToObject:[contentType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.w = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:w] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.h = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:h] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.duration = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:duration] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.sendMessage = sendMessage; return _object; } @end @implementation Api48_InputBotInlineResult_inputBotInlineResult - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2cbbe15a serializeBlock:^bool (Api48_InputBotInlineResult_inputBotInlineResult *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:object.pdescription data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 4)) { if (![Api48__Environment serializeObject:object.thumbUrl data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.contentUrl data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 5)) { if (![Api48__Environment serializeObject:object.contentType data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.w data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 6)) { if (![Api48__Environment serializeObject:object.h data:data addSignature:false]) return false; } if ([object.flags intValue] & (1 << 7)) { if (![Api48__Environment serializeObject:object.duration data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.sendMessage data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputBotInlineResult flags:%@ id:%d type:%d title:%d description:%d url:%d thumb_url:%d content_url:%d content_type:%d w:%@ h:%@ duration:%@ send_message:%@)", self.flags, (int)[self.pid length], (int)[self.type length], (int)[self.title length], (int)[self.pdescription length], (int)[self.url length], (int)[self.thumbUrl length], (int)[self.contentUrl length], (int)[self.contentType length], self.w, self.h, self.duration, self.sendMessage]; } @end @interface Api48_account_PrivacyRules () @property (nonatomic, strong) NSArray * rules; @property (nonatomic, strong) NSArray * users; @end @interface Api48_account_PrivacyRules_account_privacyRules () @end @implementation Api48_account_PrivacyRules + (Api48_account_PrivacyRules_account_privacyRules *)account_privacyRulesWithRules:(NSArray *)rules users:(NSArray *)users { Api48_account_PrivacyRules_account_privacyRules *_object = [[Api48_account_PrivacyRules_account_privacyRules alloc] init]; _object.rules = ({ NSMutableArray *rules_copy = [[NSMutableArray alloc] initWithCapacity:rules.count]; for (id rules_item in rules) { [rules_copy addObject:rules_item]; } id rules_result = [Api48__Serializer addSerializerToObject:rules_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; rules_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_account_PrivacyRules_account_privacyRules - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x554abb6f serializeBlock:^bool (Api48_account_PrivacyRules_account_privacyRules *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.rules data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.privacyRules rules:%@ users:%@)", self.rules, self.users]; } @end @interface Api48_messages_Message () @end @interface Api48_messages_Message_messages_messageEmpty () @end @interface Api48_messages_Message_messages_message () @property (nonatomic, strong) Api48_Message * message; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @implementation Api48_messages_Message + (Api48_messages_Message_messages_messageEmpty *)messages_messageEmpty { Api48_messages_Message_messages_messageEmpty *_object = [[Api48_messages_Message_messages_messageEmpty alloc] init]; return _object; } + (Api48_messages_Message_messages_message *)messages_messageWithMessage:(Api48_Message *)message chats:(NSArray *)chats users:(NSArray *)users { Api48_messages_Message_messages_message *_object = [[Api48_messages_Message_messages_message alloc] init]; _object.message = message; _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_messages_Message_messages_messageEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3f4e0648 serializeBlock:^bool (__unused Api48_messages_Message_messages_messageEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.messageEmpty)"]; } @end @implementation Api48_messages_Message_messages_message - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xff90c417 serializeBlock:^bool (Api48_messages_Message_messages_message *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.message data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messages.message message:%@ chats:%@ users:%@)", self.message, self.chats, self.users]; } @end @interface Api48_PrivacyRule () @end @interface Api48_PrivacyRule_privacyValueAllowContacts () @end @interface Api48_PrivacyRule_privacyValueAllowAll () @end @interface Api48_PrivacyRule_privacyValueAllowUsers () @property (nonatomic, strong) NSArray * users; @end @interface Api48_PrivacyRule_privacyValueDisallowContacts () @end @interface Api48_PrivacyRule_privacyValueDisallowAll () @end @interface Api48_PrivacyRule_privacyValueDisallowUsers () @property (nonatomic, strong) NSArray * users; @end @implementation Api48_PrivacyRule + (Api48_PrivacyRule_privacyValueAllowContacts *)privacyValueAllowContacts { Api48_PrivacyRule_privacyValueAllowContacts *_object = [[Api48_PrivacyRule_privacyValueAllowContacts alloc] init]; return _object; } + (Api48_PrivacyRule_privacyValueAllowAll *)privacyValueAllowAll { Api48_PrivacyRule_privacyValueAllowAll *_object = [[Api48_PrivacyRule_privacyValueAllowAll alloc] init]; return _object; } + (Api48_PrivacyRule_privacyValueAllowUsers *)privacyValueAllowUsersWithUsers:(NSArray *)users { Api48_PrivacyRule_privacyValueAllowUsers *_object = [[Api48_PrivacyRule_privacyValueAllowUsers alloc] init]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:users_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_PrivacyRule_privacyValueDisallowContacts *)privacyValueDisallowContacts { Api48_PrivacyRule_privacyValueDisallowContacts *_object = [[Api48_PrivacyRule_privacyValueDisallowContacts alloc] init]; return _object; } + (Api48_PrivacyRule_privacyValueDisallowAll *)privacyValueDisallowAll { Api48_PrivacyRule_privacyValueDisallowAll *_object = [[Api48_PrivacyRule_privacyValueDisallowAll alloc] init]; return _object; } + (Api48_PrivacyRule_privacyValueDisallowUsers *)privacyValueDisallowUsersWithUsers:(NSArray *)users { Api48_PrivacyRule_privacyValueDisallowUsers *_object = [[Api48_PrivacyRule_privacyValueDisallowUsers alloc] init]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:users_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_PrivacyRule_privacyValueAllowContacts - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfffe1bac serializeBlock:^bool (__unused Api48_PrivacyRule_privacyValueAllowContacts *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyValueAllowContacts)"]; } @end @implementation Api48_PrivacyRule_privacyValueAllowAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x65427b82 serializeBlock:^bool (__unused Api48_PrivacyRule_privacyValueAllowAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyValueAllowAll)"]; } @end @implementation Api48_PrivacyRule_privacyValueAllowUsers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4d5bbe0c serializeBlock:^bool (Api48_PrivacyRule_privacyValueAllowUsers *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyValueAllowUsers users:%@)", self.users]; } @end @implementation Api48_PrivacyRule_privacyValueDisallowContacts - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf888fa1a serializeBlock:^bool (__unused Api48_PrivacyRule_privacyValueDisallowContacts *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyValueDisallowContacts)"]; } @end @implementation Api48_PrivacyRule_privacyValueDisallowAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x8b73e763 serializeBlock:^bool (__unused Api48_PrivacyRule_privacyValueDisallowAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyValueDisallowAll)"]; } @end @implementation Api48_PrivacyRule_privacyValueDisallowUsers - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc7f49b7 serializeBlock:^bool (Api48_PrivacyRule_privacyValueDisallowUsers *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(privacyValueDisallowUsers users:%@)", self.users]; } @end @interface Api48_account_SentChangePhoneCode () @property (nonatomic, strong) NSString * phoneCodeHash; @property (nonatomic, strong) NSNumber * sendCallTimeout; @end @interface Api48_account_SentChangePhoneCode_account_sentChangePhoneCode () @end @implementation Api48_account_SentChangePhoneCode + (Api48_account_SentChangePhoneCode_account_sentChangePhoneCode *)account_sentChangePhoneCodeWithPhoneCodeHash:(NSString *)phoneCodeHash sendCallTimeout:(NSNumber *)sendCallTimeout { Api48_account_SentChangePhoneCode_account_sentChangePhoneCode *_object = [[Api48_account_SentChangePhoneCode_account_sentChangePhoneCode alloc] init]; _object.phoneCodeHash = [Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.sendCallTimeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:sendCallTimeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_account_SentChangePhoneCode_account_sentChangePhoneCode - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa4f58c4c serializeBlock:^bool (Api48_account_SentChangePhoneCode_account_sentChangePhoneCode *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.phoneCodeHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sendCallTimeout data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(account.sentChangePhoneCode phone_code_hash:%d send_call_timeout:%@)", (int)[self.phoneCodeHash length], self.sendCallTimeout]; } @end @interface Api48_MessageAction () @end @interface Api48_MessageAction_messageActionEmpty () @end @interface Api48_MessageAction_messageActionChatCreate () @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSArray * users; @end @interface Api48_MessageAction_messageActionChatEditTitle () @property (nonatomic, strong) NSString * title; @end @interface Api48_MessageAction_messageActionChatEditPhoto () @property (nonatomic, strong) Api48_Photo * photo; @end @interface Api48_MessageAction_messageActionChatDeletePhoto () @end @interface Api48_MessageAction_messageActionChatDeleteUser () @property (nonatomic, strong) NSNumber * userId; @end @interface Api48_MessageAction_messageActionSentRequest () @property (nonatomic, strong) Api48_Bool * hasPhone; @end @interface Api48_MessageAction_messageActionAcceptRequest () @end @interface Api48_MessageAction_messageActionChatJoinedByLink () @property (nonatomic, strong) NSNumber * inviterId; @end @interface Api48_MessageAction_messageActionChannelCreate () @property (nonatomic, strong) NSString * title; @end @interface Api48_MessageAction_messageActionChatMigrateTo () @property (nonatomic, strong) NSNumber * channelId; @end @interface Api48_MessageAction_messageActionChannelMigrateFrom () @property (nonatomic, strong) NSString * title; @property (nonatomic, strong) NSNumber * chatId; @end @interface Api48_MessageAction_messageActionChatAddUser () @property (nonatomic, strong) NSArray * users; @end @implementation Api48_MessageAction + (Api48_MessageAction_messageActionEmpty *)messageActionEmpty { Api48_MessageAction_messageActionEmpty *_object = [[Api48_MessageAction_messageActionEmpty alloc] init]; return _object; } + (Api48_MessageAction_messageActionChatCreate *)messageActionChatCreateWithTitle:(NSString *)title users:(NSArray *)users { Api48_MessageAction_messageActionChatCreate *_object = [[Api48_MessageAction_messageActionChatCreate alloc] init]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:users_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_MessageAction_messageActionChatEditTitle *)messageActionChatEditTitleWithTitle:(NSString *)title { Api48_MessageAction_messageActionChatEditTitle *_object = [[Api48_MessageAction_messageActionChatEditTitle alloc] init]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_MessageAction_messageActionChatEditPhoto *)messageActionChatEditPhotoWithPhoto:(Api48_Photo *)photo { Api48_MessageAction_messageActionChatEditPhoto *_object = [[Api48_MessageAction_messageActionChatEditPhoto alloc] init]; _object.photo = photo; return _object; } + (Api48_MessageAction_messageActionChatDeletePhoto *)messageActionChatDeletePhoto { Api48_MessageAction_messageActionChatDeletePhoto *_object = [[Api48_MessageAction_messageActionChatDeletePhoto alloc] init]; return _object; } + (Api48_MessageAction_messageActionChatDeleteUser *)messageActionChatDeleteUserWithUserId:(NSNumber *)userId { Api48_MessageAction_messageActionChatDeleteUser *_object = [[Api48_MessageAction_messageActionChatDeleteUser alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageAction_messageActionSentRequest *)messageActionSentRequestWithHasPhone:(Api48_Bool *)hasPhone { Api48_MessageAction_messageActionSentRequest *_object = [[Api48_MessageAction_messageActionSentRequest alloc] init]; _object.hasPhone = hasPhone; return _object; } + (Api48_MessageAction_messageActionAcceptRequest *)messageActionAcceptRequest { Api48_MessageAction_messageActionAcceptRequest *_object = [[Api48_MessageAction_messageActionAcceptRequest alloc] init]; return _object; } + (Api48_MessageAction_messageActionChatJoinedByLink *)messageActionChatJoinedByLinkWithInviterId:(NSNumber *)inviterId { Api48_MessageAction_messageActionChatJoinedByLink *_object = [[Api48_MessageAction_messageActionChatJoinedByLink alloc] init]; _object.inviterId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:inviterId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageAction_messageActionChannelCreate *)messageActionChannelCreateWithTitle:(NSString *)title { Api48_MessageAction_messageActionChannelCreate *_object = [[Api48_MessageAction_messageActionChannelCreate alloc] init]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_MessageAction_messageActionChatMigrateTo *)messageActionChatMigrateToWithChannelId:(NSNumber *)channelId { Api48_MessageAction_messageActionChatMigrateTo *_object = [[Api48_MessageAction_messageActionChatMigrateTo alloc] init]; _object.channelId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:channelId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageAction_messageActionChannelMigrateFrom *)messageActionChannelMigrateFromWithTitle:(NSString *)title chatId:(NSNumber *)chatId { Api48_MessageAction_messageActionChannelMigrateFrom *_object = [[Api48_MessageAction_messageActionChannelMigrateFrom alloc] init]; _object.title = [Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.chatId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageAction_messageActionChatAddUser *)messageActionChatAddUserWithUsers:(NSArray *)users { Api48_MessageAction_messageActionChatAddUser *_object = [[Api48_MessageAction_messageActionChatAddUser alloc] init]; _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:users_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_MessageAction_messageActionEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb6aef7b0 serializeBlock:^bool (__unused Api48_MessageAction_messageActionEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionEmpty)"]; } @end @implementation Api48_MessageAction_messageActionChatCreate - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xa6638b9a serializeBlock:^bool (Api48_MessageAction_messageActionChatCreate *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatCreate title:%d users:%@)", (int)[self.title length], self.users]; } @end @implementation Api48_MessageAction_messageActionChatEditTitle - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb5a1ce5a serializeBlock:^bool (Api48_MessageAction_messageActionChatEditTitle *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatEditTitle title:%d)", (int)[self.title length]]; } @end @implementation Api48_MessageAction_messageActionChatEditPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7fcb13a8 serializeBlock:^bool (Api48_MessageAction_messageActionChatEditPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.photo data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatEditPhoto photo:%@)", self.photo]; } @end @implementation Api48_MessageAction_messageActionChatDeletePhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x95e3fbef serializeBlock:^bool (__unused Api48_MessageAction_messageActionChatDeletePhoto *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatDeletePhoto)"]; } @end @implementation Api48_MessageAction_messageActionChatDeleteUser - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb2ae9b0c serializeBlock:^bool (Api48_MessageAction_messageActionChatDeleteUser *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatDeleteUser user_id:%@)", self.userId]; } @end @implementation Api48_MessageAction_messageActionSentRequest - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfc479b0f serializeBlock:^bool (Api48_MessageAction_messageActionSentRequest *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.hasPhone data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionSentRequest has_phone:%@)", self.hasPhone]; } @end @implementation Api48_MessageAction_messageActionAcceptRequest - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x7f07d76c serializeBlock:^bool (__unused Api48_MessageAction_messageActionAcceptRequest *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionAcceptRequest)"]; } @end @implementation Api48_MessageAction_messageActionChatJoinedByLink - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf89cf5e8 serializeBlock:^bool (Api48_MessageAction_messageActionChatJoinedByLink *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.inviterId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatJoinedByLink inviter_id:%@)", self.inviterId]; } @end @implementation Api48_MessageAction_messageActionChannelCreate - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x95d2ac92 serializeBlock:^bool (Api48_MessageAction_messageActionChannelCreate *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChannelCreate title:%d)", (int)[self.title length]]; } @end @implementation Api48_MessageAction_messageActionChatMigrateTo - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x51bdb021 serializeBlock:^bool (Api48_MessageAction_messageActionChatMigrateTo *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.channelId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatMigrateTo channel_id:%@)", self.channelId]; } @end @implementation Api48_MessageAction_messageActionChannelMigrateFrom - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xb055eaee serializeBlock:^bool (Api48_MessageAction_messageActionChannelMigrateFrom *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.title data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.chatId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChannelMigrateFrom title:%d chat_id:%@)", (int)[self.title length], self.chatId]; } @end @implementation Api48_MessageAction_messageActionChatAddUser - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x488a7337 serializeBlock:^bool (Api48_MessageAction_messageActionChatAddUser *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageActionChatAddUser users:%@)", self.users]; } @end @interface Api48_PhoneCall () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_PhoneCall_phoneCallEmpty () @end @interface Api48_PhoneCall_phoneCall () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * calleeId; @end @implementation Api48_PhoneCall + (Api48_PhoneCall_phoneCallEmpty *)phoneCallEmptyWithPid:(NSNumber *)pid { Api48_PhoneCall_phoneCallEmpty *_object = [[Api48_PhoneCall_phoneCallEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_PhoneCall_phoneCall *)phoneCallWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date userId:(NSNumber *)userId calleeId:(NSNumber *)calleeId { Api48_PhoneCall_phoneCall *_object = [[Api48_PhoneCall_phoneCall alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.calleeId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:calleeId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } @end @implementation Api48_PhoneCall_phoneCallEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5366c915 serializeBlock:^bool (Api48_PhoneCall_phoneCallEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(phoneCallEmpty id:%@)", self.pid]; } @end @implementation Api48_PhoneCall_phoneCall - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xec7bbe3 serializeBlock:^bool (Api48_PhoneCall_phoneCall *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.calleeId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(phoneCall id:%@ access_hash:%@ date:%@ user_id:%@ callee_id:%@)", self.pid, self.accessHash, self.date, self.userId, self.calleeId]; } @end @interface Api48_PeerNotifyEvents () @end @interface Api48_PeerNotifyEvents_peerNotifyEventsEmpty () @end @interface Api48_PeerNotifyEvents_peerNotifyEventsAll () @end @implementation Api48_PeerNotifyEvents + (Api48_PeerNotifyEvents_peerNotifyEventsEmpty *)peerNotifyEventsEmpty { Api48_PeerNotifyEvents_peerNotifyEventsEmpty *_object = [[Api48_PeerNotifyEvents_peerNotifyEventsEmpty alloc] init]; return _object; } + (Api48_PeerNotifyEvents_peerNotifyEventsAll *)peerNotifyEventsAll { Api48_PeerNotifyEvents_peerNotifyEventsAll *_object = [[Api48_PeerNotifyEvents_peerNotifyEventsAll alloc] init]; return _object; } @end @implementation Api48_PeerNotifyEvents_peerNotifyEventsEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xadd53cb3 serializeBlock:^bool (__unused Api48_PeerNotifyEvents_peerNotifyEventsEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerNotifyEventsEmpty)"]; } @end @implementation Api48_PeerNotifyEvents_peerNotifyEventsAll - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6d1ded88 serializeBlock:^bool (__unused Api48_PeerNotifyEvents_peerNotifyEventsAll *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerNotifyEventsAll)"]; } @end @interface Api48_ContactLink () @end @interface Api48_ContactLink_contactLinkUnknown () @end @interface Api48_ContactLink_contactLinkNone () @end @interface Api48_ContactLink_contactLinkHasPhone () @end @interface Api48_ContactLink_contactLinkContact () @end @implementation Api48_ContactLink + (Api48_ContactLink_contactLinkUnknown *)contactLinkUnknown { Api48_ContactLink_contactLinkUnknown *_object = [[Api48_ContactLink_contactLinkUnknown alloc] init]; return _object; } + (Api48_ContactLink_contactLinkNone *)contactLinkNone { Api48_ContactLink_contactLinkNone *_object = [[Api48_ContactLink_contactLinkNone alloc] init]; return _object; } + (Api48_ContactLink_contactLinkHasPhone *)contactLinkHasPhone { Api48_ContactLink_contactLinkHasPhone *_object = [[Api48_ContactLink_contactLinkHasPhone alloc] init]; return _object; } + (Api48_ContactLink_contactLinkContact *)contactLinkContact { Api48_ContactLink_contactLinkContact *_object = [[Api48_ContactLink_contactLinkContact alloc] init]; return _object; } @end @implementation Api48_ContactLink_contactLinkUnknown - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5f4f9247 serializeBlock:^bool (__unused Api48_ContactLink_contactLinkUnknown *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactLinkUnknown)"]; } @end @implementation Api48_ContactLink_contactLinkNone - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfeedd3ad serializeBlock:^bool (__unused Api48_ContactLink_contactLinkNone *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactLinkNone)"]; } @end @implementation Api48_ContactLink_contactLinkHasPhone - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x268f3f59 serializeBlock:^bool (__unused Api48_ContactLink_contactLinkHasPhone *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactLinkHasPhone)"]; } @end @implementation Api48_ContactLink_contactLinkContact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd502c2d0 serializeBlock:^bool (__unused Api48_ContactLink_contactLinkContact *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contactLinkContact)"]; } @end @interface Api48_help_AppPrefs () @property (nonatomic, strong) NSData * bytes; @end @interface Api48_help_AppPrefs_help_appPrefs () @end @implementation Api48_help_AppPrefs + (Api48_help_AppPrefs_help_appPrefs *)help_appPrefsWithBytes:(NSData *)bytes { Api48_help_AppPrefs_help_appPrefs *_object = [[Api48_help_AppPrefs_help_appPrefs alloc] init]; _object.bytes = [Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } @end @implementation Api48_help_AppPrefs_help_appPrefs - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x424f8614 serializeBlock:^bool (Api48_help_AppPrefs_help_appPrefs *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.bytes data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(help.appPrefs bytes:%d)", (int)[self.bytes length]]; } @end @interface Api48_contacts_Found () @property (nonatomic, strong) NSArray * results; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @interface Api48_contacts_Found_contacts_found () @end @implementation Api48_contacts_Found + (Api48_contacts_Found_contacts_found *)contacts_foundWithResults:(NSArray *)results chats:(NSArray *)chats users:(NSArray *)users { Api48_contacts_Found_contacts_found *_object = [[Api48_contacts_Found_contacts_found alloc] init]; _object.results = ({ NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count]; for (id results_item in results) { [results_copy addObject:results_item]; } id results_result = [Api48__Serializer addSerializerToObject:results_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; results_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_contacts_Found_contacts_found - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1aa1f784 serializeBlock:^bool (Api48_contacts_Found_contacts_found *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.results data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(contacts.found results:%@ chats:%@ users:%@)", self.results, self.chats, self.users]; } @end @interface Api48_PeerNotifySettings () @end @interface Api48_PeerNotifySettings_peerNotifySettingsEmpty () @end @interface Api48_PeerNotifySettings_peerNotifySettings () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * muteUntil; @property (nonatomic, strong) NSString * sound; @end @implementation Api48_PeerNotifySettings + (Api48_PeerNotifySettings_peerNotifySettingsEmpty *)peerNotifySettingsEmpty { Api48_PeerNotifySettings_peerNotifySettingsEmpty *_object = [[Api48_PeerNotifySettings_peerNotifySettingsEmpty alloc] init]; return _object; } + (Api48_PeerNotifySettings_peerNotifySettings *)peerNotifySettingsWithFlags:(NSNumber *)flags muteUntil:(NSNumber *)muteUntil sound:(NSString *)sound { Api48_PeerNotifySettings_peerNotifySettings *_object = [[Api48_PeerNotifySettings_peerNotifySettings alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.muteUntil = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:muteUntil] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.sound = [Api48__Serializer addSerializerToObject:[sound copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_PeerNotifySettings_peerNotifySettingsEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x70a68512 serializeBlock:^bool (__unused Api48_PeerNotifySettings_peerNotifySettingsEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerNotifySettingsEmpty)"]; } @end @implementation Api48_PeerNotifySettings_peerNotifySettings - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x9acda4c0 serializeBlock:^bool (Api48_PeerNotifySettings_peerNotifySettings *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.muteUntil data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.sound data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(peerNotifySettings flags:%@ mute_until:%@ sound:%d)", self.flags, self.muteUntil, (int)[self.sound length]]; } @end @interface Api48_SchemeParam () @property (nonatomic, strong) NSString * name; @property (nonatomic, strong) NSString * type; @end @interface Api48_SchemeParam_schemeParam () @end @implementation Api48_SchemeParam + (Api48_SchemeParam_schemeParam *)schemeParamWithName:(NSString *)name type:(NSString *)type { Api48_SchemeParam_schemeParam *_object = [[Api48_SchemeParam_schemeParam alloc] init]; _object.name = [Api48__Serializer addSerializerToObject:[name copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.type = [Api48__Serializer addSerializerToObject:[type copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_SchemeParam_schemeParam - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x21b59bef serializeBlock:^bool (Api48_SchemeParam_schemeParam *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.name data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.type data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(schemeParam name:%d type:%d)", (int)[self.name length], (int)[self.type length]]; } @end @interface Api48_StickerPack () @property (nonatomic, strong) NSString * emoticon; @property (nonatomic, strong) NSArray * documents; @end @interface Api48_StickerPack_stickerPack () @end @implementation Api48_StickerPack + (Api48_StickerPack_stickerPack *)stickerPackWithEmoticon:(NSString *)emoticon documents:(NSArray *)documents { Api48_StickerPack_stickerPack *_object = [[Api48_StickerPack_stickerPack alloc] init]; _object.emoticon = [Api48__Serializer addSerializerToObject:[emoticon copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.documents = ({ NSMutableArray *documents_copy = [[NSMutableArray alloc] initWithCapacity:documents.count]; for (id documents_item in documents) { [documents_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:documents_item] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]]; } id documents_result = [Api48__Serializer addSerializerToObject:documents_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; documents_result;}); return _object; } @end @implementation Api48_StickerPack_stickerPack - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x12b299d4 serializeBlock:^bool (Api48_StickerPack_stickerPack *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.emoticon data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.documents data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(stickerPack emoticon:%d documents:%@)", (int)[self.emoticon length], self.documents]; } @end @interface Api48_UserProfilePhoto () @end @interface Api48_UserProfilePhoto_userProfilePhotoEmpty () @end @interface Api48_UserProfilePhoto_userProfilePhoto () @property (nonatomic, strong) NSNumber * photoId; @property (nonatomic, strong) Api48_FileLocation * photoSmall; @property (nonatomic, strong) Api48_FileLocation * photoBig; @end @implementation Api48_UserProfilePhoto + (Api48_UserProfilePhoto_userProfilePhotoEmpty *)userProfilePhotoEmpty { Api48_UserProfilePhoto_userProfilePhotoEmpty *_object = [[Api48_UserProfilePhoto_userProfilePhotoEmpty alloc] init]; return _object; } + (Api48_UserProfilePhoto_userProfilePhoto *)userProfilePhotoWithPhotoId:(NSNumber *)photoId photoSmall:(Api48_FileLocation *)photoSmall photoBig:(Api48_FileLocation *)photoBig { Api48_UserProfilePhoto_userProfilePhoto *_object = [[Api48_UserProfilePhoto_userProfilePhoto alloc] init]; _object.photoId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:photoId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.photoSmall = photoSmall; _object.photoBig = photoBig; return _object; } @end @implementation Api48_UserProfilePhoto_userProfilePhotoEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x4f11bae1 serializeBlock:^bool (__unused Api48_UserProfilePhoto_userProfilePhotoEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userProfilePhotoEmpty)"]; } @end @implementation Api48_UserProfilePhoto_userProfilePhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd559d8c8 serializeBlock:^bool (Api48_UserProfilePhoto_userProfilePhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.photoId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.photoSmall data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.photoBig data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(userProfilePhoto photo_id:%@ photo_small:%@ photo_big:%@)", self.photoId, self.photoSmall, self.photoBig]; } @end @interface Api48_updates_ChannelDifference () @property (nonatomic, strong) NSNumber * flags; @property (nonatomic, strong) NSNumber * pts; @property (nonatomic, strong) NSNumber * timeout; @end @interface Api48_updates_ChannelDifference_updates_channelDifferenceEmpty () @end @interface Api48_updates_ChannelDifference_updates_channelDifferenceTooLong () @property (nonatomic, strong) NSNumber * topMessage; @property (nonatomic, strong) NSNumber * topImportantMessage; @property (nonatomic, strong) NSNumber * readInboxMaxId; @property (nonatomic, strong) NSNumber * unreadCount; @property (nonatomic, strong) NSNumber * unreadImportantCount; @property (nonatomic, strong) NSArray * messages; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @interface Api48_updates_ChannelDifference_updates_channelDifference () @property (nonatomic, strong) NSArray * pnewMessages; @property (nonatomic, strong) NSArray * otherUpdates; @property (nonatomic, strong) NSArray * chats; @property (nonatomic, strong) NSArray * users; @end @implementation Api48_updates_ChannelDifference + (Api48_updates_ChannelDifference_updates_channelDifferenceEmpty *)updates_channelDifferenceEmptyWithFlags:(NSNumber *)flags pts:(NSNumber *)pts timeout:(NSNumber *)timeout { Api48_updates_ChannelDifference_updates_channelDifferenceEmpty *_object = [[Api48_updates_ChannelDifference_updates_channelDifferenceEmpty alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.timeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:timeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_updates_ChannelDifference_updates_channelDifferenceTooLong *)updates_channelDifferenceTooLongWithFlags:(NSNumber *)flags pts:(NSNumber *)pts timeout:(NSNumber *)timeout topMessage:(NSNumber *)topMessage topImportantMessage:(NSNumber *)topImportantMessage readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount unreadImportantCount:(NSNumber *)unreadImportantCount messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users { Api48_updates_ChannelDifference_updates_channelDifferenceTooLong *_object = [[Api48_updates_ChannelDifference_updates_channelDifferenceTooLong alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.timeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:timeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.topMessage = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:topMessage] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.topImportantMessage = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:topImportantMessage] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.readInboxMaxId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.unreadImportantCount = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:unreadImportantCount] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.messages = ({ NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count]; for (id messages_item in messages) { [messages_copy addObject:messages_item]; } id messages_result = [Api48__Serializer addSerializerToObject:messages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; messages_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } + (Api48_updates_ChannelDifference_updates_channelDifference *)updates_channelDifferenceWithFlags:(NSNumber *)flags pts:(NSNumber *)pts timeout:(NSNumber *)timeout pnewMessages:(NSArray *)pnewMessages otherUpdates:(NSArray *)otherUpdates chats:(NSArray *)chats users:(NSArray *)users { Api48_updates_ChannelDifference_updates_channelDifference *_object = [[Api48_updates_ChannelDifference_updates_channelDifference alloc] init]; _object.flags = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pts = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.timeout = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:timeout] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.pnewMessages = ({ NSMutableArray *pnewMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewMessages.count]; for (id pnewMessages_item in pnewMessages) { [pnewMessages_copy addObject:pnewMessages_item]; } id pnewMessages_result = [Api48__Serializer addSerializerToObject:pnewMessages_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pnewMessages_result;}); _object.otherUpdates = ({ NSMutableArray *otherUpdates_copy = [[NSMutableArray alloc] initWithCapacity:otherUpdates.count]; for (id otherUpdates_item in otherUpdates) { [otherUpdates_copy addObject:otherUpdates_item]; } id otherUpdates_result = [Api48__Serializer addSerializerToObject:otherUpdates_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; otherUpdates_result;}); _object.chats = ({ NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count]; for (id chats_item in chats) { [chats_copy addObject:chats_item]; } id chats_result = [Api48__Serializer addSerializerToObject:chats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; chats_result;}); _object.users = ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}); return _object; } @end @implementation Api48_updates_ChannelDifference_updates_channelDifferenceEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3e11affb serializeBlock:^bool (Api48_updates_ChannelDifference_updates_channelDifferenceEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.timeout data:data addSignature:false]) return false; } return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.channelDifferenceEmpty flags:%@ pts:%@ timeout:%@)", self.flags, self.pts, self.timeout]; } @end @implementation Api48_updates_ChannelDifference_updates_channelDifferenceTooLong - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x5e167646 serializeBlock:^bool (Api48_updates_ChannelDifference_updates_channelDifferenceTooLong *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.timeout data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.topMessage data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.topImportantMessage data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.readInboxMaxId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.unreadImportantCount data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.messages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.channelDifferenceTooLong flags:%@ pts:%@ timeout:%@ top_message:%@ top_important_message:%@ read_inbox_max_id:%@ unread_count:%@ unread_important_count:%@ messages:%@ chats:%@ users:%@)", self.flags, self.pts, self.timeout, self.topMessage, self.topImportantMessage, self.readInboxMaxId, self.unreadCount, self.unreadImportantCount, self.messages, self.chats, self.users]; } @end @implementation Api48_updates_ChannelDifference_updates_channelDifference - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x2064674e serializeBlock:^bool (Api48_updates_ChannelDifference_updates_channelDifference *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.flags data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.pts data:data addSignature:false]) return false; if ([object.flags intValue] & (1 << 1)) { if (![Api48__Environment serializeObject:object.timeout data:data addSignature:false]) return false; } if (![Api48__Environment serializeObject:object.pnewMessages data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.otherUpdates data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.chats data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.users data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(updates.channelDifference flags:%@ pts:%@ timeout:%@ new_messages:%@ other_updates:%@ chats:%@ users:%@)", self.flags, self.pts, self.timeout, self.pnewMessages, self.otherUpdates, self.chats, self.users]; } @end @interface Api48_MessageEntity () @property (nonatomic, strong) NSNumber * offset; @property (nonatomic, strong) NSNumber * length; @end @interface Api48_MessageEntity_messageEntityUnknown () @end @interface Api48_MessageEntity_messageEntityMention () @end @interface Api48_MessageEntity_messageEntityHashtag () @end @interface Api48_MessageEntity_messageEntityBotCommand () @end @interface Api48_MessageEntity_messageEntityUrl () @end @interface Api48_MessageEntity_messageEntityEmail () @end @interface Api48_MessageEntity_messageEntityBold () @end @interface Api48_MessageEntity_messageEntityItalic () @end @interface Api48_MessageEntity_messageEntityCode () @end @interface Api48_MessageEntity_messageEntityPre () @property (nonatomic, strong) NSString * language; @end @interface Api48_MessageEntity_messageEntityTextUrl () @property (nonatomic, strong) NSString * url; @end @implementation Api48_MessageEntity + (Api48_MessageEntity_messageEntityUnknown *)messageEntityUnknownWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityUnknown *_object = [[Api48_MessageEntity_messageEntityUnknown alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityMention *)messageEntityMentionWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityMention *_object = [[Api48_MessageEntity_messageEntityMention alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityHashtag *)messageEntityHashtagWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityHashtag *_object = [[Api48_MessageEntity_messageEntityHashtag alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityBotCommand *)messageEntityBotCommandWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityBotCommand *_object = [[Api48_MessageEntity_messageEntityBotCommand alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityUrl *)messageEntityUrlWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityUrl *_object = [[Api48_MessageEntity_messageEntityUrl alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityEmail *)messageEntityEmailWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityEmail *_object = [[Api48_MessageEntity_messageEntityEmail alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityBold *)messageEntityBoldWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityBold *_object = [[Api48_MessageEntity_messageEntityBold alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityItalic *)messageEntityItalicWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityItalic *_object = [[Api48_MessageEntity_messageEntityItalic alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityCode *)messageEntityCodeWithOffset:(NSNumber *)offset length:(NSNumber *)length { Api48_MessageEntity_messageEntityCode *_object = [[Api48_MessageEntity_messageEntityCode alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityPre *)messageEntityPreWithOffset:(NSNumber *)offset length:(NSNumber *)length language:(NSString *)language { Api48_MessageEntity_messageEntityPre *_object = [[Api48_MessageEntity_messageEntityPre alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.language = [Api48__Serializer addSerializerToObject:[language copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } + (Api48_MessageEntity_messageEntityTextUrl *)messageEntityTextUrlWithOffset:(NSNumber *)offset length:(NSNumber *)length url:(NSString *)url { Api48_MessageEntity_messageEntityTextUrl *_object = [[Api48_MessageEntity_messageEntityTextUrl alloc] init]; _object.offset = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.length = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:length] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.url = [Api48__Serializer addSerializerToObject:[url copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; return _object; } @end @implementation Api48_MessageEntity_messageEntityUnknown - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbb92ba95 serializeBlock:^bool (Api48_MessageEntity_messageEntityUnknown *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityUnknown offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityMention - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfa04579d serializeBlock:^bool (Api48_MessageEntity_messageEntityMention *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityMention offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityHashtag - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6f635b0d serializeBlock:^bool (Api48_MessageEntity_messageEntityHashtag *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityHashtag offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityBotCommand - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6cef8ac7 serializeBlock:^bool (Api48_MessageEntity_messageEntityBotCommand *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityBotCommand offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityUrl - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x6ed02538 serializeBlock:^bool (Api48_MessageEntity_messageEntityUrl *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityUrl offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityEmail - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x64e475c2 serializeBlock:^bool (Api48_MessageEntity_messageEntityEmail *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityEmail offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityBold - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xbd610bc9 serializeBlock:^bool (Api48_MessageEntity_messageEntityBold *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityBold offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityItalic - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x826f8b60 serializeBlock:^bool (Api48_MessageEntity_messageEntityItalic *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityItalic offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityCode - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x28a20571 serializeBlock:^bool (Api48_MessageEntity_messageEntityCode *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityCode offset:%@ length:%@)", self.offset, self.length]; } @end @implementation Api48_MessageEntity_messageEntityPre - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x73924be0 serializeBlock:^bool (Api48_MessageEntity_messageEntityPre *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.language data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityPre offset:%@ length:%@ language:%d)", self.offset, self.length, (int)[self.language length]]; } @end @implementation Api48_MessageEntity_messageEntityTextUrl - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x76a6d327 serializeBlock:^bool (Api48_MessageEntity_messageEntityTextUrl *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.offset data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.length data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.url data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(messageEntityTextUrl offset:%@ length:%@ url:%d)", self.offset, self.length, (int)[self.url length]]; } @end @interface Api48_InputPhoto () @end @interface Api48_InputPhoto_inputPhotoEmpty () @end @interface Api48_InputPhoto_inputPhoto () @property (nonatomic, strong) NSNumber * pid; @property (nonatomic, strong) NSNumber * accessHash; @end @implementation Api48_InputPhoto + (Api48_InputPhoto_inputPhotoEmpty *)inputPhotoEmpty { Api48_InputPhoto_inputPhotoEmpty *_object = [[Api48_InputPhoto_inputPhotoEmpty alloc] init]; return _object; } + (Api48_InputPhoto_inputPhoto *)inputPhotoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash { Api48_InputPhoto_inputPhoto *_object = [[Api48_InputPhoto_inputPhoto alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_InputPhoto_inputPhotoEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x1cd7bf0d serializeBlock:^bool (__unused Api48_InputPhoto_inputPhotoEmpty *object, __unused NSMutableData *data) { return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPhotoEmpty)"]; } @end @implementation Api48_InputPhoto_inputPhoto - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfb95c6c4 serializeBlock:^bool (Api48_InputPhoto_inputPhoto *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(inputPhoto id:%@ access_hash:%@)", self.pid, self.accessHash]; } @end @interface Api48_EncryptedChat () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_EncryptedChat_encryptedChatEmpty () @end @interface Api48_EncryptedChat_encryptedChatWaiting () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * adminId; @property (nonatomic, strong) NSNumber * participantId; @end @interface Api48_EncryptedChat_encryptedChatDiscarded () @end @interface Api48_EncryptedChat_encryptedChatRequested () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * adminId; @property (nonatomic, strong) NSNumber * participantId; @property (nonatomic, strong) NSData * gA; @end @interface Api48_EncryptedChat_encryptedChat () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSNumber * adminId; @property (nonatomic, strong) NSNumber * participantId; @property (nonatomic, strong) NSData * gAOrB; @property (nonatomic, strong) NSNumber * keyFingerprint; @end @implementation Api48_EncryptedChat + (Api48_EncryptedChat_encryptedChatEmpty *)encryptedChatEmptyWithPid:(NSNumber *)pid { Api48_EncryptedChat_encryptedChatEmpty *_object = [[Api48_EncryptedChat_encryptedChatEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_EncryptedChat_encryptedChatWaiting *)encryptedChatWaitingWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date adminId:(NSNumber *)adminId participantId:(NSNumber *)participantId { Api48_EncryptedChat_encryptedChatWaiting *_object = [[Api48_EncryptedChat_encryptedChatWaiting alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.adminId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:adminId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.participantId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:participantId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_EncryptedChat_encryptedChatDiscarded *)encryptedChatDiscardedWithPid:(NSNumber *)pid { Api48_EncryptedChat_encryptedChatDiscarded *_object = [[Api48_EncryptedChat_encryptedChatDiscarded alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; return _object; } + (Api48_EncryptedChat_encryptedChatRequested *)encryptedChatRequestedWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date adminId:(NSNumber *)adminId participantId:(NSNumber *)participantId gA:(NSData *)gA { Api48_EncryptedChat_encryptedChatRequested *_object = [[Api48_EncryptedChat_encryptedChatRequested alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.adminId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:adminId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.participantId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:participantId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.gA = [Api48__Serializer addSerializerToObject:[gA copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; return _object; } + (Api48_EncryptedChat_encryptedChat *)encryptedChatWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date adminId:(NSNumber *)adminId participantId:(NSNumber *)participantId gAOrB:(NSData *)gAOrB keyFingerprint:(NSNumber *)keyFingerprint { Api48_EncryptedChat_encryptedChat *_object = [[Api48_EncryptedChat_encryptedChat alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.adminId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:adminId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.participantId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:participantId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.gAOrB = [Api48__Serializer addSerializerToObject:[gAOrB copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]]; _object.keyFingerprint = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_EncryptedChat_encryptedChatEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xab7ec0a0 serializeBlock:^bool (Api48_EncryptedChat_encryptedChatEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedChatEmpty id:%@)", self.pid]; } @end @implementation Api48_EncryptedChat_encryptedChatWaiting - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x3bf703dc serializeBlock:^bool (Api48_EncryptedChat_encryptedChatWaiting *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.adminId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.participantId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedChatWaiting id:%@ access_hash:%@ date:%@ admin_id:%@ participant_id:%@)", self.pid, self.accessHash, self.date, self.adminId, self.participantId]; } @end @implementation Api48_EncryptedChat_encryptedChatDiscarded - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x13d6dd27 serializeBlock:^bool (Api48_EncryptedChat_encryptedChatDiscarded *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedChatDiscarded id:%@)", self.pid]; } @end @implementation Api48_EncryptedChat_encryptedChatRequested - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xc878527e serializeBlock:^bool (Api48_EncryptedChat_encryptedChatRequested *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.adminId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.participantId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.gA data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedChatRequested id:%@ access_hash:%@ date:%@ admin_id:%@ participant_id:%@ g_a:%d)", self.pid, self.accessHash, self.date, self.adminId, self.participantId, (int)[self.gA length]]; } @end @implementation Api48_EncryptedChat_encryptedChat - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xfa56ce36 serializeBlock:^bool (Api48_EncryptedChat_encryptedChat *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.adminId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.participantId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.gAOrB data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.keyFingerprint data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(encryptedChat id:%@ access_hash:%@ date:%@ admin_id:%@ participant_id:%@ g_a_or_b:%d key_fingerprint:%@)", self.pid, self.accessHash, self.date, self.adminId, self.participantId, (int)[self.gAOrB length], self.keyFingerprint]; } @end @interface Api48_Document () @property (nonatomic, strong) NSNumber * pid; @end @interface Api48_Document_documentEmpty () @end @interface Api48_Document_document () @property (nonatomic, strong) NSNumber * accessHash; @property (nonatomic, strong) NSNumber * date; @property (nonatomic, strong) NSString * mimeType; @property (nonatomic, strong) NSNumber * size; @property (nonatomic, strong) Api48_PhotoSize * thumb; @property (nonatomic, strong) NSNumber * dcId; @property (nonatomic, strong) NSArray * attributes; @end @implementation Api48_Document + (Api48_Document_documentEmpty *)documentEmptyWithPid:(NSNumber *)pid { Api48_Document_documentEmpty *_object = [[Api48_Document_documentEmpty alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } + (Api48_Document_document *)documentWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date mimeType:(NSString *)mimeType size:(NSNumber *)size thumb:(Api48_PhotoSize *)thumb dcId:(NSNumber *)dcId attributes:(NSArray *)attributes { Api48_Document_document *_object = [[Api48_Document_document alloc] init]; _object.pid = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.accessHash = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:accessHash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; _object.date = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.mimeType = [Api48__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]; _object.size = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:size] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.thumb = thumb; _object.dcId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dcId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.attributes = ({ NSMutableArray *attributes_copy = [[NSMutableArray alloc] initWithCapacity:attributes.count]; for (id attributes_item in attributes) { [attributes_copy addObject:attributes_item]; } id attributes_result = [Api48__Serializer addSerializerToObject:attributes_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; attributes_result;}); return _object; } @end @implementation Api48_Document_documentEmpty - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0x36f8c871 serializeBlock:^bool (Api48_Document_documentEmpty *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(documentEmpty id:%@)", self.pid]; } @end @implementation Api48_Document_document - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xf9a39f4f serializeBlock:^bool (Api48_Document_document *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.pid data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.accessHash data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.date data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.mimeType data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.size data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.thumb data:data addSignature:true]) return false; if (![Api48__Environment serializeObject:object.dcId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.attributes data:data addSignature:true]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(document id:%@ access_hash:%@ date:%@ mime_type:%d size:%@ thumb:%@ dc_id:%@ attributes:%@)", self.pid, self.accessHash, self.date, (int)[self.mimeType length], self.size, self.thumb, self.dcId, self.attributes]; } @end @interface Api48_ImportedContact () @property (nonatomic, strong) NSNumber * userId; @property (nonatomic, strong) NSNumber * clientId; @end @interface Api48_ImportedContact_importedContact () @end @implementation Api48_ImportedContact + (Api48_ImportedContact_importedContact *)importedContactWithUserId:(NSNumber *)userId clientId:(NSNumber *)clientId { Api48_ImportedContact_importedContact *_object = [[Api48_ImportedContact_importedContact alloc] init]; _object.userId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:userId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]; _object.clientId = [Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:clientId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]; return _object; } @end @implementation Api48_ImportedContact_importedContact - (instancetype)init { self = [super init]; if (self != nil) { [Api48__Serializer addSerializerToObject:self withConstructorSignature:0xd0028438 serializeBlock:^bool (Api48_ImportedContact_importedContact *object, NSMutableData *data) { if (![Api48__Environment serializeObject:object.userId data:data addSignature:false]) return false; if (![Api48__Environment serializeObject:object.clientId data:data addSignature:false]) return false; return true; }]; } return self; } - (NSString *)description { return [[NSString alloc] initWithFormat:@"(importedContact user_id:%@ client_id:%@)", self.userId, self.clientId]; } @end @implementation Api48: NSObject + (Api48_FunctionContext *)messages_getMessagesWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1109588596; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getMessages"]; } + (Api48_FunctionContext *)messages_restoreMessagesWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 962567550; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return result; } metadata:@"messages.restoreMessages"]; } + (Api48_FunctionContext *)messages_getChatsWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1013621127; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getChats"]; } + (Api48_FunctionContext *)messages_getFullChatWithChatId:(NSNumber *)chatId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 998448230; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getFullChat"]; } + (Api48_FunctionContext *)messages_getDhConfigWithVersion:(NSNumber *)version randomLength:(NSNumber *)randomLength { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 651135312; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomLength] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getDhConfig"]; } + (Api48_FunctionContext *)messages_requestEncryptionWithUserId:(Api48_InputUser *)userId randomId:(NSNumber *)randomId gA:(NSData *)gA { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -162681021; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[gA copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.requestEncryption"]; } + (Api48_FunctionContext *)messages_acceptEncryptionWithPeer:(Api48_InputEncryptedChat *)peer gB:(NSData *)gB keyFingerprint:(NSNumber *)keyFingerprint { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1035731989; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[gB copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.acceptEncryption"]; } + (Api48_FunctionContext *)messages_discardEncryptionWithChatId:(NSNumber *)chatId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -304536635; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.discardEncryption"]; } + (Api48_FunctionContext *)messages_setEncryptedTypingWithPeer:(Api48_InputEncryptedChat *)peer typing:(Api48_Bool *)typing { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 2031374829; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:typing data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.setEncryptedTyping"]; } + (Api48_FunctionContext *)messages_readEncryptedHistoryWithPeer:(Api48_InputEncryptedChat *)peer maxDate:(NSNumber *)maxDate { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 2135648522; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.readEncryptedHistory"]; } + (Api48_FunctionContext *)messages_sendEncryptedWithPeer:(Api48_InputEncryptedChat *)peer randomId:(NSNumber *)randomId data:(NSData *)data { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1451792525; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[data copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendEncrypted"]; } + (Api48_FunctionContext *)messages_sendEncryptedFileWithPeer:(Api48_InputEncryptedChat *)peer randomId:(NSNumber *)randomId data:(NSData *)data file:(Api48_InputEncryptedFile *)file { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1701831834; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[data copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:file data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendEncryptedFile"]; } + (Api48_FunctionContext *)messages_sendEncryptedServiceWithPeer:(Api48_InputEncryptedChat *)peer randomId:(NSNumber *)randomId data:(NSData *)data { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 852769188; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[data copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendEncryptedService"]; } + (Api48_FunctionContext *)messages_receivedQueueWithMaxQts:(NSNumber *)maxQts { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1436924774; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxQts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil) return nil; return result; } metadata:@"messages.receivedQueue"]; } + (Api48_FunctionContext *)messages_setTypingWithPeer:(Api48_InputPeer *)peer action:(Api48_SendMessageAction *)action { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1551737264; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:action data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.setTyping"]; } + (Api48_FunctionContext *)messages_getStickersWithEmoticon:(NSString *)emoticon phash:(NSString *)phash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1373446075; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[emoticon copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getStickers"]; } + (Api48_FunctionContext *)messages_deleteMessagesWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1510897371; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.deleteMessages"]; } + (Api48_FunctionContext *)messages_readMessageContentsWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 916930423; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.readMessageContents"]; } + (Api48_FunctionContext *)messages_editChatTitleWithChatId:(NSNumber *)chatId title:(NSString *)title { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -599447467; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.editChatTitle"]; } + (Api48_FunctionContext *)messages_editChatPhotoWithChatId:(NSNumber *)chatId photo:(Api48_InputChatPhoto *)photo { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -900957736; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:photo data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.editChatPhoto"]; } + (Api48_FunctionContext *)messages_addChatUserWithChatId:(NSNumber *)chatId userId:(Api48_InputUser *)userId fwdLimit:(NSNumber *)fwdLimit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -106911223; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fwdLimit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.addChatUser"]; } + (Api48_FunctionContext *)messages_deleteChatUserWithChatId:(NSNumber *)chatId userId:(Api48_InputUser *)userId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -530505962; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.deleteChatUser"]; } + (Api48_FunctionContext *)messages_createChatWithUsers:(NSArray *)users title:(NSString *)title { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 164303470; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.createChat"]; } + (Api48_FunctionContext *)messages_sendBroadcastWithContacts:(NSArray *)contacts randomId:(NSArray *)randomId message:(NSString *)message media:(Api48_InputMedia *)media { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1082919718; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count]; for (id contacts_item in contacts) { [contacts_copy addObject:contacts_item]; } id contacts_result = [Api48__Serializer addSerializerToObject:contacts_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; contacts_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *randomId_copy = [[NSMutableArray alloc] initWithCapacity:randomId.count]; for (id randomId_item in randomId) { [randomId_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId_item] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]]; } id randomId_result = [Api48__Serializer addSerializerToObject:randomId_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; randomId_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:media data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendBroadcast"]; } + (Api48_FunctionContext *)messages_getWebPagePreviewWithMessage:(NSString *)message { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 623001124; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getWebPagePreview"]; } + (Api48_FunctionContext *)messages_forwardMessageWithPeer:(Api48_InputPeer *)peer pid:(NSNumber *)pid randomId:(NSNumber *)randomId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 865483769; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.forwardMessage"]; } + (Api48_FunctionContext *)messages_receivedMessagesWithMaxId:(NSNumber *)maxId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 94983360; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return result; } metadata:@"messages.receivedMessages"]; } + (Api48_FunctionContext *)messages_exportChatInviteWithChatId:(NSNumber *)chatId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 2106086025; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.exportChatInvite"]; } + (Api48_FunctionContext *)messages_checkChatInviteWithPhash:(NSString *)phash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1051570619; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.checkChatInvite"]; } + (Api48_FunctionContext *)messages_importChatInviteWithPhash:(NSString *)phash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1817183516; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.importChatInvite"]; } + (Api48_FunctionContext *)messages_getStickerSetWithStickerset:(Api48_InputStickerSet *)stickerset { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 639215886; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:stickerset data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getStickerSet"]; } + (Api48_FunctionContext *)messages_uninstallStickerSetWithStickerset:(Api48_InputStickerSet *)stickerset { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -110209570; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:stickerset data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.uninstallStickerSet"]; } + (Api48_FunctionContext *)messages_installStickerSetWithStickerset:(Api48_InputStickerSet *)stickerset disabled:(Api48_Bool *)disabled { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 2066793382; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:stickerset data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:disabled data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.installStickerSet"]; } + (Api48_FunctionContext *)messages_searchWithFlags:(NSNumber *)flags peer:(Api48_InputPeer *)peer q:(NSString *)q filter:(Api48_MessagesFilter *)filter minDate:(NSNumber *)minDate maxDate:(NSNumber *)maxDate offset:(NSNumber *)offset maxId:(NSNumber *)maxId limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -732523960; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[q copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:filter data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:minDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.search"]; } + (Api48_FunctionContext *)messages_getMessagesViewsWithPeer:(Api48_InputPeer *)peer pid:(NSArray *)pid increment:(Api48_Bool *)increment { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -993483427; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:increment data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return result; } metadata:@"messages.getMessagesViews"]; } + (Api48_FunctionContext *)messages_toggleChatAdminsWithChatId:(NSNumber *)chatId enabled:(Api48_Bool *)enabled { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -326379039; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:enabled data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.toggleChatAdmins"]; } + (Api48_FunctionContext *)messages_editChatAdminWithChatId:(NSNumber *)chatId userId:(Api48_InputUser *)userId isAdmin:(Api48_Bool *)isAdmin { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1444503762; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:isAdmin data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.editChatAdmin"]; } + (Api48_FunctionContext *)messages_deleteHistoryWithPeer:(Api48_InputPeer *)peer maxId:(NSNumber *)maxId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1212072999; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.deleteHistory"]; } + (Api48_FunctionContext *)messages_readHistoryWithPeer:(Api48_InputPeer *)peer maxId:(NSNumber *)maxId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 238054714; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.readHistory"]; } + (Api48_FunctionContext *)messages_migrateChatWithChatId:(NSNumber *)chatId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 363051235; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:chatId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.migrateChat"]; } + (Api48_FunctionContext *)messages_searchGlobalWithQ:(NSString *)q offsetDate:(NSNumber *)offsetDate offsetPeer:(Api48_InputPeer *)offsetPeer offsetId:(NSNumber *)offsetId limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1640190800; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[q copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:offsetPeer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.searchGlobal"]; } + (Api48_FunctionContext *)messages_startBotWithBot:(Api48_InputUser *)bot peer:(Api48_InputPeer *)peer randomId:(NSNumber *)randomId startParam:(NSString *)startParam { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -421563528; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:bot data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[startParam copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.startBot"]; } + (Api48_FunctionContext *)messages_getDialogsWithOffsetDate:(NSNumber *)offsetDate offsetId:(NSNumber *)offsetId offsetPeer:(Api48_InputPeer *)offsetPeer limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1799878989; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:offsetPeer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getDialogs"]; } + (Api48_FunctionContext *)messages_getAllStickersWithPhash:(NSNumber *)phash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 479598769; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:phash] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getAllStickers"]; } + (Api48_FunctionContext *)messages_reorderStickerSetsWithOrder:(NSArray *)order { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1613775824; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *order_copy = [[NSMutableArray alloc] initWithCapacity:order.count]; for (id order_item in order) { [order_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:order_item] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]]; } id order_result = [Api48__Serializer addSerializerToObject:order_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; order_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.reorderStickerSets"]; } + (Api48_FunctionContext *)messages_getDocumentByHashWithSha256:(NSData *)sha256 size:(NSNumber *)size mimeType:(NSString *)mimeType { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 864953444; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[sha256 copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:size] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getDocumentByHash"]; } + (Api48_FunctionContext *)messages_searchGifsWithQ:(NSString *)q offset:(NSNumber *)offset { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1080395925; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[q copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.searchGifs"]; } + (Api48_FunctionContext *)messages_getSavedGifsWithPhash:(NSNumber *)phash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -2084618926; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:phash] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getSavedGifs"]; } + (Api48_FunctionContext *)messages_saveGifWithPid:(Api48_InputDocument *)pid unsave:(Api48_Bool *)unsave { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 846868683; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:unsave data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.saveGif"]; } + (Api48_FunctionContext *)messages_getInlineBotResultsWithBot:(Api48_InputUser *)bot query:(NSString *)query offset:(NSString *)offset { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1826332659; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:bot data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[query copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[offset copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getInlineBotResults"]; } + (Api48_FunctionContext *)messages_setInlineBotResultsWithFlags:(NSNumber *)flags queryId:(NSNumber *)queryId results:(NSArray *)results cacheTime:(NSNumber *)cacheTime nextOffset:(NSString *)nextOffset { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1059318802; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:queryId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count]; for (id results_item in results) { [results_copy addObject:results_item]; } id results_result = [Api48__Serializer addSerializerToObject:results_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; results_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:cacheTime] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if ([flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[nextOffset copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; } return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.setInlineBotResults"]; } + (Api48_FunctionContext *)messages_getHistoryWithPeer:(Api48_InputPeer *)peer offsetId:(NSNumber *)offsetId offsetDate:(NSNumber *)offsetDate addOffset:(NSNumber *)addOffset limit:(NSNumber *)limit maxId:(NSNumber *)maxId minId:(NSNumber *)minId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1347868602; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:addOffset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:minId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.getHistory"]; } + (Api48_FunctionContext *)messages_sendMessageWithFlags:(NSNumber *)flags peer:(Api48_InputPeer *)peer replyToMsgId:(NSNumber *)replyToMsgId message:(NSString *)message randomId:(NSNumber *)randomId replyMarkup:(Api48_ReplyMarkup *)replyMarkup entities:(NSArray *)entities { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -91733382; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if ([flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; } if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if ([flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:replyMarkup data:_data addSignature:true]) return false; } if ([flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject: ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}) data:_data addSignature:true]) return false; } return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendMessage"]; } + (Api48_FunctionContext *)messages_sendMediaWithFlags:(NSNumber *)flags peer:(Api48_InputPeer *)peer replyToMsgId:(NSNumber *)replyToMsgId media:(Api48_InputMedia *)media randomId:(NSNumber *)randomId replyMarkup:(Api48_ReplyMarkup *)replyMarkup { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -923703407; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if ([flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; } if (![Api48__Environment serializeObject:media data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if ([flags intValue] & (1 << 2)) { if (![Api48__Environment serializeObject:replyMarkup data:_data addSignature:true]) return false; } return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendMedia"]; } + (Api48_FunctionContext *)messages_sendInlineBotResultWithFlags:(NSNumber *)flags peer:(Api48_InputPeer *)peer replyToMsgId:(NSNumber *)replyToMsgId randomId:(NSNumber *)randomId queryId:(NSNumber *)queryId pid:(NSString *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1318189314; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if ([flags intValue] & (1 << 0)) { if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; } if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:queryId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[pid copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.sendInlineBotResult"]; } + (Api48_FunctionContext *)messages_forwardMessagesWithFlags:(NSNumber *)flags fromPeer:(Api48_InputPeer *)fromPeer pid:(NSArray *)pid randomId:(NSArray *)randomId toPeer:(Api48_InputPeer *)toPeer { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1888354709; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:fromPeer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *randomId_copy = [[NSMutableArray alloc] initWithCapacity:randomId.count]; for (id randomId_item in randomId) { [randomId_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:randomId_item] serializer:[[Api48_BuiltinSerializer_Long alloc] init]]]; } id randomId_result = [Api48__Serializer addSerializerToObject:randomId_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; randomId_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:toPeer data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"messages.forwardMessages"]; } + (Api48_FunctionContext *)channels_getDialogsWithOffset:(NSNumber *)offset limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1445735863; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getDialogs"]; } + (Api48_FunctionContext *)channels_readHistoryWithChannel:(Api48_InputChannel *)channel maxId:(NSNumber *)maxId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -871347913; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.readHistory"]; } + (Api48_FunctionContext *)channels_deleteMessagesWithChannel:(Api48_InputChannel *)channel pid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -2067661490; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.deleteMessages"]; } + (Api48_FunctionContext *)channels_deleteUserHistoryWithChannel:(Api48_InputChannel *)channel userId:(Api48_InputUser *)userId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -787622117; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.deleteUserHistory"]; } + (Api48_FunctionContext *)channels_reportSpamWithChannel:(Api48_InputChannel *)channel userId:(Api48_InputUser *)userId pid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -32999408; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.reportSpam"]; } + (Api48_FunctionContext *)channels_getMessagesWithChannel:(Api48_InputChannel *)channel pid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1814580409; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid_item] serializer:[[Api48_BuiltinSerializer_Int alloc] init]]]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getMessages"]; } + (Api48_FunctionContext *)channels_getParticipantsWithChannel:(Api48_InputChannel *)channel filter:(Api48_ChannelParticipantsFilter *)filter offset:(NSNumber *)offset limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 618237842; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:filter data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getParticipants"]; } + (Api48_FunctionContext *)channels_getParticipantWithChannel:(Api48_InputChannel *)channel userId:(Api48_InputUser *)userId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1416484774; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getParticipant"]; } + (Api48_FunctionContext *)channels_getChannelsWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 176122811; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:pid_item]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getChannels"]; } + (Api48_FunctionContext *)channels_getFullChannelWithChannel:(Api48_InputChannel *)channel { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 141781513; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getFullChannel"]; } + (Api48_FunctionContext *)channels_editAboutWithChannel:(Api48_InputChannel *)channel about:(NSString *)about { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 333610782; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[about copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.editAbout"]; } + (Api48_FunctionContext *)channels_editAdminWithChannel:(Api48_InputChannel *)channel userId:(Api48_InputUser *)userId role:(Api48_ChannelParticipantRole *)role { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1387358562; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:role data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.editAdmin"]; } + (Api48_FunctionContext *)channels_editTitleWithChannel:(Api48_InputChannel *)channel title:(NSString *)title { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1450044624; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.editTitle"]; } + (Api48_FunctionContext *)channels_editPhotoWithChannel:(Api48_InputChannel *)channel photo:(Api48_InputChatPhoto *)photo { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -248621111; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:photo data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.editPhoto"]; } + (Api48_FunctionContext *)channels_toggleCommentsWithChannel:(Api48_InputChannel *)channel enabled:(Api48_Bool *)enabled { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1432183160; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:enabled data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.toggleComments"]; } + (Api48_FunctionContext *)channels_checkUsernameWithChannel:(Api48_InputChannel *)channel username:(NSString *)username { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 283557164; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.checkUsername"]; } + (Api48_FunctionContext *)channels_updateUsernameWithChannel:(Api48_InputChannel *)channel username:(NSString *)username { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 890549214; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.updateUsername"]; } + (Api48_FunctionContext *)channels_joinChannelWithChannel:(Api48_InputChannel *)channel { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 615851205; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.joinChannel"]; } + (Api48_FunctionContext *)channels_leaveChannelWithChannel:(Api48_InputChannel *)channel { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -130635115; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.leaveChannel"]; } + (Api48_FunctionContext *)channels_inviteToChannelWithChannel:(Api48_InputChannel *)channel users:(NSArray *)users { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 429865580; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.inviteToChannel"]; } + (Api48_FunctionContext *)channels_kickFromChannelWithChannel:(Api48_InputChannel *)channel userId:(Api48_InputUser *)userId kicked:(Api48_Bool *)kicked { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1502421484; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:kicked data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.kickFromChannel"]; } + (Api48_FunctionContext *)channels_exportInviteWithChannel:(Api48_InputChannel *)channel { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -950663035; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.exportInvite"]; } + (Api48_FunctionContext *)channels_deleteChannelWithChannel:(Api48_InputChannel *)channel { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1072619549; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.deleteChannel"]; } + (Api48_FunctionContext *)channels_createChannelWithFlags:(NSNumber *)flags title:(NSString *)title about:(NSString *)about { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -192332417; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[title copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[about copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.createChannel"]; } + (Api48_FunctionContext *)channels_getImportantHistoryWithChannel:(Api48_InputChannel *)channel offsetId:(NSNumber *)offsetId offsetDate:(NSNumber *)offsetDate addOffset:(NSNumber *)addOffset limit:(NSNumber *)limit maxId:(NSNumber *)maxId minId:(NSNumber *)minId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1891021902; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offsetDate] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:addOffset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:minId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getImportantHistory"]; } + (Api48_FunctionContext *)channels_toggleInvitesWithChannel:(Api48_InputChannel *)channel enabled:(Api48_Bool *)enabled { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1231065863; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:enabled data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.toggleInvites"]; } + (Api48_FunctionContext *)channels_exportMessageLinkWithChannel:(Api48_InputChannel *)channel pid:(NSNumber *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -934882771; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.exportMessageLink"]; } + (Api48_FunctionContext *)channels_toggleSignaturesWithChannel:(Api48_InputChannel *)channel enabled:(Api48_Bool *)enabled { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 527021574; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:enabled data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.toggleSignatures"]; } + (Api48_FunctionContext *)channels_getMessageEditDataWithChannel:(Api48_InputChannel *)channel pid:(NSNumber *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 669661736; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.getMessageEditData"]; } + (Api48_FunctionContext *)channels_editMessageWithFlags:(NSNumber *)flags channel:(Api48_InputChannel *)channel pid:(NSNumber *)pid message:(NSString *)message entities:(NSArray *)entities { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -589659923; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:flags] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if ([flags intValue] & (1 << 3)) { if (![Api48__Environment serializeObject: ({ NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count]; for (id entities_item in entities) { [entities_copy addObject:entities_item]; } id entities_result = [Api48__Serializer addSerializerToObject:entities_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; entities_result;}) data:_data addSignature:true]) return false; } return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"channels.editMessage"]; } + (Api48_FunctionContext *)auth_checkPhoneWithPhoneNumber:(NSString *)phoneNumber { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1877286395; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.checkPhone"]; } + (Api48_FunctionContext *)auth_sendCallWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 63247716; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.sendCall"]; } + (Api48_FunctionContext *)auth_signUpWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash phoneCode:(NSString *)phoneCode firstName:(NSString *)firstName lastName:(NSString *)lastName { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 453408308; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.signUp"]; } + (Api48_FunctionContext *)auth_signInWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash phoneCode:(NSString *)phoneCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1126886015; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.signIn"]; } + (Api48_FunctionContext *)auth_logOut { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1461180992; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.logOut"]; } + (Api48_FunctionContext *)auth_resetAuthorizations { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1616179942; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.resetAuthorizations"]; } + (Api48_FunctionContext *)auth_sendInvitesWithPhoneNumbers:(NSArray *)phoneNumbers message:(NSString *)message { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1998331287; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *phoneNumbers_copy = [[NSMutableArray alloc] initWithCapacity:phoneNumbers.count]; for (id phoneNumbers_item in phoneNumbers) { [phoneNumbers_copy addObject:[Api48__Serializer addSerializerToObject:[phoneNumbers_item copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]]]; } id phoneNumbers_result = [Api48__Serializer addSerializerToObject:phoneNumbers_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:false]) return false; } return true; }]]; phoneNumbers_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[message copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.sendInvites"]; } + (Api48_FunctionContext *)auth_exportAuthorizationWithDcId:(NSNumber *)dcId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -440401971; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:dcId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.exportAuthorization"]; } + (Api48_FunctionContext *)auth_importAuthorizationWithPid:(NSNumber *)pid bytes:(NSData *)bytes { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -470837741; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pid] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.importAuthorization"]; } + (Api48_FunctionContext *)auth_sendCodeWithPhoneNumber:(NSString *)phoneNumber smsType:(NSNumber *)smsType apiId:(NSNumber *)apiId apiHash:(NSString *)apiHash langCode:(NSString *)langCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1988976461; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:smsType] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:apiId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[apiHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.sendCode"]; } + (Api48_FunctionContext *)auth_sendSmsWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 229241832; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.sendSms"]; } + (Api48_FunctionContext *)auth_resetAccountPasswordWithFirstName:(NSString *)firstName lastName:(NSString *)lastName { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1232524865; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.resetAccountPassword"]; } + (Api48_FunctionContext *)auth_checkPasswordWithPasswordHash:(NSData *)passwordHash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 174260510; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[passwordHash copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.checkPassword"]; } + (Api48_FunctionContext *)auth_requestPasswordRecovery { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -661144474; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.requestPasswordRecovery"]; } + (Api48_FunctionContext *)auth_recoverPasswordWithCode:(NSString *)code { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1319464594; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[code copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"auth.recoverPassword"]; } + (Api48_FunctionContext *)geo_saveGeoPlaceWithGeoPoint:(Api48_InputGeoPoint *)geoPoint langCode:(NSString *)langCode placeName:(Api48_InputGeoPlaceName *)placeName { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1896021556; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:geoPoint data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:placeName data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"geo.saveGeoPlace"]; } + (Api48_FunctionContext *)users_getUsersWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 227648840; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:pid_item]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return result; } metadata:@"users.getUsers"]; } + (Api48_FunctionContext *)users_getFullUserWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -902781519; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"users.getFullUser"]; } + (Api48_FunctionContext *)contacts_getContactIDs { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 333222173; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil) return nil; return result; } metadata:@"contacts.getContactIDs"]; } + (Api48_FunctionContext *)contacts_getStatuses { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -995929106; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return result; } metadata:@"contacts.getStatuses"]; } + (Api48_FunctionContext *)contacts_getContactsWithNHash:(NSString *)nHash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 583445000; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[nHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.getContacts"]; } + (Api48_FunctionContext *)contacts_getRequestsWithOffset:(NSNumber *)offset limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -250972370; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.getRequests"]; } + (Api48_FunctionContext *)contacts_getLinkWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -451068847; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.getLink"]; } + (Api48_FunctionContext *)contacts_importContactsWithContacts:(NSArray *)contacts replace:(Api48_Bool *)replace { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -634342611; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count]; for (id contacts_item in contacts) { [contacts_copy addObject:contacts_item]; } id contacts_result = [Api48__Serializer addSerializerToObject:contacts_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; contacts_result;}) data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:replace data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.importContacts"]; } + (Api48_FunctionContext *)contacts_getLocatedWithGeoPoint:(Api48_InputGeoPoint *)geoPoint hidden:(Api48_Bool *)hidden radius:(NSNumber *)radius limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1639285372; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:geoPoint data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:hidden data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:radius] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.getLocated"]; } + (Api48_FunctionContext *)contacts_getSuggestedWithLimit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -847825880; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.getSuggested"]; } + (Api48_FunctionContext *)contacts_sendRequestWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1923828526; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.sendRequest"]; } + (Api48_FunctionContext *)contacts_acceptRequestWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1804853359; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.acceptRequest"]; } + (Api48_FunctionContext *)contacts_declineRequestWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 308953976; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.declineRequest"]; } + (Api48_FunctionContext *)contacts_deleteContactWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1902823612; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.deleteContact"]; } + (Api48_FunctionContext *)contacts_clearContactWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -596855117; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.clearContact"]; } + (Api48_FunctionContext *)contacts_deleteContactsWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1504393374; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:pid_item]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.deleteContacts"]; } + (Api48_FunctionContext *)contacts_blockWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 858475004; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.block"]; } + (Api48_FunctionContext *)contacts_unblockWithPid:(Api48_InputUser *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -448724803; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.unblock"]; } + (Api48_FunctionContext *)contacts_getBlockedWithOffset:(NSNumber *)offset limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -176409329; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.getBlocked"]; } + (Api48_FunctionContext *)contacts_searchWithQ:(NSString *)q limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 301470424; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[q copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.search"]; } + (Api48_FunctionContext *)contacts_resolveUsernameWithUsername:(NSString *)username { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -113456221; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contacts.resolveUsername"]; } + (Api48_FunctionContext *)contest_saveDeveloperInfoWithVkId:(NSNumber *)vkId name:(NSString *)name phoneNumber:(NSString *)phoneNumber age:(NSNumber *)age city:(NSString *)city { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1705021803; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:vkId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[name copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:age] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[city copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"contest.saveDeveloperInfo"]; } + (Api48_FunctionContext *)help_getConfig { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -990308245; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getConfig"]; } + (Api48_FunctionContext *)help_getNearestDc { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 531836966; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getNearestDc"]; } + (Api48_FunctionContext *)help_getSchemeWithVersion:(NSNumber *)version { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -608789858; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:version] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getScheme"]; } + (Api48_FunctionContext *)help_getAppUpdateWithDeviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion langCode:(NSString *)langCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -938300290; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getAppUpdate"]; } + (Api48_FunctionContext *)help_getInviteTextWithLangCode:(NSString *)langCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1532407418; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getInviteText"]; } + (Api48_FunctionContext *)help_getAppPrefsWithApiId:(NSNumber *)apiId apiHash:(NSString *)apiHash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1883316387; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:apiId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[apiHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getAppPrefs"]; } + (Api48_FunctionContext *)help_saveNetworkStatsWithStats:(NSArray *)stats { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1113444435; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *stats_copy = [[NSMutableArray alloc] initWithCapacity:stats.count]; for (id stats_item in stats) { [stats_copy addObject:stats_item]; } id stats_result = [Api48__Serializer addSerializerToObject:stats_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; stats_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.saveNetworkStats"]; } + (Api48_FunctionContext *)help_test { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1058929929; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.test"]; } + (Api48_FunctionContext *)help_getSupport { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1663104819; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getSupport"]; } + (Api48_FunctionContext *)help_getAppChangelogWithDeviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion langCode:(NSString *)langCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1537966002; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"help.getAppChangelog"]; } + (Api48_FunctionContext *)updates_getState { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -304838614; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"updates.getState"]; } + (Api48_FunctionContext *)updates_subscribeWithUsers:(NSArray *)users { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -72144472; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"updates.subscribe"]; } + (Api48_FunctionContext *)updates_unsubscribeWithUsers:(NSArray *)users { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 138751864; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count]; for (id users_item in users) { [users_copy addObject:users_item]; } id users_result = [Api48__Serializer addSerializerToObject:users_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; users_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"updates.unsubscribe"]; } + (Api48_FunctionContext *)updates_getDifferenceWithPts:(NSNumber *)pts date:(NSNumber *)date qts:(NSNumber *)qts { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 168039573; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:date] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:qts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"updates.getDifference"]; } + (Api48_FunctionContext *)updates_getChannelDifferenceWithChannel:(Api48_InputChannel *)channel filter:(Api48_ChannelMessagesFilter *)filter pts:(NSNumber *)pts limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1154295872; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:channel data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:filter data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:pts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"updates.getChannelDifference"]; } + (Api48_FunctionContext *)upload_saveFilePartWithFileId:(NSNumber *)fileId filePart:(NSNumber *)filePart bytes:(NSData *)bytes { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1291540959; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fileId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:filePart] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"upload.saveFilePart"]; } + (Api48_FunctionContext *)upload_getFileWithLocation:(Api48_InputFileLocation *)location offset:(NSNumber *)offset limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -475607115; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:location data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"upload.getFile"]; } + (Api48_FunctionContext *)upload_saveBigFilePartWithFileId:(NSNumber *)fileId filePart:(NSNumber *)filePart fileTotalParts:(NSNumber *)fileTotalParts bytes:(NSData *)bytes { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -562337987; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fileId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:filePart] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:fileTotalParts] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[bytes copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"upload.saveBigFilePart"]; } + (Api48_FunctionContext *)account_unregisterDeviceWithTokenType:(NSNumber *)tokenType token:(NSString *)token { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1707432768; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:tokenType] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[token copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.unregisterDevice"]; } + (Api48_FunctionContext *)account_updateNotifySettingsWithPeer:(Api48_InputNotifyPeer *)peer settings:(Api48_InputPeerNotifySettings *)settings { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -2067899501; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:settings data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.updateNotifySettings"]; } + (Api48_FunctionContext *)account_getNotifySettingsWithPeer:(Api48_InputNotifyPeer *)peer { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 313765169; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:peer data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.getNotifySettings"]; } + (Api48_FunctionContext *)account_resetNotifySettings { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -612493497; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.resetNotifySettings"]; } + (Api48_FunctionContext *)account_updateProfileWithFirstName:(NSString *)firstName lastName:(NSString *)lastName { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -259486360; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[firstName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[lastName copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.updateProfile"]; } + (Api48_FunctionContext *)account_updateStatusWithOffline:(Api48_Bool *)offline { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1713919532; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:offline data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.updateStatus"]; } + (Api48_FunctionContext *)account_getWallPapers { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1068696894; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api48__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil) return nil; return result; } metadata:@"account.getWallPapers"]; } + (Api48_FunctionContext *)account_registerDeviceWithTokenType:(NSNumber *)tokenType token:(NSString *)token deviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion appSandbox:(Api48_Bool *)appSandbox langCode:(NSString *)langCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1147957548; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:tokenType] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[token copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:appSandbox data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[langCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.registerDevice"]; } + (Api48_FunctionContext *)account_checkUsernameWithUsername:(NSString *)username { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 655677548; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.checkUsername"]; } + (Api48_FunctionContext *)account_updateUsernameWithUsername:(NSString *)username { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1040964988; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[username copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.updateUsername"]; } + (Api48_FunctionContext *)account_getPrivacyWithKey:(Api48_InputPrivacyKey *)key { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -623130288; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:key data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.getPrivacy"]; } + (Api48_FunctionContext *)account_setPrivacyWithKey:(Api48_InputPrivacyKey *)key rules:(NSArray *)rules { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -906486552; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:key data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject: ({ NSMutableArray *rules_copy = [[NSMutableArray alloc] initWithCapacity:rules.count]; for (id rules_item in rules) { [rules_copy addObject:rules_item]; } id rules_result = [Api48__Serializer addSerializerToObject:rules_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; rules_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.setPrivacy"]; } + (Api48_FunctionContext *)account_deleteAccountWithReason:(NSString *)reason { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1099779595; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[reason copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.deleteAccount"]; } + (Api48_FunctionContext *)account_getAccountTTL { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 150761757; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.getAccountTTL"]; } + (Api48_FunctionContext *)account_setAccountTTLWithTtl:(Api48_AccountDaysTTL *)ttl { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 608323678; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:ttl data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.setAccountTTL"]; } + (Api48_FunctionContext *)account_sendChangePhoneCodeWithPhoneNumber:(NSString *)phoneNumber { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1543001868; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.sendChangePhoneCode"]; } + (Api48_FunctionContext *)account_changePhoneWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash phoneCode:(NSString *)phoneCode { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1891839707; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[phoneCode copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.changePhone"]; } + (Api48_FunctionContext *)account_setPasswordWithCurrentPasswordHash:(NSData *)currentPasswordHash pnewSalt:(NSData *)pnewSalt pnewPasswordHash:(NSData *)pnewPasswordHash hint:(NSString *)hint { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -584430193; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[currentPasswordHash copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[pnewSalt copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[pnewPasswordHash copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[hint copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.setPassword"]; } + (Api48_FunctionContext *)account_updateDeviceLockedWithPeriod:(NSNumber *)period { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 954152242; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:period] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.updateDeviceLocked"]; } + (Api48_FunctionContext *)account_getAuthorizations { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -484392616; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.getAuthorizations"]; } + (Api48_FunctionContext *)account_resetAuthorizationWithPhash:(NSNumber *)phash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -545786948; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:phash] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.resetAuthorization"]; } + (Api48_FunctionContext *)account_getPassword { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1418342645; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.getPassword"]; } + (Api48_FunctionContext *)account_getPasswordSettingsWithCurrentPasswordHash:(NSData *)currentPasswordHash { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1131605573; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[currentPasswordHash copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.getPasswordSettings"]; } + (Api48_FunctionContext *)account_updatePasswordSettingsWithCurrentPasswordHash:(NSData *)currentPasswordHash pnewSettings:(Api48_account_PasswordInputSettings *)pnewSettings { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -92517498; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[currentPasswordHash copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:pnewSettings data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"account.updatePasswordSettings"]; } + (Api48_FunctionContext *)photos_getPhotosWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 20076782; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:pid_item]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.getPhotos"]; } + (Api48_FunctionContext *)photos_getWallWithUserId:(Api48_InputUser *)userId offset:(NSNumber *)offset maxId:(NSNumber *)maxId limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 34033964; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.getWall"]; } + (Api48_FunctionContext *)photos_readWallWithUserId:(Api48_InputUser *)userId maxId:(NSNumber *)maxId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1170316907; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.readWall"]; } + (Api48_FunctionContext *)photos_editPhotoWithPid:(Api48_InputPhoto *)pid caption:(NSString *)caption geoPoint:(Api48_InputGeoPoint *)geoPoint { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1364846786; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:geoPoint data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.editPhoto"]; } + (Api48_FunctionContext *)photos_updateProfilePhotoWithPid:(Api48_InputPhoto *)pid crop:(Api48_InputPhotoCrop *)crop { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -285902432; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:crop data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.updateProfilePhoto"]; } + (Api48_FunctionContext *)photos_uploadPhotoWithFile:(Api48_InputFile *)file caption:(NSString *)caption geoPoint:(Api48_InputGeoPoint *)geoPoint { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1688640082; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:file data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:geoPoint data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.uploadPhoto"]; } + (Api48_FunctionContext *)photos_uploadProfilePhotoWithFile:(Api48_InputFile *)file caption:(NSString *)caption geoPoint:(Api48_InputGeoPoint *)geoPoint crop:(Api48_InputPhotoCrop *)crop { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -720397176; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:file data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[caption copy] serializer:[[Api48_BuiltinSerializer_String alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:geoPoint data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:crop data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.uploadProfilePhoto"]; } + (Api48_FunctionContext *)photos_deletePhotosWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -2016444625; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:pid_item]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil) return nil; return result; } metadata:@"photos.deletePhotos"]; } + (Api48_FunctionContext *)photos_restorePhotosWithPid:(NSArray *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 602134380; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject: ({ NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count]; for (id pid_item in pid) { [pid_copy addObject:pid_item]; } id pid_result = [Api48__Serializer addSerializerToObject:pid_copy serializer:[[Api48__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data) { int32_t count = (int32_t)object.count; [data appendBytes:(void *)&count length:4]; for (id item in object) { if (![Api48__Environment serializeObject:item data:data addSignature:true]) return false; } return true; }]]; pid_result;}) data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api48__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil) return nil; return result; } metadata:@"photos.restorePhotos"]; } + (Api48_FunctionContext *)photos_getUserPhotosWithUserId:(Api48_InputUser *)userId offset:(NSNumber *)offset maxId:(NSNumber *)maxId limit:(NSNumber *)limit { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -1848823128; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:offset] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:maxId] serializer:[[Api48_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[[Api48__Number alloc] initWithNumber:limit] serializer:[[Api48_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"photos.getUserPhotos"]; } + (Api48_FunctionContext *)phone_getDhConfig { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = -999155058; [_data appendBytes:&_functionSignature length:4]; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"phone.getDhConfig"]; } + (Api48_FunctionContext *)phone_requestCallWithUserId:(Api48_InputUser *)userId { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 270107117; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:userId data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"phone.requestCall"]; } + (Api48_FunctionContext *)phone_confirmCallWithPid:(Api48_InputPhoneCall *)pid aOrB:(NSData *)aOrB { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 1043872105; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; if (![Api48__Environment serializeObject:[Api48__Serializer addSerializerToObject:[aOrB copy] serializer:[[Api48_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"phone.confirmCall"]; } + (Api48_FunctionContext *)phone_declineCallWithPid:(Api48_InputPhoneCall *)pid { NSMutableData *_data = [[NSMutableData alloc] init]; int32_t _functionSignature = 983145256; [_data appendBytes:&_functionSignature length:4]; if (![Api48__Environment serializeObject:pid data:_data addSignature:true]) return false; return [[Api48_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) { id result = nil; NSUInteger __offset = 0; NSUInteger *_offset = &__offset; int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4; if ((result = [Api48__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil) return nil; return result; } metadata:@"phone.declineCall"]; } @end