PHP Класс TelegramBot\Api\Types\Message

Наследование: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$audio TelegramBot\Api\Types\Audio Optional. Message is an audio file, information about the file
$caption string Optional. Text description of the video (usually empty)
$channelChatCreated boolean Optional. Service message: the channel has been created
$chat Chat Conversation the message belongs to — user in case of a private message, GroupChat in case of a group
$contact TelegramBot\Api\Types\Contact Optional. Message is a shared contact, information about the contact
$date integer Date the message was sent in Unix time
$deleteChatPhoto boolean Optional. Informs that the group photo was deleted
$document TelegramBot\Api\Types\Document Optional. Message is a general file, information about the file
$entities array array of \TelegramBot\Api\Types\MessageEntity
$forwardDate integer Optional. For forwarded messages, date the original message was sent in Unix time
$forwardFrom User Optional. For forwarded messages, sender of the original message
$from User Optional. Sender name. Can be empty for messages sent to channels
$groupChatCreated boolean Optional. Informs that the group has been created
$leftChatMember User Optional. A member was removed from the group, information about them (this member may be bot itself)
$location TelegramBot\Api\Types\Location Optional. Message is a shared location, information about the location
$map array
$messageId integer Unique message identifier
$migrateFromChatId integer Optional. The supergroup has been migrated from a group with the specified identifier, not exceeding 1e13 by absolute value
$migrateToChatId integer Optional. The group has been migrated to a supergroup with the specified identifier, not exceeding 1e13 by absolute value
$newChatMember User Optional. A new member was added to the group, information about them (this member may be bot itself)
$newChatPhoto mixed Optional. A group photo was change to this value
$newChatTitle string Optional. A group title was changed to this value
$photo array Optional. Message is a photo, available sizes of the photo array of \TelegramBot\Api\Types\Photo
$pinnedMessage Message Optional. Specified message was pinned.Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
$replyToMessage Message Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
$requiredParams array
$sticker TelegramBot\Api\Types\Sticker Optional. Message is a sticker, information about the sticker
$supergroupChatCreated boolean Optional. Service message: the supergroup has been created
$text string Optional. For text messages, the actual UTF-8 text of the message
$venue Venue Optional. Message is a venue, information about the venue
$video TelegramBot\Api\Types\Video Optional. Message is a video, information about the video
$voice TelegramBot\Api\Types\Voice Optional. Message is a voice message, information about the file

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

Метод Описание
getAudio ( ) : TelegramBot\Api\Types\Audio
getCaption ( ) : string
getChat ( ) : Chat
getContact ( ) : TelegramBot\Api\Types\Contact
getDate ( ) : integer
getDocument ( ) : TelegramBot\Api\Types\Document
getEntities ( ) : array
getForwardDate ( ) : integer
getForwardFrom ( ) : User
getFrom ( ) : User
getLeftChatMember ( ) : User
getLocation ( ) : TelegramBot\Api\Types\Location
getMessageId ( ) : integer
getMigrateFromChatId ( ) : integer
getMigrateToChatId ( ) : integer
getNewChatMember ( ) : User
getNewChatPhoto ( ) : array
getNewChatTitle ( ) : string
getPhoto ( ) : array
getPinnedMessage ( ) : Message
getReplyToMessage ( ) : Message
getSticker ( ) : TelegramBot\Api\Types\Sticker
getText ( ) : string
getVenue ( ) : Venue
getVideo ( ) : TelegramBot\Api\Types\Video
getVoice ( ) : TelegramBot\Api\Types\Voice
isChannelChatCreated ( ) : boolean
isDeleteChatPhoto ( ) : boolean
isGroupChatCreated ( ) : boolean
isSupergroupChatCreated ( ) : boolean
setAudio ( TelegramBot\Api\Types\Audio $audio )
setCaption ( string $caption )
setChannelChatCreated ( boolean $channelChatCreated )
setChat ( Chat $chat )
setContact ( TelegramBot\Api\Types\Contact $contact )
setDate ( integer $date )
setDeleteChatPhoto ( boolean $deleteChatPhoto )
setDocument ( TelegramBot\Api\Types\Document $document )
setEntities ( array $entities )
setForwardDate ( integer $forwardDate )
setForwardFrom ( User $forwardFrom )
setFrom ( User $from )
setGroupChatCreated ( boolean $groupChatCreated )
setLeftChatMember ( User $leftChatMember )
setLocation ( TelegramBot\Api\Types\Location $location )
setMessageId ( integer $messageId )
setMigrateFromChatId ( integer $migrateFromChatId )
setMigrateToChatId ( integer $migrateToChatId )
setNewChatMember ( User $newChatMember )
setNewChatPhoto ( array $newChatPhoto )
setNewChatTitle ( string $newChatTitle )
setPhoto ( array $photo )
setPinnedMessage ( Message $pinnedMessage )
setReplyToMessage ( Message $replyToMessage )
setSticker ( TelegramBot\Api\Types\Sticker $sticker )
setSupergroupChatCreated ( boolean $supergroupChatCreated )
setText ( string $text )
setVenue ( Venue $venue )
setVideo ( TelegramBot\Api\Types\Video $video )
setVoice ( TelegramBot\Api\Types\Voice $voice )

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

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

