Esempio n. 1
0
 def get_structure(self):
     return ("peer", InputPeer()), ("media", InputMedia()), ("random_id",
                                                             TL_long()),
Esempio n. 2
0
	def get_structure(self):
		return ("user_id", TL_int()), ("client_id", TL_long()),
Esempio n. 3
0
	def get_structure(self):
		return ("id", TL_long()), ("parts", TL_int()), ("name", TL_string()),
Esempio n. 4
0
	def get_structure(self):
		return ("id", TL_long()),
Esempio n. 5
0
	def get_structure(self):
		return ("user_id", TL_int()), ("access_hash", TL_long()),
Esempio n. 6
0
	def get_structure(self):
		return ("dc_id", TL_int()), ("volume_id", TL_long()), ("local_id", TL_int()), ("secret", TL_long()),
Esempio n. 7
0
	def get_structure(self):
		return ("photo_id", TL_long()), ("photo_small", FileLocation()), ("photo_big", FileLocation()),
Esempio n. 8
0
 def get_structure(self):
     return ("req_msg_id", TL_long()), ("info", TL_string())
Esempio n. 9
0
 def get_structure(self):
     return ("msg_ids", Vector(lambda x: TL_long())), ("info", TL_string())
Esempio 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())
Esempio n. 11
0
 def get_structure(self):
     return "msg_ids", Vector(lambda x: TL_long())
Esempio n. 12
0
 def get_structure(self):
     return ("peer",
             InputEncryptedChat()), ("random_id", TL_long()), ("data",
                                                               TL_bytes()),
Esempio n. 13
0
 def get_structure(self):
     return ("peer",
             InputEncryptedChat()), ("g_b", TL_bytes()), ("key_fingerprint",
                                                          TL_long()),
Esempio n. 14
0
 def get_structure(self):
     return ("peer", InputPeer()), ("id", TL_int()), ("random_id",
                                                      TL_long()),
Esempio 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()),
Esempio 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()), 
Esempio n. 17
0
	def get_structure(self):
		return ("time", TL_double()), ("type", TL_string()), ("peer", TL_long()), ("data", TL_string()),
Esempio 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()
Esempio 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()),
Esempio 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()),
Esempio 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()),
Esempio 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()),
Esempio 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()),
Esempio 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()),
Esempio n. 25
0
	def get_structure(self):
		return ("client_id", TL_long()), ("phone", TL_string()), ("first_name", TL_string()), (
			"last_name", TL_string()),
Esempio n. 26
0
	def get_structure(self):
		return ("id", TL_long()), ("parts", TL_int()), ("key_fingerprint", TL_int()),
Esempio n. 27
0
	def get_structure(self):
		return ("id", TL_int()), ("random_id", TL_long()),
Esempio n. 28
0
	def get_structure(self):
		return ("random_id", TL_long()), ("chat_id", TL_int()), ("date", TL_int()), ("bytes", TL_bytes()),
Esempio n. 29
0
	def get_structure(self):
		return ("auth_key_id", TL_long()), ("date", TL_int()), ("device", TL_string()), ("location", TL_string()),
Esempio n. 30
0
 def get_structure(self):
     return ("peer", InputPeer()), ("message", TL_string()), ("random_id",
                                                              TL_long()),