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

How to send InlineQueryResultCachedAudio?#4737

Unanswered
pixol20 asked this question inQ&A
Mar 29, 2025· 1 comments· 15 replies
Discussion options

InlineQueryResultCachedAudio constructor doesn't accept title argument however when I'm trying to send this object I get
telegram.error.BadRequest: Audio_title_empty

You must be logged in to vote

Replies: 1 comment 15 replies

Comment options

Where did you get ths audio file id from?

You must be logged in to vote
15 replies
@pixol20
Comment options

No, the problem is with display of list. Here's a video that demonstrates the issue.

document_5449744986687960260.mp4
@aelkheir
Comment options

aelkheirApr 8, 2025
Collaborator

Oh! Strange behavior indeed. However this is not PTB related so there's nothing we can do, maybe try on a different client.

@pixol20
Comment options

Yes, it's probably telegram problem. It's the same in web. .It works fine when output looks like list. Can I force it to be displayed as list?

@aelkheir
Comment options

Sorry for getting back to you late. It's a bit hard for me to understand what you mean by that without looking at some actual code.

@pixol20
Comment options

In this video you can see that when list returned by inline query method includes InlineQueryResultCachedVoice Telegram displays response as list of media with titles. Andin this case you can see title of audio sent as document. But when response does not include voice as in previous video Telegram displays it as gallery without titles and document becomes invisible. If you want to see source code:generate_inline_list generates response. But currently because audio does not work as intended bot does not support it.

document_5465233575060203119.mp4
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@pixol20@Poolitzer@aelkheir

[8]ページ先頭

©2009-2025 Movatter.jp