Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt

Use this file to discover all available pages before exploring further.

Dependencies

No additional dependencies - uses aiohttp (included). For credential setup, see the Telegram Setup guide.

Configuration

import os
from mirage import Workspace, MountMode
from mirage.resource.telegram import TelegramConfig, TelegramResource

config = TelegramConfig(token=os.environ["TELEGRAM_BOT_TOKEN"])
resource = TelegramResource(config=config)
ws = Workspace({"/telegram/": resource}, mode=MountMode.READ)
Important: Telegram bots have a 24-hour message window limitation. The bot can only fetch messages from the last 24 hours of updates it has received. Older messages may not be available.

Config Reference

FieldRequiredDescription
tokenYesTelegram Bot Token