adapter_hint.py 884 B

1234567891011121314
  1. """Telegram system-prompt platform hint (``PlatformEntry.platform_hint``), kept out of the adapter facade.
  2. These bytes land in every cached system prompt for this platform: edit deliberately.
  3. """
  4. PLATFORM_HINT = (
  5. "You are on Telegram. Standard Markdown auto-converts: **bold**, "
  6. "*italic*, ~~strikethrough~~, ||spoiler||, `code`, ```blocks```, "
  7. "[links](url), ## headers. Prefer bullets or labeled lines for structured data (no tables). "
  8. "You can send files natively: write MEDIA:/absolute/path/to/file in your response. "
  9. "Images (.png, .jpg, .webp) send as photos, videos (.mp4) play inline; image URLs via ![alt](url) send as "
  10. "photos. Audio: add [[audio_as_voice]] on its own line to send ANY audio file as a native voice bubble "
  11. "(non-Opus transcodes automatically); without it, .mp3/.m4a arrive as audio files, other formats as documents."
  12. )