UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

33 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TelegramApi = void 0; class TelegramApi { name = 'telegramApi'; displayName = 'Telegram API'; documentationUrl = 'telegram'; properties = [ { displayName: 'Access Token', name: 'accessToken', type: 'string', typeOptions: { password: true }, default: '', 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 = { request: { baseURL: '={{$credentials.baseUrl}}/bot{{$credentials.accessToken}}', url: '/getMe', }, }; } exports.TelegramApi = TelegramApi; //# sourceMappingURL=TelegramApi.credentials.js.map