Replies: 2 comments 4 replies
-
@kallyas not so much. These are actually meant to be mixin classes or sorts. Maybe you'll need access to the other API for typing reasons mainly, but these classes are meant to be used with the context class. You can check out the context.py file. class StickerAPI:
pass |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hopefully I Understood this correctly @ht-thomas class StickerAPI:
def __init__(self,context):
self.url = context.url
self.parser = context.parser
self._get = context.get
self._post = context.post
async def send_sticker(self,**kwargs):
url = self.url.add_method("sendSticker")
res = await self._post(url = url,body = kwargs)
return self.parser.parse(res) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To add functionality to api module function, Is there dependency from the main api? @ht-thomas
Beta Was this translation helpful? Give feedback.
All reactions