mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
#import "TLRPCmessages_sendMedia_manual.h"
|
|
|
|
#import "TL/TLMetaScheme.h"
|
|
#import "TLMetaClassStore.h"
|
|
|
|
@implementation TLRPCmessages_sendMedia_manual
|
|
|
|
- (int32_t)TLconstructorSignature
|
|
{
|
|
return 762913713;
|
|
}
|
|
|
|
- (int32_t)TLconstructorName
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
- (Class)responseClass
|
|
{
|
|
return [TLUpdates class];
|
|
}
|
|
|
|
- (int)impliedResponseSignature
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
- (int)layerVersion
|
|
{
|
|
return 26;
|
|
}
|
|
|
|
- (void)TLserialize:(NSOutputStream *)os
|
|
{
|
|
[os writeInt32:_flags];
|
|
|
|
TLMetaClassStore::serializeObject(os, _peer, true);
|
|
|
|
if (_flags & (1 << 0))
|
|
[os writeInt32:_reply_to_msg_id];
|
|
|
|
TLMetaClassStore::serializeObject(os, _media, true);
|
|
[os writeInt64:_random_id];
|
|
}
|
|
|
|
- (id<TLObject>)TLdeserialize:(NSInputStream *)__unused is signature:(int32_t)__unused signature environment:(id<TLSerializationEnvironment>)__unused environment context:(TLSerializationContext *)__unused context error:(__autoreleasing NSError **)__unused error
|
|
{
|
|
TGLog(@"***** TLRPCmessages_sendMedia_manual deserialization not supported");
|
|
return nil;
|
|
}
|
|
|
|
@end
|