예제 #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
파일: servers_pk.py 프로젝트: krow89/krgram
 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()),