Class: MTProto::TL::GetContacts

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

Instance Method Summary collapse

Methods included from Binary

#b_u32, #b_u64, #u32_b, #u64_b

Constructor Details

#initialize(hash: 0) ⇒ GetContacts

Returns a new instance of GetContacts.



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

def initialize(hash: 0)
  @hash = hash
end

Instance Method Details

#serializeObject



12
13
14
# File 'lib/mtproto/tl/objects/get_contacts.rb', line 12

def serialize
  u32_b(Constructors::CONTACTS_GET_CONTACTS) + u64_b(@hash)
end