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

Where is tgbotapi.NewEditMessageMedia? #489

Closed
illiafox opened this issue Nov 12, 2021 · 5 comments
Closed

Where is tgbotapi.NewEditMessageMedia? #489

illiafox opened this issue Nov 12, 2021 · 5 comments

Comments

@illiafox
Copy link

I can see only tgbotapi.NewEditMessageMediaConfig, but no method. Does it exist?

@illiafox
Copy link
Author

I try using struct and bot.Send() and it works!

bot.Send(tgbotapi.EditMessageMediaConfig{ BaseEdit: tgbotapi.BaseEdit{ MessageID: update.CallbackQuery.Message.MessageID, ChatID: update.CallbackQuery.Message.Chat.ID, }, Media: tgbotapi.NewInputMediaPhoto(tgbotapi.FilePath(file)),

@pavelpatrin
Copy link

@illiafox thx for example. Not trivial.

@illiafox
Copy link
Author

@illiafox thx for example. Not trivial.

It will be a good idea to reopen issue, because i thought that New... Function was added

IMG_20220319_213609.jpg

@illiafox illiafox reopened this Mar 19, 2022
@pavelpatrin
Copy link

@illiafox i know something a bit better....

@pavelpatrin
Copy link

#529

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