-
-
Notifications
You must be signed in to change notification settings - Fork 958
Expand file tree
/
Copy pathMessageOriginChat.php
More file actions
26 lines (23 loc) · 890 Bytes
/
Copy pathMessageOriginChat.php
File metadata and controls
26 lines (23 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
namespace Longman\TelegramBot\Entities\MessageOrigin;
use Longman\TelegramBot\Entities\Chat;
use Longman\TelegramBot\Entities\Entity;
/**
* The message was originally sent on behalf of a chat to a group chat.
*
* @link https://core.telegram.org/bots/api#messageoriginchat
*
* @method string getType() Type of the message origin, always “chat”
* @method int getDate() Date the message was sent originally in Unix time
* @method Chat getSenderChat() Chat that sent the message originally
* @method string getAuthorSignature() Optional. For messages originally sent by an anonymous chat administrator, original message author signature
*/
class MessageOriginChat extends Entity implements MessageOrigin
{
protected function subEntities(): array
{
return [
'sender_chat' => Chat::class,
];
}
}