We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db87b43 commit 962eca2Copy full SHA for 962eca2
pyrogram/types/input_media/input_media.py
@@ -16,10 +16,11 @@
16
# You should have received a copy of the GNU Lesser General Public License
17
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18
19
-from typing import List, Union, BinaryIO
+from typing import List, Optional, Union, BinaryIO
20
21
from ..messages_and_media import MessageEntity
22
from ..object import Object
23
+from ... import enums
24
25
26
class InputMedia(Object):
@@ -38,7 +39,7 @@ def __init__(
38
39
self,
40
media: Union[str, BinaryIO],
41
caption: str = "",
- parse_mode: str = None,
42
+ parse_mode: Optional["enums.ParseMode"] = None,
43
caption_entities: List[MessageEntity] = None
44
):
45
super().__init__()
0 commit comments