MessageMediaStory#

class pyrogram.raw.types.MessageMediaStory#

Represents a forwarded story or a story mention.

Constructor of MessageMedia.

Details:
  • Layer: 220

  • ID: 68CB6283

Parameters:
  • peer (Peer) – Peer that posted the story.

  • id (int 32-bit) – Story ID

  • via_mention (bool, optional) – If set, indicates that this someone has mentioned us in this story (i.e. by tagging us in the description) or vice versa, we have mentioned the other peer (if the message is outgoing).

  • story (StoryItem, optional) – The story itself, if absent fetch it using stories.getStoriesByID and the peer/id parameters specified above.

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat) May also be used in a business connection, not by wrapping the query in invokeWithBusinessConnection , but rather by specifying the business connection ID in the business_connection_id parameter.

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info .