Class: MTProto::Type::AuthKey::ReqPqMulti
- Inherits:
-
Object
- Object
- MTProto::Type::AuthKey::ReqPqMulti
- Defined in:
- lib/mtproto/type/auth_key/req_pq_multi.rb
Constant Summary collapse
- CONSTRUCTOR =
0xbe7e8ef1
Class Method Summary collapse
Class Method Details
.build(nonce) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/mtproto/type/auth_key/req_pq_multi.rb', line 9 def self.build(nonce) raise ArgumentError, 'Nonce must be 16 bytes' unless nonce.bytesize == 16 constructor = [CONSTRUCTOR].pack('L<') constructor + nonce end |