public getAudio ( ) : TelegramBot\Api\Types\Audio
Результат TelegramBot\Api\Types\Audio

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

public getCaption ( ) : string
Результат string

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

public getChat ( ) : Chat
Результат Chat

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

public getContact ( ) : TelegramBot\Api\Types\Contact
Результат TelegramBot\Api\Types\Contact

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

public getDate ( ) : integer
Результат integer

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

public getDocument ( ) : TelegramBot\Api\Types\Document
Результат TelegramBot\Api\Types\Document

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

public getEntities ( ) : array
Результат array

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

public getForwardDate ( ) : integer
Результат integer

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

public getForwardFrom ( ) : User
Результат User

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

public getFrom ( ) : User
Результат User

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

public getLeftChatMember ( ) : User
Результат User

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

public getLocation ( ) : TelegramBot\Api\Types\Location
Результат TelegramBot\Api\Types\Location

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

public getMessageId ( ) : integer
Результат integer

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

public getMigrateFromChatId ( ) : integer
Результат integer

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

public getMigrateToChatId ( ) : integer
Результат integer

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

public getNewChatMember ( ) : User
Результат User

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

public getNewChatPhoto ( ) : array
Результат array

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

public getNewChatTitle ( ) : string
Результат string

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

public getPhoto ( ) : array
Результат array

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

public getPinnedMessage ( ) : Message
Результат Message

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

public getReplyToMessage ( ) : Message
Результат Message

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

public getSticker ( ) : TelegramBot\Api\Types\Sticker
Результат TelegramBot\Api\Types\Sticker

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

public getText ( ) : string
Результат string

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

public getVenue ( ) : Venue
Результат Venue

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

public getVideo ( ) : TelegramBot\Api\Types\Video
Результат TelegramBot\Api\Types\Video

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

public getVoice ( ) : TelegramBot\Api\Types\Voice
Результат TelegramBot\Api\Types\Voice

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

public isChannelChatCreated ( ) : boolean
Результат boolean

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

public isDeleteChatPhoto ( ) : boolean
Результат boolean

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

public isGroupChatCreated ( ) : boolean
Результат boolean

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

public isSupergroupChatCreated ( ) : boolean
Результат boolean

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

public setAudio ( TelegramBot\Api\Types\Audio $audio )
$audio TelegramBot\Api\Types\Audio

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

public setCaption ( string $caption )
$caption string

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

public setChannelChatCreated ( boolean $channelChatCreated )
$channelChatCreated boolean

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

public setChat ( Chat $chat )
$chat Chat

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

public setContact ( TelegramBot\Api\Types\Contact $contact )
$contact TelegramBot\Api\Types\Contact

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

public setDate ( integer $date )
$date integer

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

public setDeleteChatPhoto ( boolean $deleteChatPhoto )
$deleteChatPhoto boolean

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

public setDocument ( TelegramBot\Api\Types\Document $document )
$document TelegramBot\Api\Types\Document

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

public setEntities ( array $entities )
$entities array

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

public setForwardDate ( integer $forwardDate )
$forwardDate integer

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

public setForwardFrom ( User $forwardFrom )
$forwardFrom User

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

public setFrom ( User $from )
$from User

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

public setGroupChatCreated ( boolean $groupChatCreated )
$groupChatCreated boolean

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

public setLeftChatMember ( User $leftChatMember )
$leftChatMember User

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

public setLocation ( TelegramBot\Api\Types\Location $location )
$location TelegramBot\Api\Types\Location

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

public setMessageId ( integer $messageId )
$messageId integer

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

public setMigrateFromChatId ( integer $migrateFromChatId )
$migrateFromChatId integer

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

public setMigrateToChatId ( integer $migrateToChatId )
$migrateToChatId integer

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

public setNewChatMember ( User $newChatMember )
$newChatMember User

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

public setNewChatPhoto ( array $newChatPhoto )
$newChatPhoto array

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

public setNewChatTitle ( string $newChatTitle )
$newChatTitle string

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

public setPhoto ( array $photo )
$photo array

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

public setPinnedMessage ( Message $pinnedMessage )
$pinnedMessage Message

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

public setReplyToMessage ( Message $replyToMessage )
$replyToMessage Message

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

public setSticker ( TelegramBot\Api\Types\Sticker $sticker )
$sticker TelegramBot\Api\Types\Sticker

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

public setSupergroupChatCreated ( boolean $supergroupChatCreated )
$supergroupChatCreated boolean

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

public setText ( string $text )
$text string

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

