-
-
Notifications
You must be signed in to change notification settings - Fork 959
Expand file tree
/
Copy pathChatMemberUpdated.php
More file actions
47 lines (43 loc) · 1.72 KB
/
Copy pathChatMemberUpdated.php
File metadata and controls
47 lines (43 loc) · 1.72 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Entities;
use Longman\TelegramBot\Entities\ChatMember\ChatMember;
use Longman\TelegramBot\Entities\ChatMember\Factory as ChatMemberFactory;
/**
* Class ChatMemberUpdated
*
* Represents changes in the status of a chat member
*
* @link https://core.telegram.org/bots/api#chatmemberupdated
*
* @method Chat getChat() Chat the user belongs to
* @method User getFrom() Performer of the action, which resulted in the change
* @method int getDate() Date the change was done in Unix time
* @method ChatMember getOldChatMember() Previous information about the chat member
* @method ChatMember getNewChatMember() New information about the chat member
* @method ChatInviteLink getInviteLink() Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
* @method bool getViaChatFolderInviteLink() Optional. True, if the user joined the chat via a chat folder invite link
*/
class ChatMemberUpdated extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities(): array
{
return [
'chat' => Chat::class,
'from' => User::class,
'old_chat_member' => ChatMemberFactory::class,
'new_chat_member' => ChatMemberFactory::class,
'invite_link' => ChatInviteLink::class,
];
}
}