mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix inline force_document and new known RPC errors (#3084)
This should fix inline video notes.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user