PHP 클래스 TelegramBot\Api\Types\Message

상속: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
파일 보기 프로젝트 열기: TelegramBot/Api 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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() 공개 메소드

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