PHP Class Longman\TelegramBot\Entities\Chat

Inheritance: extends Entity
Afficher le fichier Open project: akalongman/php-telegram-bot Class Usage Examples

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

public __construct ( $data )

isChannel() public méthode

Check if this is a channel
public isChannel ( ) : boolean
Résultat boolean

isGroupChat() public méthode

Check if this is a group chat
public isGroupChat ( ) : boolean
Résultat boolean

isPrivateChat() public méthode

Check if this is a private chat
public isPrivateChat ( ) : boolean
Résultat boolean

isSuperGroup() public méthode

Check if this is a super group
public isSuperGroup ( ) : boolean
Résultat boolean

tryMention() public méthode

Try to mention the user of this chat, else return the title
public tryMention ( boolean $escape_markdown = false ) : string | null
$escape_markdown boolean
Résultat string | null