Skip to main content
Part of the Telegram interface examples. Follow the setup guide.
DALL-E models are deprecated. This DalleTools example is retained as a legacy reference and no longer runs against the current OpenAI API. Use OpenAITools with GPT Image 2 in Image Generation Agent.

Code

agent_with_media.py

Current Alternative

The source above uses removed DALL-E models and is preserved for reference. Replace DalleTools with the GPT Image 2 pattern in Image Generation Agent before adapting its media and audio paths. See Telegram setup for webhook configuration.

Key Features

  • Legacy Image Generation: The pinned bot used DALL-E 3 for images sent as native Telegram photos
  • Text-to-Speech: ElevenLabs converts text to audio, sent as Telegram audio messages
  • Sound Effects: Generate sound effects from descriptions
  • Inbound Media Analysis: Analyze images, audio, video, and documents sent by users
  • Persistent Memory: SQLite database for session storage