feat(telegram-bot): add authentication support
This commit is contained in:
21
packages/backend/src/apps/telegram-bot/auth/index.ts
Normal file
21
packages/backend/src/apps/telegram-bot/auth/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import verifyCredentials from './verify-credentials';
|
||||
import isStillVerified from './is-still-verified';
|
||||
|
||||
export default {
|
||||
fields: [
|
||||
{
|
||||
key: 'token',
|
||||
label: 'Bot token',
|
||||
type: 'string' as const,
|
||||
required: true,
|
||||
readOnly: false,
|
||||
value: null,
|
||||
placeholder: null,
|
||||
description: 'Bot token which should be retrieved from @botfather.',
|
||||
clickToCopy: false,
|
||||
},
|
||||
],
|
||||
|
||||
verifyCredentials,
|
||||
isStillVerified,
|
||||
};
|
Reference in New Issue
Block a user