public setVenue ( Venue $venue )
$venue Venue

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

public setVideo ( TelegramBot\Api\Types\Video $video )
$video TelegramBot\Api\Types\Video

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

public setVoice ( TelegramBot\Api\Types\Voice $voice )
$voice TelegramBot\Api\Types\Voice

Описание свойств

$audio защищенное свойство

Optional. Message is an audio file, information about the file
protected Audio,TelegramBot\Api\Types $audio
Результат TelegramBot\Api\Types\Audio

$caption защищенное свойство

Optional. Text description of the video (usually empty)
protected string $caption
Результат string

$channelChatCreated защищенное свойство

Optional. Service message: the channel has been created
protected bool $channelChatCreated
Результат boolean

$chat защищенное свойство

Conversation the message belongs to — user in case of a private message, GroupChat in case of a group
protected Chat,TelegramBot\Api\Types $chat
Результат Chat

$contact защищенное свойство

Optional. Message is a shared contact, information about the contact
protected Contact,TelegramBot\Api\Types $contact
Результат TelegramBot\Api\Types\Contact

$date защищенное свойство

Date the message was sent in Unix time
protected int $date
Результат integer

$deleteChatPhoto защищенное свойство

Optional. Informs that the group photo was deleted
protected bool $deleteChatPhoto
Результат boolean

$document защищенное свойство

Optional. Message is a general file, information about the file
protected Document,TelegramBot\Api\Types $document
Результат TelegramBot\Api\Types\Document

$entities защищенное свойство

array of \TelegramBot\Api\Types\MessageEntity
protected array $entities
Результат array

$forwardDate защищенное свойство

Optional. For forwarded messages, date the original message was sent in Unix time
protected int $forwardDate
Результат integer

$forwardFrom защищенное свойство

Optional. For forwarded messages, sender of the original message
protected User,TelegramBot\Api\Types $forwardFrom
Результат User

$from защищенное свойство

Optional. Sender name. Can be empty for messages sent to channels
protected User,TelegramBot\Api\Types $from
Результат User

$groupChatCreated защищенное свойство

Optional. Informs that the group has been created
protected bool $groupChatCreated
Результат boolean

$leftChatMember защищенное свойство

Optional. A member was removed from the group, information about them (this member may be bot itself)
protected User,TelegramBot\Api\Types $leftChatMember
Результат User

$location защищенное свойство

Optional. Message is a shared location, information about the location
protected Location,TelegramBot\Api\Types $location
Результат TelegramBot\Api\Types\Location

$map защищенное статическое свойство

protected static array $map
Результат array

$messageId защищенное свойство

Unique message identifier
protected int $messageId
Результат integer

$migrateFromChatId защищенное свойство

Optional. The supergroup has been migrated from a group with the specified identifier, not exceeding 1e13 by absolute value
protected int $migrateFromChatId
Результат integer

$migrateToChatId защищенное свойство

Optional. The group has been migrated to a supergroup with the specified identifier, not exceeding 1e13 by absolute value
protected int $migrateToChatId
Результат integer

$newChatMember защищенное свойство

Optional. A new member was added to the group, information about them (this member may be bot itself)
protected User,TelegramBot\Api\Types $newChatMember
Результат User

$newChatPhoto защищенное свойство

Optional. A group photo was change to this value
protected mixed $newChatPhoto
Результат mixed

$newChatTitle защищенное свойство

Optional. A group title was changed to this value
protected string $newChatTitle
Результат string

$photo защищенное свойство

Optional. Message is a photo, available sizes of the photo array of \TelegramBot\Api\Types\Photo
protected array $photo
Результат array

$pinnedMessage защищенное свойство

Optional. Specified message was pinned.Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
protected Message,TelegramBot\Api\Types $pinnedMessage
Результат Message

$replyToMessage защищенное свойство

Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
protected Message,TelegramBot\Api\Types $replyToMessage
Результат Message

$requiredParams защищенное статическое свойство

protected static array $requiredParams
Результат array

$sticker защищенное свойство

Optional. Message is a sticker, information about the sticker
protected Sticker,TelegramBot\Api\Types $sticker
Результат TelegramBot\Api\Types\Sticker

$supergroupChatCreated защищенное свойство

Optional. Service message: the supergroup has been created
protected bool $supergroupChatCreated
Результат boolean

$text защищенное свойство

Optional. For text messages, the actual UTF-8 text of the message
protected string $text
Результат string

$venue защищенное свойство

Optional. Message is a venue, information about the venue
protected Venue,TelegramBot\Api\Types $venue
Результат Venue

$video защищенное свойство

Optional. Message is a video, information about the video
protected Video,TelegramBot\Api\Types $video
Результат TelegramBot\Api\Types\Video

$voice защищенное свойство

Optional. Message is a voice message, information about the file
protected Voice,TelegramBot\Api\Types $voice
Результат TelegramBot\Api\Types\Voice