Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pyrogram/client/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

from functools import partial
from typing import List, Match, Union
from typing import List, Match, Union, BinaryIO

import pyrogram
from pyrogram.api import types
Expand Down Expand Up @@ -763,7 +763,7 @@ def reply_text(

def reply_animation(
self,
animation: str,
animation: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
caption: str = "",
Expand Down Expand Up @@ -905,7 +905,7 @@ def reply_animation(

def reply_audio(
self,
audio: str,
audio: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
caption: str = "",
Expand Down Expand Up @@ -1260,7 +1260,7 @@ def reply_contact(

def reply_document(
self,
document: str,
document: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
thumb: str = None,
Expand Down Expand Up @@ -1661,7 +1661,7 @@ def reply_media_group(

def reply_photo(
self,
photo: str,
photo: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
caption: str = "",
Expand Down Expand Up @@ -1862,7 +1862,7 @@ def reply_poll(

def reply_sticker(
self,
sticker: str,
sticker: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
disable_notification: bool = None,
Expand Down Expand Up @@ -2065,7 +2065,7 @@ def reply_venue(

def reply_video(
self,
video: str,
video: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
caption: str = "",
Expand Down Expand Up @@ -2212,7 +2212,7 @@ def reply_video(

def reply_video_note(
self,
video_note: str,
video_note: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
duration: int = 0,
Expand Down Expand Up @@ -2335,7 +2335,7 @@ def reply_video_note(

def reply_voice(
self,
voice: str,
voice: Union[str, BinaryIO],
file_ref: str = None,
quote: bool = None,
caption: str = "",
Expand Down