mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-06 09:28:34 +00:00
22 lines
642 B
TypeScript
22 lines
642 B
TypeScript
import type { ChannelUiContribution } from "@/channel-plugins/types";
|
|
import { chatAppGuideUrl } from "@/components/settings/channels/catalog";
|
|
|
|
export default {
|
|
presentation: {
|
|
displayName: "Telegram",
|
|
initials: "TG",
|
|
color: "#229ED9",
|
|
logoUrl: "https://telegram.org/favicon.ico",
|
|
setup: {
|
|
mode: "credentials",
|
|
docsUrl: chatAppGuideUrl("telegram"),
|
|
fields: [
|
|
{ key: "channels.telegram.token" },
|
|
{ key: "channels.telegram.proxy" },
|
|
{ key: "channels.telegram.allowFrom" },
|
|
{ key: "channels.telegram.groupPolicy" },
|
|
],
|
|
},
|
|
},
|
|
} satisfies ChannelUiContribution;
|