PaidMediaPurchased

class telegram.PaidMediaPurchased(from_user, paid_media_payload, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object contains information about a paid media purchase.

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

Note

In Python from is a reserved word. Use from_user instead.

Added in version 21.6.

Parameters:
from_user[source]

User who purchased the media.

Type:

telegram.User

paid_media_payload[source]

Bot-specified paid media payload.

Type:

str