Class: MTProto::Type::RPC::Contacts::GetContacts

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

Class Method Summary collapse

Class Method Details

.build(hash: 0) ⇒ Object



8
9
10
11
12
13
# File 'lib/mtproto/type/rpc/contacts/get_contacts.rb', line 8

def self.build(hash: 0)
  # contacts.getContacts#22c6aa08 hash:int = contacts.Contacts;
  data = [0x22c6aa08].pack('L<')
  data += [hash].pack('l<')
  data
end