mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Fix InputMediaAudio copy pasta
This commit is contained in:
parent
9f725a6bfb
commit
9e5976e755
@ -25,43 +25,37 @@ class InputMediaAudio(InputMedia):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
media (``str``):
|
media (``str``):
|
||||||
Video to send.
|
Audio to send.
|
||||||
Pass a file_id as string to send a video that exists on the Telegram servers or
|
Pass a file_id as string to send an audio that exists on the Telegram servers or
|
||||||
pass a file path as string to upload a new video that exists on your local machine.
|
pass a file path as string to upload a new audio that exists on your local machine.
|
||||||
Sending video by a URL is currently unsupported.
|
|
||||||
|
|
||||||
caption (``str``, *optional*):
|
caption (``str``, *optional*):
|
||||||
Caption of the video to be sent, 0-200 characters
|
Caption of the audio to be sent, 0-200 characters
|
||||||
|
|
||||||
parse_mode (``str``, *optional*):
|
parse_mode (``str``, *optional*):
|
||||||
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
|
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
|
||||||
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
|
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
|
||||||
Defaults to Markdown.
|
Defaults to Markdown.
|
||||||
|
|
||||||
width (``int``, *optional*):
|
|
||||||
Video width.
|
|
||||||
|
|
||||||
height (``int``, *optional*):
|
|
||||||
Video height.
|
|
||||||
|
|
||||||
duration (``int``, *optional*):
|
duration (``int``, *optional*):
|
||||||
Video duration.
|
Duration of the audio in seconds
|
||||||
|
|
||||||
supports_streaming (``bool``, *optional*):
|
performer (``int``, *optional*):
|
||||||
Pass True, if the uploaded video is suitable for streaming.
|
Performer of the audio
|
||||||
|
|
||||||
|
title (``int``, *optional*):
|
||||||
|
Title of the audio
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
media: str,
|
media: str,
|
||||||
caption: str = "",
|
caption: str = "",
|
||||||
parse_mode: str = "",
|
parse_mode: str = "",
|
||||||
width: int = 0,
|
|
||||||
height: int = 0,
|
|
||||||
duration: int = 0,
|
duration: int = 0,
|
||||||
supports_streaming: bool = True):
|
performer: int = "",
|
||||||
|
title: str = ""):
|
||||||
super().__init__(media, caption, parse_mode)
|
super().__init__(media, caption, parse_mode)
|
||||||
|
|
||||||
self.width = width
|
|
||||||
self.height = height
|
|
||||||
self.duration = duration
|
self.duration = duration
|
||||||
self.supports_streaming = supports_streaming
|
self.performer = performer
|
||||||
|
self.title = title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user