Telegram Connector Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 22 days ago · toolpack
Send and receive Telegram messages via the Bot API.
Create Telegram bots that send messages, photos, documents, and inline keyboards. Supports webhook and polling modes.
Quick Start
agentnode install telegram-connector-packUsage
From packagefrom telegram_connector_pack.tool import run
result = run(
action="send_message",
chat_id="-1001234567890",
text="*Deploy Complete* 🚀\n\n"
"*Service:* payment-api\n"
"*Version:* v2.4.1\n"
"*Environment:* production\n"
"*Commit:* `a1b2c3d` — Fix currency rounding on refunds\n\n"
"All health checks passing.",
parse_mode="Markdown"
)
print(f"Message sent: {result['message_id']}")
print(f"Chat: {result['chat_title']}")Environment Variables
TELEGRAM_BOT_TOKENTelegram Bot API token obtained from @BotFather
Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 18d ago· Runner v2.0.0
Use this when you need to...
- ›Send automated deployment notifications to a Telegram ops channel
- ›Build an interactive Telegram bot that answers customer FAQs
- ›Forward parsed webhook events as formatted Telegram messages
- ›Send daily analytics digests to a private Telegram group
- ›Receive and process user commands from Telegram for workflow automation
README
Telegram Connector Pack
Send and receive Telegram messages via the Bot API. Build notification bots, interactive command handlers, and automated messaging workflows with a simple Python interface.
Quick Start
agentnode install telegram-connector-pack
from telegram_connector_pack.tool import run
result = run(
action="send_message",
chat_id="-1001234567890",
text="Hello from my agent!"
)
print(result["message_id"])
Usage
Send a Message
result = run(
action="send_message",
chat_id="-1001234567890",
text="*Bold text* and `inline code`",
parse_mode="Markdown"
)
Send a Document
result = run(
action="send_document",
chat_id="-1001234567890",
file_path="report_march_2026.pdf",
caption="Monthly analytics report"
)
Receive and Process Updates
result = run(action="get_updates", timeout=30)
for update in result["updates"]:
print(f"{update['message']['from']['first_name']}: {update['message']['text']}")
API Reference
| Action | Description |
|---|---|
send_message | Send a text message (supports Markdown/HTML) |
send_document | Send a file as a document attachment |
send_photo | Send an image with optional caption |
get_updates | Poll for new incoming messages and events |
get_chat | Retrieve chat/group metadata |
Requirements
export TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v
Create a bot via @BotFather on Telegram to get your token.
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install telegram-connector-packEnvironment Variables
TELEGRAM_BOT_TOKENrequiredFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode