From a1b462012c914cbeb0dc863d59a42facb4d545f7 Mon Sep 17 00:00:00 2001 From: "camilo.sperberg" Date: Mon, 10 Jun 2019 22:28:55 +0200 Subject: [PATCH] Add remaining Bot API v4.2 changes to the library --- src/Telegram/Types/ChatMember.php | 8 +++++++- src/Telegram/Types/Message.php | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Telegram/Types/ChatMember.php b/src/Telegram/Types/ChatMember.php index 2f8af78..ccea59f 100644 --- a/src/Telegram/Types/ChatMember.php +++ b/src/Telegram/Types/ChatMember.php @@ -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 */ @@ -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 diff --git a/src/Telegram/Types/Message.php b/src/Telegram/Types/Message.php index 072b65c..e7a2be9 100644 --- a/src/Telegram/Types/Message.php +++ b/src/Telegram/Types/Message.php @@ -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