From c81f7d9d7a4fe9dc3b48b92fad633bd5c44b8e74 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 27 May 2018 17:50:32 +0900 Subject: Bot API 3.3 update --- include/tgbot/types/Chat.h | 2 +- include/tgbot/types/Message.h | 12 +++++++++++- include/tgbot/types/User.h | 5 +++++ 3 files changed, 17 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/tgbot/types/Chat.h b/include/tgbot/types/Chat.h index c5c397f..978d2c4 100644 --- a/include/tgbot/types/Chat.h +++ b/include/tgbot/types/Chat.h @@ -108,7 +108,7 @@ public: * Optional. Pinned message, for supergroups and channel chats. * Returned only in getChat. */ - Message::Ptr pinnedMessage; + std::shared_ptr pinnedMessage; /** * Optional. For supergroups, name of group sticker set. diff --git a/include/tgbot/types/Message.h b/include/tgbot/types/Message.h index ee293b9..b988c08 100644 --- a/include/tgbot/types/Message.h +++ b/include/tgbot/types/Message.h @@ -95,6 +95,11 @@ public: */ int32_t forwardFromMessageId; + /** + * Optional. For messages forwarded from channels, signature of the post author if present. + */ + std::string forwardSignature; + /** * Optional. For forwarded messages, date the original message was sent in Unix time. */ @@ -106,10 +111,15 @@ public: Message::Ptr replyToMessage; /** - * Optional. Date the message was last edited in Unix time + * Optional. Date the message was last edited in Unix time. */ int32_t editDate; + /** + * Optional. Signature of the post author for messages in channels. + */ + std::string authorSignature; + /** * Optional. For text messages, the actual UTF-8 text of the message. */ diff --git a/include/tgbot/types/User.h b/include/tgbot/types/User.h index f3a6960..7ee7da6 100644 --- a/include/tgbot/types/User.h +++ b/include/tgbot/types/User.h @@ -42,6 +42,11 @@ public: */ int32_t id; + /** + * True, if this user is a bot + */ + bool isBot = false; + /** * User‘s or bot’s first name. */ -- cgit v1.2.3