PHP Class Longman\TelegramBot\Entities\Chat

Inheritance: extends Entity
Datei anzeigen Open project: akalongman/php-telegram-bot Class Usage Examples

Public Methods

Method 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 method

public __construct ( $data )

isChannel() public method

Check if this is a channel
public isChannel ( ) : boolean
return boolean

isGroupChat() public method

Check if this is a group chat
public isGroupChat ( ) : boolean
return boolean

isPrivateChat() public method

Check if this is a private chat
public isPrivateChat ( ) : boolean
return boolean

isSuperGroup() public method

Check if this is a super group
public isSuperGroup ( ) : boolean
return boolean

tryMention() public method

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