Class: MTProto::Type::RPC::Users::GetUsers

Inherits:
Object
  • Object
show all
Defined in:
lib/mtproto/type/rpc/users/get_users.rb

Constant Summary collapse

CONSTRUCTOR =
0x0d91a548
INPUT_USER_SELF =
0xf7c1b13f

Class Method Summary collapse

Class Method Details

.buildObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/mtproto/type/rpc/users/get_users.rb', line 11

def self.build
  query = [CONSTRUCTOR].pack('L<')

  # Vector of InputUser with one element: inputUserSelf
  query += [0x1cb5c415].pack('L<') # vector constructor
  query += [1].pack('L<') # count = 1
  query += [INPUT_USER_SELF].pack('L<') # inputUserSelf

  query
end