Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# ChatBoostRemoved

New in version 20.8.

class telegram.ChatBoostRemoved(chat, boost_id, remove_date, source, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object represents a boost removed from a chat.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `chat`, `boost_id`, `remove_date`, and `source` are equal.

  Parameters:

    - chat (`telegram.Chat`) – Chat which was boosted.

    - boost_id (`str`) – Unique identifier of the boost.

    - remove_date (`datetime.datetime`) – Point in time when the boost was removed.

    - source (`telegram.ChatBoostSource`) – Source of the removed boost.

  chat

    Chat which was boosted.

    Type:

      `telegram.Chat`

  boost_id

    Unique identifier of the boost.

    Type:

      `str`

  remove_date

    Point in time when the boost was removed. The default timezone of the bot is used for localization, which is UTC unless `telegram.ext.Defaults.tzinfo` is used.

    Type:

      `datetime.datetime`

  source

    Source of the removed boost.

    Type:

      `telegram.ChatBoostSource`

  Available In

  `telegram.Update.removed_chat_boost`

  classmethod de_json(data, bot)

    See `telegram.TelegramObject.de_json()`.