28 lines
734 B
C++
28 lines
734 B
C++
|
//
|
||
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
|
||
|
//
|
||
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||
|
//
|
||
|
#include "td/telegram/AttachMenuManager.h"
|
||
|
|
||
|
#include "td/telegram/AuthManager.h"
|
||
|
#include "td/telegram/Td.h"
|
||
|
|
||
|
namespace td {
|
||
|
|
||
|
AttachMenuManager::AttachMenuManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) {
|
||
|
}
|
||
|
|
||
|
void AttachMenuManager::tear_down() {
|
||
|
parent_.reset();
|
||
|
}
|
||
|
|
||
|
void AttachMenuManager::get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const {
|
||
|
if (td_->auth_manager_->is_bot()) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
} // namespace td
|