Fix inline force_document and new known RPC errors (#3084)

This should fix inline video notes.
This commit is contained in:
Devesh Pal
2021-06-24 17:49:01 +05:30
committed by GitHub
parent 417bfcd36e
commit 42bfc7bb3f
3 changed files with 10 additions and 4 deletions

View File

@@ -255,6 +255,8 @@ class InlineBuilder:
contact, file, geo, gif, photo, sticker, venue, video, voice.
It will be automatically set if ``mime_type`` is specified,
and default to ``'file'`` if no matching mime type is found.
you may need to pass ``attributes`` in order to use ``type``
effectively.
attributes (`list`, optional):
Optional attributes that override the inferred ones, like
@@ -307,7 +309,7 @@ class InlineBuilder:
file,
mime_type=mime_type,
attributes=attributes,
force_document=True,
force_document=force_document,
voice_note=voice_note,
video_note=video_note,
allow_cache=use_cache