mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Make InputMediaPhoto inherit from InputMedia
This commit is contained in:
parent
9d9fc1f94f
commit
486c9433ac
@ -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 InputMediaPhoto:
|
|
||||||
|
class InputMediaPhoto(InputMedia):
|
||||||
"""This object represents a photo to be sent inside an album.
|
"""This object represents a photo 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>`.
|
||||||
|
|
||||||
@ -41,6 +43,4 @@ class InputMediaPhoto:
|
|||||||
media: str,
|
media: str,
|
||||||
caption: str = "",
|
caption: str = "",
|
||||||
parse_mode: str = ""):
|
parse_mode: str = ""):
|
||||||
self.media = media
|
super().__init__(media, caption, parse_mode)
|
||||||
self.caption = caption
|
|
||||||
self.parse_mode = parse_mode
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user