Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendMediaGroup - InputMediaDocument #1177

Open
mat-twg opened this issue Feb 25, 2024 · 2 comments
Open

sendMediaGroup - InputMediaDocument #1177

mat-twg opened this issue Feb 25, 2024 · 2 comments

Comments

@mat-twg
Copy link

mat-twg commented Feb 25, 2024

InputMediaDocument in sendMediaGroup is unavailable, please fix that.

https://core.telegram.org/bots/api#inputmediadocument

@danielperez9430
Copy link
Collaborator

You are talking about the typescript types maybe? Because send media documents is possible with sendMediaGroup in this library

@mat-twg
Copy link
Author

mat-twg commented Mar 7, 2024

ts - yes... has type errors, btw this working, but has not full ts support...

bot.sendMediaGroup(
    subscription.chatId, files.map((file) => ({
        type: "document" as any,
        media: file,
    })),
    {
        disable_notification: true,
        reply_to_message_id: message.message_id,
    },
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants