We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd0d5a commit 0aa963fCopy full SHA for 0aa963f
1 file changed
pyrogram/types/messages_and_media/message.py
@@ -453,6 +453,9 @@ class Message(Object, Update):
453
454
link (``str``, *property*):
455
Generate a link to this message, only for groups and channels.
456
+
457
+ content (``str``, *property*):
458
+ The text or caption content of the message.
459
"""
460
461
# TODO: Add game missing field
@@ -1397,6 +1400,10 @@ def link(self) -> str:
1397
1400
else:
1398
1401
return f"https://t.me/c/{utils.get_channel_id(self.chat.id)}/{self.id}"
1399
1402
1403
+ @property
1404
+ def content(self) -> str:
1405
+ return self.text or self.caption or ""
1406
1407
async def get_media_group(self) -> List["types.Message"]:
1408
"""Bound method *get_media_group* of :obj:`~pyrogram.types.Message`.
1409
0 commit comments