Class: MTProto::Type::RPC::InvokeWithLayer

Inherits:
Object
  • Object
show all
Defined in:
lib/mtproto/type/rpc/invoke_with_layer.rb

Constant Summary collapse

CONSTRUCTOR =
0xda9b0d0d

Class Method Summary collapse

Class Method Details

.build(layer:, query:) ⇒ Object



11
12
13
14
15
# File 'lib/mtproto/type/rpc/invoke_with_layer.rb', line 11

def self.build(layer:, query:)
  body = [CONSTRUCTOR].pack('L<')
  body += Serializer.serialize_int(layer)
  body + query
end