Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Calls\CallDenialReason

Back to index

Author: Daniil Gentili daniil@daniil.it

Reason why a call or group call cannot be started in a chat, the value is a human-readable description.

Constants

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::BOTS_CANNOT_CALL: We are a bot, and bots cannot make one-to-one calls.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::CANNOT_CALL_SELF: The other user of the private chat is ourselves.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::CALLS_UNAVAILABLE: The other user cannot be called at all.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::PRIVACY_SETTINGS: The privacy settings of the other user do not allow us to call them.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::VIDEO_CALLS_UNAVAILABLE: The other user cannot be video called.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::BOTS_CANNOT_CREATE_GROUP_CALLS: We are a bot, and bots cannot create group calls.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::NOT_A_MEMBER: We are not a member of the group or channel.

  • danog\MadelineProto\EventHandler\Calls\CallDenialReason::MANAGE_CALL_RIGHT_REQUIRED: We lack the manage_call admin right in the group or channel.

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