Skip to content

sendDocument doesn't have option to specify only file_id as String to send a file that exists on the Telegram servers #1436

@nightrider77

Description

@nightrider77

According to Telegram's API, https://core.telegram.org/bots/api#senddocument
sendDocument method can accept document or file_id as a reference to a file which already exists on their servers.
Current version of php-telegram-bot doesn't support to pass file_id to this method, only path to local document.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions