mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Add InputMedia class
This commit is contained in:
parent
455e444d8b
commit
eb36a8f261
@ -29,3 +29,4 @@ from .api.errors import Error
|
|||||||
from .client import ChatAction
|
from .client import ChatAction
|
||||||
from .client import Client
|
from .client import Client
|
||||||
from .client import ParseMode
|
from .client import ParseMode
|
||||||
|
from .client.input_media import InputMedia
|
||||||
|
24
pyrogram/client/input_media.py
Normal file
24
pyrogram/client/input_media.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
class InputMedia:
|
||||||
|
class Photo:
|
||||||
|
def __init__(self,
|
||||||
|
media: str,
|
||||||
|
caption: str = "",
|
||||||
|
parse_mode: str = ""):
|
||||||
|
self.media = media
|
||||||
|
self.caption = caption
|
||||||
|
self.parse_mode = parse_mode
|
||||||
|
|
||||||
|
class Video:
|
||||||
|
def __init__(self,
|
||||||
|
media: str,
|
||||||
|
caption: str = "",
|
||||||
|
parse_mode: str = "",
|
||||||
|
width: int = 0,
|
||||||
|
height: int = 0,
|
||||||
|
duration: int = 0):
|
||||||
|
self.media = media
|
||||||
|
self.caption = caption
|
||||||
|
self.parse_mode = parse_mode
|
||||||
|
self.width = width
|
||||||
|
self.height = height
|
||||||
|
self.duration = duration
|
Loading…
x
Reference in New Issue
Block a user