Class: MTProto::TL::ChannelsDeleteMessages
- Inherits:
-
Object
- Object
- MTProto::TL::ChannelsDeleteMessages
- Includes:
- Binary
- Defined in:
- lib/mtproto/tl/objects/channels_delete_messages.rb
Constant Summary collapse
- CONSTRUCTOR =
0x84c1fd4e
Instance Method Summary collapse
-
#initialize(channel:, ids:) ⇒ ChannelsDeleteMessages
constructor
A new instance of ChannelsDeleteMessages.
- #serialize ⇒ Object
Methods included from Binary
#b_u32, #b_u64, #u32_b, #u64_b
Constructor Details
#initialize(channel:, ids:) ⇒ ChannelsDeleteMessages
Returns a new instance of ChannelsDeleteMessages.
10 11 12 13 |
# File 'lib/mtproto/tl/objects/channels_delete_messages.rb', line 10 def initialize(channel:, ids:) @channel = channel @ids = ids end |
Instance Method Details
#serialize ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/mtproto/tl/objects/channels_delete_messages.rb', line 15 def serialize result = u32_b(CONSTRUCTOR) result += serialize_input_channel result += u32_b(Constructors::VECTOR) + u32_b(@ids.length) @ids.each { |id| result += u32_b(id) } result end |