telegramTrigger.json•4.74 kB
{
"nodeType": "n8n-nodes-base.telegramTrigger",
"displayName": "Telegram Trigger",
"description": "Starts the workflow on a Telegram update",
"version": [
1,
1.1,
1.2
],
"properties": [
{
"name": "telegramTriggerNotice",
"displayName": "Due to Telegram API limitations, you can use just one Telegram trigger for each bot at a time",
"type": "notice",
"default": ""
},
{
"name": "updates",
"displayName": "Trigger On",
"type": "multiOptions",
"default": [],
"description": "The updates to listen to",
"required": true,
"options": [
{
"name": "*",
"value": "*",
"description": "All updates"
},
{
"name": "Callback Query",
"value": "callback_query",
"description": "Trigger on new incoming callback query"
},
{
"name": "Channel Post",
"value": "channel_post",
"description": "Trigger on new incoming channel post of any kind — text, photo, sticker, etc"
},
{
"name": "Edited Channel Post",
"value": "edited_channel_post",
"description": "Trigger on new version of a channel post that is known to the bot and was edited"
},
{
"name": "Edited Message",
"value": "edited_message",
"description": "Trigger on new version of a message that is known to the bot and was edited"
},
{
"name": "Inline Query",
"value": "inline_query",
"description": "Trigger on new incoming inline query"
},
{
"name": "Message",
"value": "message",
"description": "Trigger on new incoming message of any kind — text, photo, sticker, etc"
},
{
"name": "Poll",
"value": "poll",
"description": "Trigger on new poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot."
},
{
"name": "Pre-Checkout Query",
"value": "pre_checkout_query",
"description": "Trigger on new incoming pre-checkout query. Contains full information about checkout."
},
{
"name": "Shipping Query",
"value": "shipping_query",
"description": "Trigger on new incoming shipping query. Only for invoices with flexible price."
}
]
},
{
"name": "attachmentNotice",
"displayName": "Every uploaded attachment, even if sent in a group, will trigger a separate event. You can identify that an attachment belongs to a certain group by <code>media_group_id</code> .",
"type": "notice",
"default": ""
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Telegram delivers the image in multiple sizes. By default, just the large image would be downloaded. If you want to change the size, set the field 'Image Size'.",
"placeholder": "Add Field",
"options": [
{
"name": "download",
"displayName": "Download Images/Files",
"type": "boolean",
"default": false
},
{
"name": "imageSize",
"displayName": "Image Size",
"type": "options",
"displayOptions": {
"show": {
"download": [
true
]
}
},
"options": [
{
"name": "Small",
"value": "small"
},
{
"name": "Medium",
"value": "medium"
},
{
"name": "Large",
"value": "large"
},
{
"name": "Extra Large",
"value": "extraLarge"
}
],
"default": "large",
"description": "The size of the image to be downloaded"
},
{
"name": "chatIds",
"displayName": "Restrict to Chat IDs",
"type": "string",
"default": "",
"description": "The chat IDs to restrict the trigger to. Multiple can be defined separated by comma."
},
{
"name": "userIds",
"displayName": "Restrict to User IDs",
"type": "string",
"default": "",
"description": "The user IDs to restrict the trigger to. Multiple can be defined separated by comma."
}
]
}
],
"credentialsConfig": [
{
"name": "telegramApi",
"required": true
}
],
"io": {},
"wiring": {}
}