Skip to content

Commit c989639

Browse files
Add Message.forwards field (pyrogram#1103)
* Added missing field: forwards * Update message.py Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
1 parent b423730 commit c989639

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyrogram/types/messages_and_media/message.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ class Message(Object, Update):
254254
255255
views (``int``, *optional*):
256256
Channel post views.
257+
258+
forwards (``int``, *optional*):
259+
Channel post forwards.
257260
258261
via_bot (:obj:`~pyrogram.types.User`):
259262
The information of the bot that generated the message from an inline query of a user.
@@ -361,6 +364,7 @@ def __init__(
361364
pinned_message: "Message" = None,
362365
game_high_score: int = None,
363366
views: int = None,
367+
forwards: int = None,
364368
via_bot: "types.User" = None,
365369
outgoing: bool = None,
366370
matches: List[Match] = None,
@@ -436,6 +440,7 @@ def __init__(
436440
self.pinned_message = pinned_message
437441
self.game_high_score = game_high_score
438442
self.views = views
443+
self.forwards = forwards
439444
self.via_bot = via_bot
440445
self.outgoing = outgoing
441446
self.matches = matches
@@ -800,6 +805,7 @@ async def _parse(
800805
poll=poll,
801806
dice=dice,
802807
views=message.views,
808+
forwards=message.forwards,
803809
via_bot=types.User._parse(client, users.get(message.via_bot_id, None)),
804810
outgoing=message.out,
805811
reply_markup=reply_markup,

0 commit comments

Comments
 (0)