Story

class telegram.Story(chat, id, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents a story.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their chat and id are equal.

New in version 20.5.

Changed in version 21.0: Added attributes chat and id and equality based on them.

Parameters:
  • chat (telegram.Chat) – Chat that posted the story.

  • id (int) – Unique identifier for the story in the chat.

chat[source]

Chat that posted the story.

Type:

telegram.Chat

id[source]

Unique identifier for the story in the chat.

Type:

int

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().