n8n-nodes-telegram-mtproto
Version:
Telegram MTPROTO API integration for n8n - Real-time new message listening and automation
49 lines • 1.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TelegramMTPROTOApi = void 0;
class TelegramMTPROTOApi {
constructor() {
this.name = 'telegramMTPROTOApi';
this.displayName = 'Personal Telegram MTPROTO API';
this.documentationUrl = 'https://core.telegram.org/api/obtaining_api_id';
this.properties = [
{
displayName: 'App api_id',
name: 'apiId',
type: 'string',
placeholder: '12348745646878',
default: '',
description: 'Your API ID from https://my.telegram.org/apps',
required: true,
},
{
displayName: 'App api_hash',
name: 'apiHash',
type: 'string',
placeholder: '17d2f8ab587',
default: '',
description: 'Your API Hash from https://my.telegram.org/apps',
required: true,
},
{
displayName: 'Phone Number',
name: 'phoneNumber',
type: 'string',
placeholder: '+1234567890',
default: '',
description: 'Your phone number associated with the Telegram account (in international format)',
required: true,
},
{
displayName: 'Session string',
name: 'sessionString',
type: 'string',
default: '',
description: 'Your session string (try bun run test:connection to generate one)',
required: true,
},
];
}
}
exports.TelegramMTPROTOApi = TelegramMTPROTOApi;
//# sourceMappingURL=TelegramMTPROTOApi.credentials.js.map