Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify Documentation and Type Hints ofInput(Paid)Media#4762

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Bibo-Joshi merged 4 commits intomasterfromfix-inputmedia-docs/annotations
Apr 20, 2025

Conversation

Bibo-Joshi
Copy link
Member

Seehttps://t.me/pythontelegrambotgroup/777286

Not adding anyversionchanged directives, since passing other things thanstr andInputFile never worked.

@Bibo-JoshiBibo-Joshi added ⚙️ documentationaffected functionality: documentation ⚙️ type-hintingaffected functionality: type-hinting labelsApr 19, 2025
Copy link
Member

@aelkheiraelkheir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍. Can confirm passing bytes directly to Input(Paid)Media doesn't work.
at a pinch one can still pass bytes throughInputFile.

input_media=InputMedia(media_type=InputMediaType.PHOTO,media=InputFile(some_bytes,attach=True),)awaitcontext.bot.edit_message_media(chat_id=update.effective_chat.id,message_id=update.message.id,media=input_media,)

PS: just a forgotten| :)

@Bibo-JoshiBibo-Joshi merged commit486ceaa intomasterApr 20, 2025
39 of 42 checks passed
@Bibo-JoshiBibo-Joshi deleted the fix-inputmedia-docs/annotations branchApril 20, 2025 08:48
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@aelkheiraelkheiraelkheir requested changes

@PoolitzerPoolitzerAwaiting requested review from Poolitzer

Assignees
No one assigned
Labels
⚙️ documentationaffected functionality: documentation⚙️ type-hintingaffected functionality: type-hinting
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Bibo-Joshi@aelkheir

[8]ページ先頭

©2009-2025 Movatter.jp