PHP Класс Longman\TelegramBot\Entities\Chat

Наследование: extends Entity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $data )
isChannel ( ) : boolean Check if this is a channel
isGroupChat ( ) : boolean Check if this is a group chat
isPrivateChat ( ) : boolean Check if this is a private chat
isSuperGroup ( ) : boolean Check if this is a super group
tryMention ( boolean $escape_markdown = false ) : string | null Try to mention the user of this chat, else return the title

Описание методов

__construct() публичный Метод

public __construct ( $data )

isChannel() публичный Метод

Check if this is a channel
public isChannel ( ) : boolean
Результат boolean

isGroupChat() публичный Метод

Check if this is a group chat
public isGroupChat ( ) : boolean
Результат boolean

isPrivateChat() публичный Метод

Check if this is a private chat
public isPrivateChat ( ) : boolean
Результат boolean

isSuperGroup() публичный Метод

Check if this is a super group
public isSuperGroup ( ) : boolean
Результат boolean

tryMention() публичный Метод

Try to mention the user of this chat, else return the title
public tryMention ( boolean $escape_markdown = false ) : string | null
$escape_markdown boolean
Результат string | null