Exemplo n.º 1
0
 def get_structure(self):
     return ("peer", InputPeer()), ("media", InputMedia()), ("random_id",
                                                             TL_long()),
Exemplo n.º 2
0
	def get_structure(self):
		return ("user_id", TL_int()), ("client_id", TL_long()),
Exemplo n.º 3
0
	def get_structure(self):
		return ("id", TL_long()), ("parts", TL_int()), ("name", TL_string()),
Exemplo n.º 4
0
	def get_structure(self):
		return ("id", TL_long()),
Exemplo n.º 5
0
	def get_structure(self):
		return ("user_id", TL_int()), ("access_hash", TL_long()),
Exemplo n.º 6
0
	def get_structure(self):
		return ("dc_id", TL_int()), ("volume_id", TL_long()), ("local_id", TL_int()), ("secret", TL_long()),
Exemplo n.º 7
0
	def get_structure(self):
		return ("photo_id", TL_long()), ("photo_small", FileLocation()), ("photo_big", FileLocation()),
Exemplo n.º 8
0
 def get_structure(self):
     return ("req_msg_id", TL_long()), ("info", TL_string())
Exemplo n.º 9
0
 def get_structure(self):
     return ("msg_ids", Vector(lambda x: TL_long())), ("info", TL_string())
Exemplo n.º 10
0
 def get_structure(self):
     return ("bad_msg_id",
             TL_long()), ("bad_msg_seqno",
                          TL_int()), ("error_code",
                                      TL_int()), ("new_server_salt",
                                                  TL_long())
Exemplo n.º 11
0
 def get_structure(self):
     return "msg_ids", Vector(lambda x: TL_long())
Exemplo n.º 12
0
 def get_structure(self):
     return ("peer",
             InputEncryptedChat()), ("random_id", TL_long()), ("data",
                                                               TL_bytes()),
Exemplo n.º 13
0
 def get_structure(self):
     return ("peer",
             InputEncryptedChat()), ("g_b", TL_bytes()), ("key_fingerprint",
                                                          TL_long()),
Exemplo n.º 14
0
 def get_structure(self):
     return ("peer", InputPeer()), ("id", TL_int()), ("random_id",
                                                      TL_long()),
Exemplo n.º 15
0
	def get_structure(self):
		return ("id", TL_long()), ("access_hash", TL_long()), ("user_id", TL_int()), ("date", TL_int()), (
			"duration", TL_int()), ("mime_type", TL_string()), ("size", TL_int()), ("dc_id", TL_int()),
Exemplo n.º 16
0
	def get_structure(self):
		return ("perm_auth_key_id", TL_long()), ("nonce", TL_long()), ("expires_at", TL_int()), ("encrypted_message", TL_bytes()), 
Exemplo n.º 17
0
	def get_structure(self):
		return ("time", TL_double()), ("type", TL_string()), ("peer", TL_long()), ("data", TL_string()),
Exemplo n.º 18
0
 def _compute_fingerprint(n, e):
     tln = TL_int_as_string(n, size=(n.bit_length() + 7) // 8)
     tle = TL_int_as_string(e, size=(e.bit_length() + 7) // 8)
     hashed_data = Hash.sha1(tln.serialize() + tle.serialize())
     l = TL_long(hashed_data[-8:])
     return l.get()
Exemplo n.º 19
0
	def get_structure(self):
		return ("id", TL_int()), ("first_name", TL_string()), ("last_name", TL_string()), ("username", TL_string()), (
			"access_hash", TL_long()), ("photo", UserProfilePhoto()), ("status", UserStatus()),
Exemplo n.º 20
0
	def get_structure(self):
		return ("id", TL_int()), ("access_hash", TL_long()), ("date", TL_int()), ("admin_id", TL_int()), (
			"participant_id", TL_int()), ("g_a", TL_bytes()),
Exemplo n.º 21
0
	def get_structure(self):
		return ("id", TL_long()), ("access_hash", TL_long()), ("user_id", TL_int()), ("date", TL_int()), (
			"caption", TL_string()), ("geo", GeoPoint()), ("sizes", Vector()),
Exemplo n.º 22
0
	def get_structure(self):
		return ("id", TL_int()), ("access_hash", TL_long()), ("date", TL_int()), ("admin_id", TL_int()), (
			"participant_id", TL_int()), ("g_a_or_b", TL_bytes()), ("key_fingerprint", TL_long()),
Exemplo n.º 23
0
	def get_structure(self):
		return ("id", TL_long()), ("access_hash", TL_long()), ("user_id", TL_int()), \
			   ("date", TL_int()), ("caption", TL_string()), ("duration", TL_int()), \
			   ("mime_type", TL_string()), ("size", TL_int()), ("thumb", PhotoSize()), \
			   ("dc_id", TL_int()), ("w", TL_int()), ("h", TL_int()),
Exemplo n.º 24
0
	def get_structure(self):
		return ("id", TL_long()), ("access_hash", TL_long()), ("size", TL_int()), ("dc_id", TL_int()), (
			"key_fingerprint", TL_int()),
Exemplo n.º 25
0
	def get_structure(self):
		return ("client_id", TL_long()), ("phone", TL_string()), ("first_name", TL_string()), (
			"last_name", TL_string()),
Exemplo n.º 26
0
	def get_structure(self):
		return ("id", TL_long()), ("parts", TL_int()), ("key_fingerprint", TL_int()),
Exemplo n.º 27
0
	def get_structure(self):
		return ("id", TL_int()), ("random_id", TL_long()),
Exemplo n.º 28
0
	def get_structure(self):
		return ("random_id", TL_long()), ("chat_id", TL_int()), ("date", TL_int()), ("bytes", TL_bytes()),
Exemplo n.º 29
0
	def get_structure(self):
		return ("auth_key_id", TL_long()), ("date", TL_int()), ("device", TL_string()), ("location", TL_string()),
Exemplo n.º 30
0
 def get_structure(self):
     return ("peer", InputPeer()), ("message", TL_string()), ("random_id",
                                                              TL_long()),