Class: MTProto::TL::GetContacts
- Inherits:
-
Object
- Object
- MTProto::TL::GetContacts
- Includes:
- Binary
- Defined in:
- lib/mtproto/tl/objects/get_contacts.rb
Instance Method Summary collapse
-
#initialize(hash: 0) ⇒ GetContacts
constructor
A new instance of GetContacts.
- #serialize ⇒ Object
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
#serialize ⇒ Object
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 |