29 lines
826 B
TypeScript
29 lines
826 B
TypeScript
export function searchMessages(query: string): Promise<Array<any>>;
|
|
export function searchConversations(query: string): Promise<Array<any>>;
|
|
export function searchMessagesInConversation(
|
|
query: string,
|
|
conversationId: string
|
|
): Promise<Array<any>>;
|
|
|
|
export function updateStickerLastUsed(
|
|
packId: string,
|
|
stickerId: number,
|
|
time: number
|
|
): Promise<void>;
|
|
export function updateStickerPackStatus(
|
|
packId: string,
|
|
status: 'known' | 'downloaded' | 'installed' | 'error' | 'pending',
|
|
options?: { timestamp: number }
|
|
): Promise<void>;
|
|
|
|
export function getRecentStickers(): Promise<
|
|
Array<{
|
|
id: number;
|
|
packId: string;
|
|
}>
|
|
>;
|
|
|
|
export function updateEmojiUsage(shortName: string): Promise<void>;
|
|
export function getRecentEmojis(
|
|
limit: number
|
|
): Promise<Array<{ shortName: string; lastUsage: string }>>;
|