n8n-nodes-telegram-green-api
Integration node for Green API in n8n.
This community node allows automation of Telegram interactions using Green API — including messaging, file transfer, contacts, groups, statuses, and instance management.
📖 Overview
The GreenAPI Node provides full access to Green API endpoints, enabling you to send messages, manage chats, groups, and retrieve account information.
Installation
Go to Settings → Community Nodes → Install, then enter @green-api/n8n-nodes-telegram-greenapi
Install via npm
npm install @green-api/n8n-nodes-telegram-greenapi
Restart n8n after installation.
Manual installation
You can also check out the installation guide in the n8n community nodes documentation.
Authentication
To use this node, you need to have an instance and token from Green-API platform and Telegram account:
- Sign up at Green-API
- Create an instance
- Get idInstance and apiTokenInstance
- Authorize the instance in the Console
🧩 Features
| 👤 Account | getStateInstance, reboot, getAccountSettings |
| ✉️ Sending | sendMessage, sendPoll, sendFileByUrl |
| 📥 Receiving | webhookTrigger |
| 📜 Journals | getChatHistory, getMessage, lastIncomingMessages, lastOutgoingMessages |
| 🧾 Queues | showMessagesQueue, clearMessagesQueue |
| 👥 Groups | getGroupData |
| ✅ Readmark | readChat |
| 🧩 Service | getContacts, getContactInfo, checkAccount |
⚙️ Usage Examples
💬 Send Message
{
"operation": "sendMessage",
"chatId": "7596558806",
"message": "Hello from n8n and Green API!"
}
📎 Send File by URL
{
"operation": "sendFileByUrl",
"chatId": "7596558806",
"urlFile": "https://example.com/image.jpg",
"fileName": "photo.jpg"
}
🔄 Check Account
{
"operation": "checkAccount",
"phoneNumber": 77780738519
}
🔗 Resources
👤 Author
Developed by Green API
📧 support@green-api.com
🌍 https://green-api.com/en/
🪪 License
MIT License