|
2 | 2 |
|
3 | 3 | namespace Telegram\Bot\Objects; |
4 | 4 |
|
| 5 | +use Telegram\Bot\Objects\InlineKeyboard\InlineKeyboardMarkup; |
| 6 | +use Telegram\Bot\Objects\Passport\PassportData; |
| 7 | + |
5 | 8 | /** |
6 | 9 | * Class Message. |
7 | 10 | * |
|
12 | 15 | * @method Chat getChat() Conversation the message belongs to. |
13 | 16 | * @method User getForwardFrom() (Optional). For forwarded messages, sender of the original message. |
14 | 17 | * @method Chat getForwardFromChat() (Optional). For messages forwarded from a channel, information about the original channel |
15 | | - * @method string getForwardSignature() (Optional). For messages forwarded from channels, signature of the post author if present |
16 | | - * @method string getForwardSenderName() (Optional). Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages |
| 18 | + * @method string getForwardSignature() (Optional). For messages forwarded from channels, signature |
| 19 | + * of the post author if present |
| 20 | + * @method string getForwardSenderName() (Optional). Sender's name for messages forwarded from users |
| 21 | + * who disallow adding a link to their account in forwarded messages |
17 | 22 | * @method int getForwardDate() (Optional). For forwarded messages, date the original message was sent in Unix time. |
18 | 23 | * @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. |
19 | 24 | * @method int getEditDate() (Optional). Date the message was last edited in Unix time. |
|
48 | 53 | * @method Invoice getInvoice() (Optional). Message is an invoice for a payment, information about the invoice. |
49 | 54 | * @method SuccessfulPayment getSuccessfulPayment() (Optional). Message is a service message about a successful payment, information about the payment. |
50 | 55 | * @method string getConnectedWebsite() (Optional). The domain name of the website on which the user has logged in. |
51 | | - * @method PassportData getPassportData() (Optional). Telegram Passport data |
| 56 | + * @method PassportData getPassportData() (Optional). Telegram Passport data. |
| 57 | + * @method InlineKeyboardMarkup getReplyMarkup() (Optional). Inline keyboard attached to the message. |
52 | 58 | */ |
53 | 59 | class Message extends BaseObject |
54 | 60 | { |
@@ -82,7 +88,8 @@ public function relations() |
82 | 88 | 'pinned_message' => self::class, |
83 | 89 | 'invoice' => Invoice::class, |
84 | 90 | 'successful_payment' => SuccessfulPayment::class, |
85 | | - 'caption_entities' => MessageEntity::class |
| 91 | + 'caption_entities' => MessageEntity::class, |
| 92 | + 'passport_data' => PassportData::class, |
86 | 93 | ]; |
87 | 94 | } |
88 | 95 |
|
|
0 commit comments