Skip to content

Commit

Permalink
Add managers
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustLigh committed Apr 30, 2024
1 parent 68c463e commit 03c406b
Show file tree
Hide file tree
Showing 4 changed files with 2,195 additions and 2,166 deletions.
19 changes: 19 additions & 0 deletions AminoLightPy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from uuid import uuid4
from typing import BinaryIO, Union
from .managers import Typing, Recording

from .constants import api, upload_media, AminoSession
from .amino_socket import Callbacks, SocketHandler, SocketRequests
Expand Down Expand Up @@ -2145,3 +2146,21 @@ def set_privacy_status(self, isAnonymous: bool = False, getNotifications: bool =

response = self.session.post(f"{api}/g/s/account/visit-settings", json=data)
return response.json()

def typing(self, chatId: str, comId: int = None) -> Typing:
"""
Start typing message in context manager.
**Returns**
- **Success** : :meth:`class <Typing>`
"""
return Typing(self, chatId=chatId, comId=comId)

def recording(self, chatId: str, comId: int = None) -> Recording:
"""
Start recording in context manager.
**Returns**
- **Success** : :meth:`class <Recording>`
"""
return Recording(self, chatId=chatId, comId=comId)
Loading

0 comments on commit 03c406b

Please sign in to comment.