PaidMediaInfo

class telegram.PaidMediaInfo(star_count, paid_media, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

Describes the paid media added to a message.

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

Added in version 21.4.

Parameters:
star_count[source]

The number of Telegram Stars that must be paid to buy access to the media.

Type:

int

paid_media[source]

Information about the paid media.

Type:

tuple[telegram.PaidMedia]