| Server IP : 54.94.228.101 / Your IP : 172.28.20.13 Web Server : Apache System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/vinumday2_0/vendor/irazasyed/telegram-bot-sdk/src/Objects/ |
Upload File : |
<?php
namespace Telegram\Bot\Objects;
/**
* Class Message.
*
*
* @method int getMessageId() Unique message identifier.
* @method User getFrom() (Optional). Sender, can be empty for messages sent to channels.
* @method int getDate() Date the message was sent in Unix time.
* @method Chat getChat() Conversation the message belongs to.
* @method User getForwardFrom() (Optional). For forwarded messages, sender of the original message.
* @method int getForwardDate() (Optional). For forwarded messages, date the original message was sent in Unix time.
* @method Message getReplyToMessage() (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.
* @method string getText() (Optional). For text messages, the actual UTF-8 text of the message.
* @method Audio getAudio() (Optional). Message is an audio file, information about the file.
* @method Document getDocument() (Optional). Message is a general file, information about the file.
* @method PhotoSize[] getPhoto() (Optional). Message is a photo, available sizes of the photo.
* @method Sticker getSticker() (Optional). Message is a sticker, information about the sticker.
* @method Video getVideo() (Optional). Message is a video, information about the video.
* @method Voice getVoice() (Optional). Message is a voice message, information about the file.
* @method string getCaption() (Optional). Caption for the photo or video contact.
* @method Contact getContact() (Optional). Message is a shared contact, information about the contact.
* @method Location getLocation() (Optional). Message is a shared location, information about the location.
* @method User getNewChatParticipant() (Optional). A new member was added to the group, information about them (this member may be the bot itself).
* @method User getLeftChatParticipant() (Optional). A member was removed from the group, information about them (this member may be the bot itself).
* @method string getNewChatTitle() (Optional). A chat title was changed to this value.
* @method PhotoSize[] getNewChatPhoto() (Optional). A chat photo was change to this value.
* @method bool getDeleteChatPhoto() (Optional). Service message: the chat photo was deleted.
* @method bool getGroupChatCreated() (Optional). Service message: the group has been created.
* @method bool getSupergroupChatCreated() (Optional). Service message: the super group has been created.
* @method bool getChannelChatCreated() (Optional). Service message: the channel has been created.
* @method int getMigrateToChatId() (Optional). The group has been migrated to a supergroup with the specified identifier, not exceeding 1e13 by absolute value.
* @method int getMigrateFromChatId() (Optional). The supergroup has been migrated from a group with the specified identifier, not exceeding 1e13 by absolute value.
*/
class Message extends BaseObject
{
/**
* {@inheritdoc}
*/
public function relations()
{
return [
'chat' => Chat::class,
'from' => User::class,
'forward_from' => User::class,
'reply_to_message' => self::class,
'audio' => Audio::class,
'document' => Document::class,
'photo' => PhotoSize::class,
'sticker' => Sticker::class,
'video' => Video::class,
'voice' => Voice::class,
'contact' => Contact::class,
'location' => Location::class,
'new_chat_participant' => User::class,
'left_chat_participant' => User::class,
'new_chat_photo' => PhotoSize::class,
];
}
}