mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(Telegram Node): Add support for local bot api server (#8437)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
@@ -17,11 +17,18 @@ export class TelegramApi implements ICredentialType {
|
||||
description:
|
||||
'Chat with the <a href="https://telegram.me/botfather">bot father</a> to obtain the access token',
|
||||
},
|
||||
{
|
||||
displayName: 'Base URL',
|
||||
name: 'baseUrl',
|
||||
type: 'string',
|
||||
default: 'https://api.telegram.org',
|
||||
description: 'Base URL for Telegram Bot API',
|
||||
},
|
||||
];
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '=https://api.telegram.org/bot{{$credentials.accessToken}}',
|
||||
baseURL: '={{$credentials.baseUrl}}/bot{{$credentials.accessToken}}',
|
||||
url: '/getMe',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user