Skip to content

strands-telegram

Community Contribution

This is a community-maintained package that is not owned or supported by the Strands team. Validate and review the package before using it in your project.

Have your own integration? We'd love to add it here too!

strands-telegram is a comprehensive Telegram Bot API integration tool with 60+ methods for complete bot development capabilities.

Installation

pip install strands-telegram

Usage

from strands import Agent
from strands_telegram import telegram

agent = Agent(tools=[telegram])

# Send simple message
agent("send a Telegram message 'Hello World' to chat 123456")

# Send media with caption
agent("send photo.jpg to Telegram with caption 'Check this out!'")

# Create interactive keyboard
agent("send a message with buttons: Yes/No for approval")

Key Features

  • 60+ Telegram API Methods: Complete Bot API coverage
  • Media Support: Photos, videos, audio, documents, and stickers
  • Interactive Elements: Inline keyboards, polls, dice games
  • Group Management: Admin functions, member management, permissions
  • File Operations: Upload, download, and media handling
  • Webhook Support: Real-time message processing
  • Custom API Calls: Extensible for any Telegram method

Configuration

TELEGRAM_BOT_TOKEN=your_bot_token         # Required

Get your bot token at: BotFather

Resources