feat(messages): support forwarding to multiple chats
This commit is contained in:
@@ -163,6 +163,13 @@ export async function forwardMessage(messageId: number, targetChatId: number): P
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function forwardMessageBulk(messageId: number, targetChatIds: number[]): Promise<Message[]> {
|
||||
const { data } = await http.post<Message[]>(`/messages/${messageId}/forward-bulk`, {
|
||||
target_chat_ids: targetChatIds
|
||||
});
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function listMessageReactions(messageId: number): Promise<MessageReaction[]> {
|
||||
const { data } = await http.get<MessageReaction[]>(`/messages/${messageId}/reactions`);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user