question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

answer_audio (sendAudio) method missing thumb parameter

See original GitHub issue

In sendAudio method missing thumb parameter.

async def answer_audio(self,
                       audio: Union[InputFile, String],
                       caption: Optional[String] = None,
                       parse_mode: Optional[String] = None,
                       duration: Optional[Integer] = None,
                       performer: Optional[String] = None,
                       title: Optional[String] = None,
                       disable_notification: Optional[Boolean] = None,
                       reply_markup: Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply, None] = None,
                       reply: Boolean = False) -> Coroutine[Any, Any, Message]

In source: https://core.telegram.org/bots/api#sendaudio

Parameter Type Required Description
thumb InputFile or String Optional Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail’s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnyXXXcommented, Jun 21, 2020

Thanks guys. My problem is resolved 😃

0reactions
Birdi7commented, Jun 20, 2020

That’s ok for PRs, which target dev-2.x branch, as there is a lack of tests inside it already 😄

On Sun, Jun 21, 2020, 03:41 ixearth notifications@github.com wrote:

@Birdi7 https://github.com/Birdi7 I’ve opened the PR but I didn’t test the code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aiogram/aiogram/issues/357#issuecomment-647053264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEQGV6XVEMOGQK6BSE75FF3RXU3LBANCNFSM4N5O443Q .

Read more comments on GitHub >

github_iconTop Results From Across the Web

thumb parameter in answer_audio (sendAudio) method doesn ...
Hello, i tried to start send my audio file with thumbnail, but it is unlucky. I used: thumb ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found