mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 17:15:16 +00:00
35 lines
774 B
C++
35 lines
774 B
C++
![]() |
/*
|
||
|
This file is part of Telegram Desktop,
|
||
|
the official desktop application for the Telegram messaging service.
|
||
|
|
||
|
For license and copyright information please follow this link:
|
||
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||
|
*/
|
||
|
#include "data/business/data_business_chatbots.h"
|
||
|
|
||
|
namespace Data {
|
||
|
|
||
|
Chatbots::Chatbots(not_null<Session*> session)
|
||
|
: _session(session) {
|
||
|
}
|
||
|
|
||
|
Chatbots::~Chatbots() = default;
|
||
|
|
||
|
const ChatbotsSettings &Chatbots::current() const {
|
||
|
return _settings.current();
|
||
|
}
|
||
|
|
||
|
rpl::producer<ChatbotsSettings> Chatbots::changes() const {
|
||
|
return _settings.changes();
|
||
|
}
|
||
|
|
||
|
rpl::producer<ChatbotsSettings> Chatbots::value() const {
|
||
|
return _settings.value();
|
||
|
}
|
||
|
|
||
|
void Chatbots::save(ChatbotsSettings settings) {
|
||
|
_settings = settings;
|
||
|
}
|
||
|
|
||
|
} // namespace Data
|