danog\MadelineProto\EventHandler\Privacy\Rule
Author: Daniil Gentili daniil@daniil.it
Represents a privacy rule.
Constants
danog\MadelineProto\EventHandler\Privacy\Rule::STATUS_TIMESTAMP
: Whether we can see the last online timestamp of this userdanog\MadelineProto\EventHandler\Privacy\Rule::CHAT_INVITE
: Whether the user can be invited to chatsdanog\MadelineProto\EventHandler\Privacy\Rule::PHONE_CALL
: Whether the user accepts phone callsdanog\MadelineProto\EventHandler\Privacy\Rule::PHONE_P2P
: Whether P2P connections in phone calls with this user are alloweddanog\MadelineProto\EventHandler\Privacy\Rule::FORWARDS
: Whether messages forwarded from the user will be anonymously forwardeddanog\MadelineProto\EventHandler\Privacy\Rule::PROFILE_PHOTO
: Whether the profile picture of the user is visibledanog\MadelineProto\EventHandler\Privacy\Rule::PHONE_NUMBER
: Whether the user allows us to see his phone numberdanog\MadelineProto\EventHandler\Privacy\Rule::ADDED_BY_PHONE
: Whether this user can be added to our contact list by their phone numberdanog\MadelineProto\EventHandler\Privacy\Rule::VOICE_MESSAGES
: Whether the user accepts voice messagesdanog\MadelineProto\EventHandler\Privacy\Rule::ABOUT
: Whether the user can see our bio.
Properties
$name
:string
$value
:string
Method list:
Methods:
cases(): array
from(string|int $value): static
Parameters:
$value
:string|int
tryFrom(string|int $value): ?static
Parameters:
$value
:string|int
Generated by danog/phpdoc