> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notifique.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Baixar mídia recebida (base64)

> Baixa foto, áudio ou documento de uma mensagem recebida. Retorno em base64 no JSON.



## OpenAPI

````yaml /telegram-api/api-reference/openapi-telegram.json post /v1/telegram/messages/inbound/{id}/media
openapi: 3.0.3
info:
  title: Notifique API — Telegram
  description: >-
    Envie mensagens Telegram e gerencie conexões. Autentique com `Authorization:
    Bearer sk_live_...` ou `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfTgBearerAuth: []
  - ntfTgApiKeyHeader: []
tags:
  - name: Mensagens
    description: Enviar e gerenciar mensagens
  - name: Instâncias
    description: Criar e conectar bots ou contas USER
  - name: Chats
    description: Listar chats
paths:
  /v1/telegram/messages/inbound/{id}/media:
    post:
      tags:
        - Mensagens
      summary: Baixar mídia recebida (base64)
      description: >-
        Baixa foto, áudio ou documento de uma mensagem recebida. Retorno em
        base64 no JSON.
      operationId: ntfTg_postV1TelegramInboundMedia
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: clxx_in_1
      responses:
        '200':
          description: Mídia baixada.
          content:
            application/json:
              example:
                success: true
                data:
                  contentType: image/jpeg
                  fileName: image.jpg
                  base64: ...
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      contentType:
                        type: string
                        example: image/jpeg
                      fileName:
                        type: string
                        example: image.jpg
                      base64:
                        type: string
                        example: ...
        '400':
          description: Sem mídia baixável (`NO_MEDIA`) ou instância indisponível.
        '401':
          description: Não autorizado.
        '403':
          description: Escopo ou instância.
        '404':
          description: Inbound não encontrado.
        '502':
          description: Falha ao baixar no Telegram.
components:
  securitySchemes:
    ntfTgBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Authorization: Bearer sk_live_xxxxx'
    ntfTgApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````