• Provide Telegram with an HTTP URL for the file to be sent. Telegram will download and send the file.

    • The target file must have the correct MIME type (e.g., audio/mpeg for sendAudio, etc.).
    • sendDocument with URL will currently only work for GIF, PDF and ZIP files.
    • To use sendVoice, the file must have the type audio/ogg and be no more than 1MB in size. 1-20MB voice notes will be sent as files.

    5 MB max size for photos and 20 MB max for other types of content.


    • url: string | URL

    Returns string

Generated using TypeDoc