Telegram Connector Pack

Trustedv1.0.0MITVerified88

by 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.

langchaincrewaigeneric

Quick Start

bash
agentnode install telegram-connector-pack

Usage

From package
python
from 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_TOKEN

Telegram Bot API token obtained from @BotFather

required

Verification

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 1.8s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install1.8s
import323ms
smoke198ms
tests1.6s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

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

ActionDescription
send_messageSend a text message (supports Markdown/HTML)
send_documentSend a file as a document attachment
send_photoSend an image with optional caption
get_updatesPoll for new incoming messages and events
get_chatRetrieve 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

telegram_integrationtelegram_interacttool

Permissions

This package declares the following access levels. Review before installing.

Networkunrestricted
Filesystemnone
Code Executionnone
Data Accessconnected_accounts
User Approvalonce
bash
agentnode install telegram-connector-pack

Environment Variables

TELEGRAM_BOT_TOKENrequired

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointtelegram_connector_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode