Archive
Archive or unarchive a chat
chats.archive(strchat_id, ChatArchiveParams**kwargs) -> BaseResponse
/v1/chats/{chatID}/archive
Archive or unarchive a chat. Set archived=true to move to archive, archived=false to move back to inbox
Parameters
chat_id: str
Unique identifier of the chat.
True to archive, false to unarchive
Returns
Archive or unarchive a chat
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token="My Access Token",
)
base_response = client.chats.archive(
chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
)
print(base_response.success)
{
"success": true,
"error": "error"
}
Returns Examples
{
"success": true,
"error": "error"
}