phpbotgram

ChatShortcuts

Hand-authored shortcut helpers for `Chat`.

Loaded by HandAuthoredShortcutsIntegrator (Phase 2 codegen stage 8) and stitched into the regenerated Chat class via a use ChatShortcuts; directive.

Mirrors aiogram's Chat.full_name accessor. Private (1:1 user) chats carry firstName / lastName like a User; everything else (group, supergroup, channel, direct_messages) uses the chat title. Returns the empty string when neither path yields a value.

Table of Contents

Properties

$firstName  : null|string
$lastName  : null|string
$title  : null|string
$type  : string

Methods

fullName()  : string

Properties

$firstName

public null|string $firstName

promoted property on the using class

$lastName

public null|string $lastName

promoted property on the using class

$title

public null|string $title

promoted property on the using class

$type

public string $type

promoted property on the using class

Methods

On this page

Search results