-
Notifications
You must be signed in to change notification settings - Fork 161
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
Cannot update photo using local file and editMessageMedia #226
Labels
bug
Something isn't working
Comments
trupizzza
changed the title
Cannot update photo using local file and editMessageMEdia
Cannot update photo using local file and editMessageMedia
Oct 19, 2021
Such a case also does not work for me, it gives the same error( |
Works with val photo = TelegramFile.ByFileId(imageFileId)
bot.editMessageMedia(
media = InputMediaPhoto(photo, caption, MARKDOWN_V2.modeName)
...
) UPD: https://core.telegram.org/bots/api#editmessagemedia
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
I can replace existing message photo (sent by sendPhoto, using URL as path to media) with new photo from local source by using editMessageMedia function.
Actual behavior
I can add photo from local source using sendPhoto function.
Hovewer, when I try to reaplce photo using editMessageMedia function, I've got following error message:
The same function with photo from URL works well.
To Reproduce
Send any photo using sendPhoto, then try to use editMessageMedia with media paarameter points to local picture, ex:
The text was updated successfully, but these errors were encountered: