2019-10-04 05:18:43 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class TelegramApi implements ICredentialType {
|
|
|
|
name = 'telegramApi';
|
|
|
|
displayName = 'Telegram API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'telegram';
|
2019-10-04 05:18:43 -07:00
|
|
|
properties = [
|
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
2019-11-16 13:33:03 -08:00
|
|
|
description: 'Chat with the <a href="https://telegram.me/botfather">bot father</a> to obtain the access token.',
|
2019-10-04 05:18:43 -07:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|