Allow a user to send us messages without paying if paid messages » are enabled.
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.toggleNoPaidMessagesException#fe2eda76 flags:# refund_charged:flags.0?true require_payment:flags.2?true parent_peer:flags.1?InputPeer user_id:InputUser = Bool;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
refund_charged | flags.0?true | If set and require_payment is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum). |
require_payment | flags.2?true | If set, requires the user to pay in order to send us messages (can only be used by monoforums, not users, i.e. parent_peer must be set if this flag is set; users must instead use the inputPrivacyKeyNoPaidMessages privacy setting to remove a previously added exemption). If not set, allows the user to send us messages without paying (can be used by both monoforums and users). |
parent_peer | flags.1?InputPeer | If set, applies the setting within the monoforum aka direct messages » (pass the ID of the monoforum, not the ID of the associated channel). |
user_id | InputUser | The user to exempt or unexempt. |
Who can send you messages without paying, if paid messages » are enabled.
Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.
Telegram allows creating forums with multiple distinct topics.
Telegram Stars can be used to pay for sending messages to users, supergroups and channels that have configured paid messages, requiring a payment for every message sent to them.