mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Make InputMediaVideo inherit from InputMedia
This commit is contained in:
parent
486c9433ac
commit
2a985e7545
1 changed files with 5 additions and 4 deletions
|
|
@ -16,8 +16,10 @@
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from . import InputMedia
|
||||||
|
|
||||||
class InputMediaVideo:
|
|
||||||
|
class InputMediaVideo(InputMedia):
|
||||||
"""This object represents a video to be sent inside an album.
|
"""This object represents a video to be sent inside an album.
|
||||||
It is intended to be used with :obj:`send_media_group() <pyrogram.Client.send_media_group>`.
|
It is intended to be used with :obj:`send_media_group() <pyrogram.Client.send_media_group>`.
|
||||||
|
|
||||||
|
|
@ -57,9 +59,8 @@ class InputMediaVideo:
|
||||||
height: int = 0,
|
height: int = 0,
|
||||||
duration: int = 0,
|
duration: int = 0,
|
||||||
supports_streaming: bool = True):
|
supports_streaming: bool = True):
|
||||||
self.media = media
|
super().__init__(media, caption, parse_mode)
|
||||||
self.caption = caption
|
|
||||||
self.parse_mode = parse_mode
|
|
||||||
self.width = width
|
self.width = width
|
||||||
self.height = height
|
self.height = height
|
||||||
self.duration = duration
|
self.duration = duration
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue