mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 06:44:51 +00:00
Make InputMediaPhoto inherit from InputMedia
This commit is contained in:
parent
9d9fc1f94f
commit
486c9433ac
1 changed files with 4 additions and 4 deletions
|
|
@ -16,8 +16,10 @@
|
|||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# 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.
|
||||
It is intended to be used with :obj:`send_media_group() <pyrogram.Client.send_media_group>`.
|
||||
|
||||
|
|
@ -41,6 +43,4 @@ class InputMediaPhoto:
|
|||
media: str,
|
||||
caption: str = "",
|
||||
parse_mode: str = ""):
|
||||
self.media = media
|
||||
self.caption = caption
|
||||
self.parse_mode = parse_mode
|
||||
super().__init__(media, caption, parse_mode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue