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:
UsherFall
2023-08-19 12:33:00 +08:00
committed by GitHub
parent e5a189e0f4
commit 914128a78a
10 changed files with 396 additions and 18 deletions

View File

@ -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 [];
}