The Wayback Machine - https://web.archive.org/web/20240110192735/https://github.com/pyrogram/pyrogram/issues/652
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

Ability To Edit Inline Media With File Path / Client.save_file(). #652

Closed
2 tasks done
StarkGang opened this issue Mar 27, 2021 · 2 comments
Closed
2 tasks done

Ability To Edit Inline Media With File Path / Client.save_file(). #652

StarkGang opened this issue Mar 27, 2021 · 2 comments

Comments

@StarkGang
Copy link

Checklist

  • I believe the idea is awesome and would benefit the library.
  • I have searched in the issue tracker for similar requests, including closed ones.

Description

A detailed description of the request.

I Wanted To Request Ability To Edit Media With Just File Path Or Client.save_file() Method.
This Will Make Editing inline Media Simpler and Better.
SomeTimes Its Hard To Edit Media With File ID. I Don't Think Its Impossible Because I Have Tried This With Other Libs (Ex. Telethon).

@delivrance
Copy link
Member

This seems to be already possible: edit_message_media accepts an InputMedia type in its media argument. All InputMedia sub-types have a media argument that can accept a local path as well, as explained in docs.

@StarkGang
Copy link
Author

StarkGang commented Apr 15, 2021

I am Talking About Inline Media's Btw.

I am getting this error: https://nekobin.com/hemihafije | while editing inline media. the file exists, and I am able to upload it normally but unable to edit inline message media.

And @SpEcHiDe told something that made me open this issue / feature request - https://t.me/pyrogramchat/304439

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

No branches or pull requests

2 participants