RequirementToContact#

class pyrogram.raw.base.RequirementToContact#

Specifies a requirement that must be satisfied in order to contact a user.

Constructors:

This base type has 3 constructors available.

RequirementToContactEmpty

This user can be freely contacted.

RequirementToContactPaidMessages

This user requires us to pay the specified amount of Telegram Stars to send them a message, see here for the full flow.

RequirementToContactPremium

This user requires us to buy a Premium subscription in order to contact them.

Functions:

This object can be returned by 1 function.

users.GetRequirementsToContact

Check whether we can write to the specified users, used to implement bulk checks for Premium-only messages and paid messages .