Actions72
- Messages Actions
- Bots Actions
- Updates Actions
- Chats Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member
- Get Chat Member Count
- Leave Chat
- Set Chat Title
- Set Chat Description
- Set Chat Photo
- Delete Chat Photo
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Administrator Custom Title
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Sticker Set
- Delete Chat Sticker Set
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Files Actions
- Inline Queries Actions
- Callback Queries Actions
Overview
This node enables interaction with the Telegram Bot API, allowing users to perform various operations related to Telegram messaging, chats, bots, files, inline queries, and callback queries. Specifically, for the Messages resource and the Send Contact operation, it sends a contact card to a specified Telegram chat.
Use cases include automating sending contact information through Telegram bots in workflows, such as sharing business contacts, customer support details, or emergency contacts directly within Telegram chats.
Example: Automatically send a contact card of a sales representative to a user who requests it via a Telegram bot.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier for the target Telegram chat where the contact will be sent. |
| Contact Data | JSON object containing the contact information to send. This includes fields like phone number, first name, last name, etc., formatted according to Telegram's contact message requirements. |
Output
The node outputs a JSON object representing the response from the Telegram Bot API after sending the contact. This typically includes details about the sent message, such as message ID, date, chat info, and the contact data that was sent.
No binary data output is involved in this operation.
Dependencies
- Requires an active Telegram Bot API token (provided via credentials).
- Requires a valid subscription and API key for the external "N8N Tools API" service used for validation before making Telegram API calls.
- The node uses HTTP requests to communicate with both the N8N Tools API and the Telegram Bot API.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
- Malformed Contact Data: Ensure the JSON provided in the Contact Data property is correctly formatted and contains all required fields expected by Telegram (e.g., phone_number, first_name).
- Chat ID issues: Confirm that the Chat ID is correct and that the bot has permission to send messages to that chat.
- Unknown operation error: This occurs if an unsupported operation is selected; ensure the operation matches one of the supported options.