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