This commit is contained in:
@@ -182,16 +182,18 @@ export async function updateMessageStatus(
|
||||
});
|
||||
}
|
||||
|
||||
export async function forwardMessage(messageId: number, targetChatId: number): Promise<Message> {
|
||||
export async function forwardMessage(messageId: number, targetChatId: number, includeAuthor = true): Promise<Message> {
|
||||
const { data } = await http.post<Message>(`/messages/${messageId}/forward`, {
|
||||
target_chat_id: targetChatId
|
||||
target_chat_id: targetChatId,
|
||||
include_author: includeAuthor
|
||||
});
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function forwardMessageBulk(messageId: number, targetChatIds: number[]): Promise<Message[]> {
|
||||
export async function forwardMessageBulk(messageId: number, targetChatIds: number[], includeAuthor = true): Promise<Message[]> {
|
||||
const { data } = await http.post<Message[]>(`/messages/${messageId}/forward-bulk`, {
|
||||
target_chat_ids: targetChatIds
|
||||
target_chat_ids: targetChatIds,
|
||||
include_author: includeAuthor
|
||||
});
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user