✨ feat(config): Webhook Domain
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from './announcement';
|
||||
|
||||
@@ -167,6 +167,14 @@ export async function updateRegisterConfig(
|
||||
});
|
||||
}
|
||||
|
||||
/** setting telegram bot POST /v1/admin/system/setting_telegram_bot */
|
||||
export async function settingTelegramBot(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/system/setting_telegram_bot', {
|
||||
method: 'POST',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get site config GET /v1/admin/system/site_config */
|
||||
export async function getSiteConfig(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.SiteConfig }>('/v1/admin/system/site_config', {
|
||||
|
||||
+1
@@ -762,6 +762,7 @@ declare namespace API {
|
||||
telegram_bot_token: string;
|
||||
telegram_group_url: string;
|
||||
telegram_notify: boolean;
|
||||
telegram_web_hook_domain: string;
|
||||
};
|
||||
|
||||
type TestEmailSmtpRequest = {
|
||||
|
||||
Reference in New Issue
Block a user