This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
327 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** | ||
* Represents an invite link for a chat. | ||
* @see https://core.telegram.org/bots/api#chatinvitelink | ||
*/ | ||
class ChatInviteLink | ||
{ | ||
/** | ||
* The invite link. If the link was created by another chat administrator, | ||
* then the second part of the link will be replaced with “…”. | ||
* @var string $invite_link | ||
*/ | ||
public $invite_link; | ||
|
||
/** | ||
* Creator of the link | ||
* @var User $creator | ||
*/ | ||
public $creator; | ||
|
||
/** | ||
* True, if the link is primary | ||
* @var bool $is_primary | ||
*/ | ||
public $is_primary; | ||
|
||
/** | ||
* True, if the link is revoked | ||
* @var bool $is_revoked | ||
*/ | ||
public $is_revoked; | ||
|
||
/** | ||
* Optional. Point in time (Unix timestamp) when the link will expire or has been expired | ||
* @var int $expire_date | ||
*/ | ||
public $expire_date; | ||
|
||
/** | ||
* Optional. Maximum number of users that can be members of the chat simultaneously | ||
* after joining the chat via this invite link; 1-99999 | ||
* @var int $member_limit | ||
*/ | ||
public $member_limit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** | ||
* This object represents changes in the status of a chat member. | ||
* @see https://core.telegram.org/bots/api#chatmemberupdated | ||
*/ | ||
class ChatMemberUpdated | ||
{ | ||
/** | ||
* Chat the user belongs to | ||
* @var Chat $chat | ||
*/ | ||
public $chat; | ||
|
||
/** | ||
* Performer of the action, which resulted in the change | ||
* @var User $from | ||
*/ | ||
public $from; | ||
|
||
/** | ||
* Date the change was done in Unix time | ||
* @var int $date | ||
*/ | ||
public $date; | ||
|
||
/** | ||
* Previous information about the chat member | ||
* @var ChatMember $old_chat_member | ||
*/ | ||
public $old_chat_member; | ||
|
||
/** | ||
* New information about the chat member | ||
* @var ChatMember $new_chat_member | ||
*/ | ||
public $new_chat_member; | ||
|
||
/** | ||
* Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only. | ||
* @var ChatInviteLink $invite_link | ||
*/ | ||
public $invite_link; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** | ||
* This object represents a service message about a change in auto-delete timer settings. | ||
* @see https://core.telegram.org/bots/api#voicechatended | ||
*/ | ||
class MessageAutoDeleteTimerChanged | ||
{ | ||
/** | ||
* New auto-delete time for messages in the chat | ||
* @var int $message_auto_delete_time | ||
*/ | ||
public $message_auto_delete_time; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.