Class: MTProto::TL::InvokeWithLayer

Inherits:
Object
  • Object
show all
Includes:
Binary
Defined in:
lib/mtproto/tl/objects/invoke_with_layer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Binary

#b_u32, #b_u64, #u32_b, #u64_b

Constructor Details

#initialize(layer:, query:) ⇒ InvokeWithLayer

Returns a new instance of InvokeWithLayer.



10
11
12
13
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 10

def initialize(layer:, query:)
  @layer = layer
  @query = query
end

Instance Attribute Details

#layerObject (readonly)

Returns the value of attribute layer.



8
9
10
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 8

def layer
  @layer
end

#queryObject (readonly)

Returns the value of attribute query.



8
9
10
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 8

def query
  @query
end

Instance Method Details

#serializeObject



15
16
17
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 15

def serialize
  u32_b(Constructors::INVOKE_WITH_LAYER) + u32_b(@layer) + @query.serialize
end