Skip to content

Commit

Permalink
Add remaining Bot API v4.2 changes to the library
Browse files Browse the repository at this point in the history
  • Loading branch information
camilo.sperberg committed Jun 10, 2019
1 parent f52cfe9 commit a1b4620
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Telegram/Types/ChatMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* This object contains information about one member of the chat
*
* Objects defined as-is july 2017
* Objects defined as-is june 2019
*
* @see https://core.telegram.org/bots/api#chatmember
*/
Expand Down Expand Up @@ -89,6 +89,12 @@ class ChatMember extends TelegramTypes
*/
public $can_promote_members = false;

/**
* Optional. Restricted only. True, if the user is a member of the chat at the moment of the request
* @var bool
*/
public $is_member = false;

/**
* Optional. Restricted only. True, if the user can send text messages, contacts, locations and venues
* @var bool
Expand Down
7 changes: 7 additions & 0 deletions src/Telegram/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ class Message extends TelegramTypes
*/
public $forward_signature = '';

/**
* Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in
* forwarded messages
* @var string
*/
public $forward_sender_name = '';

/**
* Optional. For forwarded messages, date the original message was sent in Unix time
* @var int
Expand Down

0 comments on commit a1b4620

Please sign in to comment.