mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Add InputMedia class
This commit is contained in:
parent
455e444d8b
commit
eb36a8f261
2 changed files with 25 additions and 0 deletions
|
|
@ -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…
Reference in a new issue