Class: MTProto::TL::GetFullChannel

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

Constant Summary collapse

CONSTRUCTOR =
0x08736a09

Instance Method Summary collapse

Methods included from Binary

#b_u32, #b_u64, #u32_b, #u64_b

Constructor Details

#initialize(channel:) ⇒ GetFullChannel

Returns a new instance of GetFullChannel.



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

def initialize(channel:)
  @channel = channel
end

Instance Method Details

#serializeObject



14
15
16
17
18
# File 'lib/mtproto/tl/objects/get_full_channel.rb', line 14

def serialize
  result = u32_b(CONSTRUCTOR)
  result += serialize_input_channel
  result
end