Create a new Message.file property (#1168)

This commit is contained in:
Lonami Exo
2019-05-08 18:41:40 +02:00
parent cfd6d3ce04
commit 10251f9782
5 changed files with 193 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ Properties
forward
buttons
button_count
file
photo
document
web_preview
@@ -255,6 +256,31 @@ Methods
get_buttons
File
====
The `File <telethon.tl.custom.file.File>` type is a wrapper object
returned by `Message.file <telethon.tl.custom.message.Message.file>`,
and you can use it to easily access a document's attributes, such as
its name, bot-API style file ID, etc.
.. currentmodule:: telethon.tl.custom.file.File
.. autosummary::
:nosignatures:
id
name
width
height
size
duration
title
performer
emoji
sticker_set
Conversation
============

View File

@@ -18,6 +18,14 @@ telethon\.tl\.custom\.dialog module
:undoc-members:
:show-inheritance:
telethon\.tl\.custom\.file module
---------------------------------
.. automodule:: telethon.tl.custom.file
:members:
:undoc-members:
:show-inheritance:
telethon\.tl\.custom\.message module
------------------------------------