mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-11 22:23:49 +00:00
Update API scheme to layer 226. Guard-bots.
This commit is contained in:
@@ -603,6 +603,7 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
|
||||
info->userCreatesTopics = data.is_bot_forum_can_manage_topics();
|
||||
info->canManageBots = data.is_bot_can_manage_bots();
|
||||
info->supportsGuestChat = data.is_bot_guestchat();
|
||||
info->supportsGuard = data.is_bot_guard();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5580,6 +5581,15 @@ auto Session::webViewResultSent() const -> rpl::producer<WebViewResultSent> {
|
||||
return _webViewResultSent.events();
|
||||
}
|
||||
|
||||
void Session::joinChatWebViewDecision(JoinChatWebViewDecision &&decision) {
|
||||
return _joinChatWebViewDecision.fire(std::move(decision));
|
||||
}
|
||||
|
||||
auto Session::joinChatWebViewDecision() const
|
||||
-> rpl::producer<JoinChatWebViewDecision> {
|
||||
return _joinChatWebViewDecision.events();
|
||||
}
|
||||
|
||||
rpl::producer<not_null<PeerData*>> Session::peerDecorationsUpdated() const {
|
||||
return _peerDecorationsUpdated.events();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user