summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-09-09 16:57:08 +0200
committerllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-09-09 16:57:08 +0200
commit349a54107d23ab58cff9afccad27741fa3ad8937 (patch)
treec9afbddb9796f446b136600780e7817963d815c1 /src/TgTypeParser.cpp
parentc82fa054194126e400e7e87dabbdaf20d847703c (diff)
Update to API 5.6
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp
index e8a81d7..85b44e8 100644
--- a/src/TgTypeParser.cpp
+++ b/src/TgTypeParser.cpp
@@ -1519,7 +1519,7 @@ ChatMemberRestricted::Ptr TgTypeParser::parseJsonAndGetChatMemberRestricted(cons
result->canSendPolls = data.get<bool>("can_send_polls", false);
result->canSendOtherMessages = data.get<bool>("can_send_other_messages", false);
result->canAddWebPagePreviews = data.get<bool>("can_add_web_page_previews", false);
- result->untilDate = data.get<uint32_t>("until_date", 0);
+ result->untilDate = data.get<std::uint32_t>("until_date", 0);
return result;
}
@@ -1666,9 +1666,9 @@ ChatInviteLink::Ptr TgTypeParser::parseJsonAndGetChatInviteLink(const boost::pro
result->isPrimary = data.get<bool>("is_primary", false);
result->isRevoked = data.get<bool>("is_revoked", false);
result->name = data.get<std::string>("name", "");
- result->expireDate = data.get<std::int32_t>("expire_date", 0);
- result->memberLimit = data.get<std::int32_t>("member_limit", 0);
- result->pendingJoinRequestCount = data.get<std::int32_t>("pending_join_request_count", 0);
+ result->expireDate = data.get<std::uint32_t>("expire_date", 0);
+ result->memberLimit = data.get<std::uint32_t>("member_limit", 0);
+ result->pendingJoinRequestCount = data.get<std::uint32_t>("pending_join_request_count", 0);
return result;
}