mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bump version
This commit is contained in:
43 files changed
+96
-53
No files matched your search
@@ -13,6 +13,7 @@ export default class TelegramService extends Service {
|
||||
token: Schema.string().role('secret').required(),
|
||||
botLogin: Schema.string().required(),
|
||||
endpoint: Schema.string().default('https://api.telegram.org/bot'),
|
||||
canRegister: Schema.boolean().default(false),
|
||||
});
|
||||
|
||||
constructor(ctx: Context, config: ReturnType<typeof TelegramService.Config>) {
|
||||
@@ -21,6 +22,7 @@ export default class TelegramService extends Service {
|
||||
text: 'Login with Telegram',
|
||||
name: 'Telegram',
|
||||
icon,
|
||||
canRegister: config.canRegister,
|
||||
callback: async function callback({ payload }) {
|
||||
const parsed = JSON.parse(payload);
|
||||
const hash = parsed.hash;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "@hydrooj/telegram",
|
||||
"version": "0.0.1"
|
||||
"version": "0.0.2-beta.0"
|
||||
}
|
||||
Reference in new issue
Block a user