Link Search Menu Expand Document

danog\MadelineProto\MTProtoTools\DialogId

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents the type of a bot API dialog ID.

Constants

  • danog\MadelineProto\MTProtoTools\DialogId::USER:

  • danog\MadelineProto\MTProtoTools\DialogId::CHAT:

  • danog\MadelineProto\MTProtoTools\DialogId::CHANNEL_OR_SUPERGROUP:

  • danog\MadelineProto\MTProtoTools\DialogId::SECRET_CHAT:

Properties

  • $name: string

Method list:

Methods:

getType(integer $id): self

Get the type of a dialog using just its bot API dialog ID.

For more detailed types, use API::getType, instead.

Parameters:

  • $id: integer Bot API ID.

isSupergroupOrChannel(int $id): bool

Checks whether the provided bot API ID is a supergroup or channel ID.

Parameters:

  • $id: int

isChat(int $id): bool

Checks whether the provided bot API ID is a chat ID.

Parameters:

  • $id: int

isUser(int $id): bool

Checks whether the provided bot API ID is a user ID.

Parameters:

  • $id: int

isSecretChat(int $id): bool

Checks whether the provided bot API ID is a secret chat ID.

Parameters:

  • $id: int

cases(): array


Generated by danog/phpdoc