@@ -36,9 +36,7 @@ async def send_reaction(self, message_id, reaction, user_id):
3636 :return: the Server Response
3737 """
3838 payload = {"reaction" : add_user_id (reaction , user_id )}
39- return await self .client .post (
40- f"messages/{ message_id } /reaction" , data = payload
41- )
39+ return await self .client .post (f"messages/{ message_id } /reaction" , data = payload )
4240
4341 async def delete_reaction (self , message_id , reaction_type , user_id ):
4442 """
@@ -203,9 +201,7 @@ async def get_replies(self, parent_id, **options):
203201 :param options: Pagination params, ie {limit:10, id_lte: 10}
204202 :return: A response with a list of messages
205203 """
206- return await self .client .get (
207- f"messages/{ parent_id } /replies" , params = options
208- )
204+ return await self .client .get (f"messages/{ parent_id } /replies" , params = options )
209205
210206 async def get_reactions (self , message_id , ** options ):
211207 """
@@ -215,9 +211,7 @@ async def get_reactions(self, message_id, **options):
215211 :param options: Pagination params, ie {"limit":10, "id_lte": 10}
216212 :return: A response with a list of reactions
217213 """
218- return await self .client .get (
219- f"messages/{ message_id } /reactions" , params = options
220- )
214+ return await self .client .get (f"messages/{ message_id } /reactions" , params = options )
221215
222216 async def ban_user (self , target_id , ** options ):
223217 """
@@ -273,11 +267,7 @@ async def delete_image(self, url):
273267 return await self .client .delete (f"{ self .url } /image" , {"url" : url })
274268
275269 async def hide (self , user_id ):
276- return await self .client .post (
277- f"{ self .url } /hide" , data = {"user_id" : user_id }
278- )
270+ return await self .client .post (f"{ self .url } /hide" , data = {"user_id" : user_id })
279271
280272 async def show (self , user_id ):
281- return await self .client .post (
282- f"{ self .url } /show" , data = {"user_id" : user_id }
283- )
273+ return await self .client .post (f"{ self .url } /show" , data = {"user_id" : user_id })
0 commit comments