0.1.3 • Published 10 months ago
n8n-nodes-telegram-client v0.1.3
n8n-nodes-telegram-client
This is a comprehensive Telegram Client node for n8n that allows you to interact with Telegram as a regular user (not a bot). It provides access to advanced Telegram features that are not available through the regular bot API.
Features
- 🔐 Full user authentication support
- 📝 Complete message operations (send, edit, delete, pin)
- 📸 Media handling (photos, videos, documents)
- 👥 Chat management (join, leave, history)
- 💾 Session management for persistent authentication
- ⚡ Real-time updates and notifications
- 🔒 Secure credential storage
Installation
In n8n:
- Go to Settings > Community Nodes
- Click on Install a node from NPM
- Enter
n8n-nodes-telegram-client
- Click Install
Manual Installation:
npm install n8n-nodes-telegram-client
Configuration
Prerequisites
- Go to my.telegram.org
- Log in and create an application
- Note down your
api_id
andapi_hash
In n8n:
- Go to Credentials
- Click Create New Credentials
- Select Telegram Client API
- Fill in:
- API ID (from my.telegram.org)
- API Hash (from my.telegram.org)
- Phone Number (international format)
- 2FA Password (if enabled)
First Use
- When using the node for the first time, you'll be prompted for a verification code
- Enter the code sent to your Telegram account
- The session will be saved for future use
Usage
Available Operations
Message Operations
sendMessage
: Send text messagesreplyToMessage
: Reply to existing messageseditMessage
: Edit sent messagesdeleteMessages
: Delete messagesforwardMessages
: Forward messagespinMessage
: Pin messages in chats
Media Operations
sendMedia
: Send photos, videos, or documentssendAlbum
: Send multiple media files as an albumdownloadMedia
: Download media from messages
Chat Operations
getChatHistory
: Get chat message historyjoinChat
: Join channels or groupsleaveChat
: Leave channels or groups
Example Usage
Send Message
{
"operation": "sendMessage",
"chatId": "@username or chat_id",
"messageText": "Hello from n8n!"
}
Send Media
{
"operation": "sendMedia",
"chatId": "@username or chat_id",
"filePath": "/path/to/file.jpg",
"mediaType": "photo"
}
Error Handling
The node includes comprehensive error handling:
- Authentication errors
- Network issues
- Invalid parameters
- API limitations
Security
- Credentials are stored securely in n8n
- Session strings are encrypted
- 2FA support included
- No plaintext password storage
Development
Build
npm install
npm run build
Test
npm test
Lint
npm run lint
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
MIT License - see LICENSE file for details
Support
- Create an issue on GitHub
- Contact the maintainer
Acknowledgments
- Telegram Client API
- n8n Community
- Contributors
0.1.3
10 months ago
0.0.27
10 months ago
0.0.26
10 months ago
0.0.25
10 months ago
0.0.24
10 months ago
0.0.23
10 months ago
0.0.22
10 months ago
0.0.21
10 months ago
0.0.20
10 months ago
0.0.19
10 months ago
0.0.18
10 months ago
0.0.17
10 months ago
0.0.16
10 months ago
0.0.15
10 months ago
0.0.14
10 months ago
0.0.13
10 months ago
0.0.12
10 months ago
0.0.11
10 months ago
0.0.10
10 months ago
0.0.9
10 months ago
0.0.8
10 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
10 months ago
0.0.1
10 months ago