mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
fix: Support Telegram Notification provider (#2225)
* fear: support telegram provider * fix: fix telegram logo * fix: fix telegram bot package * Update telegram.go * Update notification.go --------- Co-authored-by: hsluoyz <hsluoyz@qq.com>
This commit is contained in:
@ -271,6 +271,12 @@ export const OtherProviderInfo = {
|
||||
url: "https://onboard.blocknative.com/",
|
||||
},
|
||||
},
|
||||
Notification: {
|
||||
"Telegram": {
|
||||
logo: `${StaticBaseUrl}/img/social_telegram.png`,
|
||||
url: "https://telegram.org/",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export function initCountries() {
|
||||
@ -957,6 +963,10 @@ export function getProviderTypeOptions(category) {
|
||||
{id: "MetaMask", name: "MetaMask"},
|
||||
{id: "Web3Onboard", name: "Web3-Onboard"},
|
||||
]);
|
||||
} else if (category === "Notification") {
|
||||
return ([
|
||||
{id: "Telegram", name: "Telegram"},
|
||||
]);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user