bigbuffet-rw/packages/pl-api/lib/params/chats.ts
marcin mikołajczak 7b183e5c60 pl-api: Update docs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-10-29 22:44:28 +01:00

28 lines
486 B
TypeScript

import { PaginationParams, WithMutedParam } from './common';
/**
* @category Request params
*/
type GetChatsParams = PaginationParams & WithMutedParam;
/**
* @category Request params
*/
type GetChatMessagesParams = PaginationParams;
/**
* @category Request params
*/
type CreateChatMessageParams = {
content?: string;
media_id: string;
} | {
content: string;
media_id?: string;
};
export type {
GetChatsParams,
GetChatMessagesParams,
CreateChatMessageParams,
};