2018-12-31 22:04:05 +03:00
|
|
|
//
|
2022-01-01 03:35:39 +03:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
|
2018-12-31 22:04:05 +03:00
|
|
|
//
|
|
|
|
// 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)
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
2021-09-16 18:23:10 +03:00
|
|
|
#include "td/telegram/ConnectionState.h"
|
2019-03-27 21:43:46 +03:00
|
|
|
#include "td/telegram/files/FileId.h"
|
2018-07-02 23:36:45 +03:00
|
|
|
#include "td/telegram/net/MtprotoHeader.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
#include "td/telegram/net/NetQuery.h"
|
2020-07-30 22:59:23 +03:00
|
|
|
#include "td/telegram/net/NetQueryStats.h"
|
2021-09-19 00:47:05 +03:00
|
|
|
#include "td/telegram/td_api.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
#include "td/telegram/TdCallback.h"
|
2022-06-10 16:44:53 +03:00
|
|
|
#include "td/telegram/TdDb.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
#include "td/telegram/TdParameters.h"
|
2021-09-19 00:47:05 +03:00
|
|
|
#include "td/telegram/telegram_api.h"
|
2018-06-08 01:19:34 +03:00
|
|
|
#include "td/telegram/TermsOfService.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-09-19 00:47:05 +03:00
|
|
|
#include "td/db/DbKey.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
#include "td/actor/actor.h"
|
2022-07-02 23:32:18 +03:00
|
|
|
#include "td/actor/MultiTimeout.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
#include "td/utils/buffer.h"
|
|
|
|
#include "td/utils/common.h"
|
|
|
|
#include "td/utils/Container.h"
|
2022-02-08 00:04:34 +03:00
|
|
|
#include "td/utils/FlatHashMap.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
#include "td/utils/logging.h"
|
2022-06-27 13:30:18 +03:00
|
|
|
#include "td/utils/Promise.h"
|
2018-12-31 22:04:05 +03:00
|
|
|
#include "td/utils/Slice.h"
|
|
|
|
#include "td/utils/Status.h"
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
namespace td {
|
2018-05-08 23:02:15 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
class AnimationsManager;
|
2022-03-25 14:17:09 +03:00
|
|
|
class AttachMenuManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class AudiosManager;
|
|
|
|
class AuthManager;
|
2019-05-07 05:51:56 +03:00
|
|
|
class BackgroundManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class CallManager;
|
|
|
|
class CallbackQueriesManager;
|
|
|
|
class ConfigManager;
|
|
|
|
class ContactsManager;
|
2020-08-24 00:43:31 +03:00
|
|
|
class CountryInfoManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class DeviceTokenManager;
|
|
|
|
class DocumentsManager;
|
2022-02-23 19:34:09 +01:00
|
|
|
class DownloadManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class FileManager;
|
2019-01-03 18:26:44 +03:00
|
|
|
class FileReferenceManager;
|
2021-09-07 10:02:44 +03:00
|
|
|
class GameManager;
|
2020-11-24 18:22:00 +03:00
|
|
|
class GroupCallManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class InlineQueriesManager;
|
|
|
|
class HashtagHints;
|
2018-07-03 20:28:00 +03:00
|
|
|
class LanguagePackManager;
|
2021-05-25 02:24:30 +03:00
|
|
|
class LinkManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class MessagesManager;
|
|
|
|
class NetStatsManager;
|
2018-11-09 17:14:02 +03:00
|
|
|
class NotificationManager;
|
2022-04-05 00:40:22 +03:00
|
|
|
class NotificationSettingsManager;
|
2021-12-16 01:09:59 +03:00
|
|
|
class OptionManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class PasswordManager;
|
2018-07-02 23:36:45 +03:00
|
|
|
class PhoneNumberManager;
|
2019-02-19 16:45:32 +03:00
|
|
|
class PollManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class PrivacyManager;
|
2018-04-05 14:18:47 +03:00
|
|
|
class SecureManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class SecretChatsManager;
|
2021-09-07 15:49:34 +03:00
|
|
|
class SponsoredMessageManager;
|
2021-09-16 18:23:10 +03:00
|
|
|
class StateManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class StickersManager;
|
|
|
|
class StorageManager;
|
2021-08-27 15:51:50 +03:00
|
|
|
class ThemeManager;
|
2018-12-31 22:04:05 +03:00
|
|
|
class TopDialogManager;
|
|
|
|
class UpdatesManager;
|
|
|
|
class VideoNotesManager;
|
|
|
|
class VideosManager;
|
|
|
|
class VoiceNotesManager;
|
|
|
|
class WebPagesManager;
|
|
|
|
|
2018-10-24 18:42:40 +03:00
|
|
|
extern int VERBOSITY_NAME(td_init);
|
2020-10-05 18:07:23 +03:00
|
|
|
extern int VERBOSITY_NAME(td_requests);
|
2018-10-24 18:42:40 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
// Td may start closing after explicit "close" or "destroy" query.
|
|
|
|
// Or it may start closing by itself, because authorization is lost.
|
|
|
|
// It any case the parent will be notified via updateAuthorizationState.
|
|
|
|
//
|
|
|
|
// Td needs a way to know that it will receive no more queries.
|
|
|
|
// It happens after "hangup".
|
|
|
|
//
|
|
|
|
// Parent needs a way to know that it will receive no more updates.
|
|
|
|
// It happens after destruction of callback or after on_closed.
|
2021-09-10 18:58:36 +03:00
|
|
|
class Td final : public Actor {
|
2018-12-31 22:04:05 +03:00
|
|
|
public:
|
|
|
|
Td(const Td &) = delete;
|
|
|
|
Td(Td &&) = delete;
|
|
|
|
Td &operator=(const Td &) = delete;
|
|
|
|
Td &operator=(Td &&) = delete;
|
2021-07-03 23:51:36 +03:00
|
|
|
~Td() final;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2020-07-30 17:28:56 +03:00
|
|
|
struct Options {
|
2020-10-08 18:44:34 +03:00
|
|
|
std::shared_ptr<NetQueryStats> net_query_stats;
|
2020-07-30 17:28:56 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
Td(unique_ptr<TdCallback> callback, Options options);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void request(uint64 id, tl_object_ptr<td_api::Function> function);
|
|
|
|
|
|
|
|
void destroy();
|
|
|
|
|
2018-06-08 01:19:34 +03:00
|
|
|
void schedule_get_terms_of_service(int32 expires_in);
|
|
|
|
|
2020-04-30 21:00:58 +03:00
|
|
|
void schedule_get_promo_data(int32 expires_in);
|
|
|
|
|
2021-09-10 17:32:39 +03:00
|
|
|
void on_update(BufferSlice &&update);
|
|
|
|
|
2021-09-10 18:58:36 +03:00
|
|
|
void on_result(NetQueryPtr query);
|
2020-01-08 23:41:03 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_online_updated(bool force, bool send_update);
|
2021-12-16 13:13:14 +03:00
|
|
|
|
2018-03-10 17:10:23 +03:00
|
|
|
void on_update_status_success(bool is_online);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-01-31 12:18:40 +03:00
|
|
|
bool is_online() const;
|
|
|
|
|
2021-12-16 13:13:14 +03:00
|
|
|
void set_is_online(bool is_online);
|
|
|
|
|
2021-03-02 04:06:02 +03:00
|
|
|
void set_is_bot_online(bool is_bot_online);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
unique_ptr<AudiosManager> audios_manager_;
|
|
|
|
unique_ptr<CallbackQueriesManager> callback_queries_manager_;
|
|
|
|
unique_ptr<DocumentsManager> documents_manager_;
|
|
|
|
unique_ptr<VideoNotesManager> video_notes_manager_;
|
|
|
|
unique_ptr<VideosManager> videos_manager_;
|
|
|
|
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<AnimationsManager> animations_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<AnimationsManager> animations_manager_actor_;
|
2022-03-25 14:17:09 +03:00
|
|
|
unique_ptr<AttachMenuManager> attach_menu_manager_;
|
|
|
|
ActorOwn<AttachMenuManager> attach_menu_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<AuthManager> auth_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<AuthManager> auth_manager_actor_;
|
2019-05-07 05:51:56 +03:00
|
|
|
unique_ptr<BackgroundManager> background_manager_;
|
|
|
|
ActorOwn<BackgroundManager> background_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<ContactsManager> contacts_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<ContactsManager> contacts_manager_actor_;
|
2020-08-24 14:39:03 +03:00
|
|
|
unique_ptr<CountryInfoManager> country_info_manager_;
|
|
|
|
ActorOwn<CountryInfoManager> country_info_manager_actor_;
|
2022-02-23 19:34:09 +01:00
|
|
|
unique_ptr<DownloadManager> download_manager_;
|
2022-02-23 20:56:03 +01:00
|
|
|
ActorOwn<DownloadManager> download_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<FileManager> file_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<FileManager> file_manager_actor_;
|
2019-01-03 18:26:44 +03:00
|
|
|
unique_ptr<FileReferenceManager> file_reference_manager_;
|
|
|
|
ActorOwn<FileReferenceManager> file_reference_manager_actor_;
|
2021-09-07 10:02:44 +03:00
|
|
|
unique_ptr<GameManager> game_manager_;
|
|
|
|
ActorOwn<GameManager> game_manager_actor_;
|
2020-11-24 18:22:00 +03:00
|
|
|
unique_ptr<GroupCallManager> group_call_manager_;
|
|
|
|
ActorOwn<GroupCallManager> group_call_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<InlineQueriesManager> inline_queries_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<InlineQueriesManager> inline_queries_manager_actor_;
|
2021-05-25 02:24:30 +03:00
|
|
|
unique_ptr<LinkManager> link_manager_;
|
|
|
|
ActorOwn<LinkManager> link_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<MessagesManager> messages_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<MessagesManager> messages_manager_actor_;
|
2018-11-11 15:58:52 +03:00
|
|
|
unique_ptr<NotificationManager> notification_manager_;
|
|
|
|
ActorOwn<NotificationManager> notification_manager_actor_;
|
2022-04-05 00:40:22 +03:00
|
|
|
unique_ptr<NotificationSettingsManager> notification_settings_manager_;
|
|
|
|
ActorOwn<NotificationSettingsManager> notification_settings_manager_actor_;
|
2021-12-16 01:09:59 +03:00
|
|
|
unique_ptr<OptionManager> option_manager_;
|
|
|
|
ActorOwn<OptionManager> option_manager_actor_;
|
2019-02-19 16:45:32 +03:00
|
|
|
unique_ptr<PollManager> poll_manager_;
|
|
|
|
ActorOwn<PollManager> poll_manager_actor_;
|
2021-09-07 15:49:34 +03:00
|
|
|
unique_ptr<SponsoredMessageManager> sponsored_message_manager_;
|
|
|
|
ActorOwn<SponsoredMessageManager> sponsored_message_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<StickersManager> stickers_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<StickersManager> stickers_manager_actor_;
|
2021-08-27 15:51:50 +03:00
|
|
|
unique_ptr<ThemeManager> theme_manager_;
|
|
|
|
ActorOwn<ThemeManager> theme_manager_actor_;
|
2021-09-24 23:17:38 +03:00
|
|
|
unique_ptr<TopDialogManager> top_dialog_manager_;
|
|
|
|
ActorOwn<TopDialogManager> top_dialog_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<UpdatesManager> updates_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<UpdatesManager> updates_manager_actor_;
|
2022-05-27 19:07:37 +03:00
|
|
|
unique_ptr<VoiceNotesManager> voice_notes_manager_;
|
|
|
|
ActorOwn<VoiceNotesManager> voice_notes_manager_actor_;
|
2018-09-27 04:19:03 +03:00
|
|
|
unique_ptr<WebPagesManager> web_pages_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<WebPagesManager> web_pages_manager_actor_;
|
|
|
|
|
|
|
|
ActorOwn<CallManager> call_manager_;
|
2018-06-27 21:26:52 +03:00
|
|
|
ActorOwn<PhoneNumberManager> change_phone_number_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<ConfigManager> config_manager_;
|
2018-06-27 21:26:52 +03:00
|
|
|
ActorOwn<PhoneNumberManager> confirm_phone_number_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<DeviceTokenManager> device_token_manager_;
|
|
|
|
ActorOwn<HashtagHints> hashtag_hints_;
|
2018-07-03 20:28:00 +03:00
|
|
|
ActorOwn<LanguagePackManager> language_pack_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<NetStatsManager> net_stats_manager_;
|
|
|
|
ActorOwn<PasswordManager> password_manager_;
|
|
|
|
ActorOwn<PrivacyManager> privacy_manager_;
|
2018-04-05 14:18:47 +03:00
|
|
|
ActorOwn<SecureManager> secure_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
ActorOwn<SecretChatsManager> secret_chats_manager_;
|
|
|
|
ActorOwn<StateManager> state_manager_;
|
|
|
|
ActorOwn<StorageManager> storage_manager_;
|
2018-06-27 21:26:52 +03:00
|
|
|
ActorOwn<PhoneNumberManager> verify_phone_number_manager_;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
class ResultHandler : public std::enable_shared_from_this<ResultHandler> {
|
|
|
|
public:
|
|
|
|
ResultHandler() = default;
|
|
|
|
ResultHandler(const ResultHandler &) = delete;
|
|
|
|
ResultHandler &operator=(const ResultHandler &) = delete;
|
|
|
|
virtual ~ResultHandler() = default;
|
2020-01-08 23:41:03 +03:00
|
|
|
|
2021-11-08 14:19:57 +03:00
|
|
|
virtual void on_result(BufferSlice packet) {
|
2018-12-31 22:04:05 +03:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
2021-11-08 14:19:57 +03:00
|
|
|
|
|
|
|
virtual void on_error(Status status) {
|
2018-12-31 22:04:05 +03:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
|
|
|
|
friend class Td;
|
|
|
|
|
|
|
|
protected:
|
2020-01-08 23:41:03 +03:00
|
|
|
void send_query(NetQueryPtr query);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-11-08 15:20:38 +03:00
|
|
|
Td *td_ = nullptr;
|
2021-11-12 14:47:51 +03:00
|
|
|
bool is_query_sent_ = false;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
private:
|
2021-11-08 15:20:38 +03:00
|
|
|
void set_td(Td *td);
|
2018-12-31 22:04:05 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class HandlerT, class... Args>
|
2021-12-10 00:27:13 +03:00
|
|
|
std::shared_ptr<HandlerT> create_handler(Args &&...args) {
|
2019-03-18 01:51:43 +03:00
|
|
|
LOG_CHECK(close_flag_ < 2) << close_flag_
|
|
|
|
#if TD_CLANG || TD_GCC
|
|
|
|
<< ' ' << __PRETTY_FUNCTION__
|
|
|
|
#endif
|
|
|
|
;
|
2018-12-31 22:04:05 +03:00
|
|
|
auto ptr = std::make_shared<HandlerT>(std::forward<Args>(args)...);
|
|
|
|
ptr->set_td(this);
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void send_update(tl_object_ptr<td_api::Update> &&object);
|
|
|
|
|
|
|
|
static td_api::object_ptr<td_api::Object> static_request(td_api::object_ptr<td_api::Function> function);
|
|
|
|
|
|
|
|
private:
|
2018-02-11 21:33:32 +03:00
|
|
|
static constexpr int64 ONLINE_ALARM_ID = 0;
|
|
|
|
static constexpr int64 PING_SERVER_ALARM_ID = -1;
|
|
|
|
static constexpr int32 PING_SERVER_TIMEOUT = 300;
|
2018-06-08 01:19:34 +03:00
|
|
|
static constexpr int64 TERMS_OF_SERVICE_ALARM_ID = -2;
|
2020-04-30 21:00:58 +03:00
|
|
|
static constexpr int64 PROMO_DATA_ALARM_ID = -3;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-09-16 18:23:10 +03:00
|
|
|
void on_connection_state_changed(ConnectionState new_state);
|
2020-01-08 23:41:03 +03:00
|
|
|
|
2022-06-10 16:44:53 +03:00
|
|
|
void run_request(uint64 id, tl_object_ptr<td_api::Function> function);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void send_result(uint64 id, tl_object_ptr<td_api::Object> object);
|
|
|
|
void send_error(uint64 id, Status error);
|
|
|
|
void send_error_impl(uint64 id, tl_object_ptr<td_api::error> error);
|
|
|
|
void send_error_raw(uint64 id, int32 code, CSlice error);
|
|
|
|
void answer_ok_query(uint64 id, Status status);
|
|
|
|
|
2020-08-02 23:03:06 +03:00
|
|
|
ActorShared<Td> create_reference();
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void inc_actor_refcnt();
|
|
|
|
void dec_actor_refcnt();
|
|
|
|
|
|
|
|
void inc_request_actor_refcnt();
|
|
|
|
void dec_request_actor_refcnt();
|
|
|
|
|
2020-08-02 23:03:06 +03:00
|
|
|
void close();
|
2018-02-09 13:29:50 +03:00
|
|
|
void on_closed();
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void dec_stop_cnt();
|
|
|
|
|
2020-10-09 15:39:30 +03:00
|
|
|
unique_ptr<TdCallback> callback_;
|
|
|
|
Options td_options_;
|
|
|
|
|
2018-07-02 23:36:45 +03:00
|
|
|
MtprotoHeader::Options options_;
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
TdParameters parameters_;
|
|
|
|
|
2021-09-16 18:23:10 +03:00
|
|
|
ConnectionState connection_state_ = ConnectionState::Empty;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
std::unordered_multiset<uint64> request_set_;
|
|
|
|
int actor_refcnt_ = 0;
|
|
|
|
int request_actor_refcnt_ = 0;
|
|
|
|
int stop_cnt_ = 2;
|
|
|
|
bool destroy_flag_ = false;
|
|
|
|
int close_flag_ = 0;
|
|
|
|
|
2018-04-19 16:08:30 +03:00
|
|
|
enum class State : int32 { WaitParameters, Decrypt, Run, Close } state_ = State::WaitParameters;
|
2022-06-10 16:44:53 +03:00
|
|
|
uint64 init_request_id_ = 0;
|
2022-06-21 02:02:48 +03:00
|
|
|
uint64 set_parameters_request_id_ = 0;
|
2019-01-06 22:59:17 +03:00
|
|
|
bool is_database_encrypted_ = false;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2022-02-07 20:41:07 +01:00
|
|
|
FlatHashMap<uint64, std::shared_ptr<ResultHandler>> result_handlers_;
|
2018-12-31 22:04:05 +03:00
|
|
|
enum : int8 { RequestActorIdType = 1, ActorIdType = 2 };
|
|
|
|
Container<ActorOwn<Actor>> request_actors_;
|
|
|
|
|
|
|
|
bool is_online_ = false;
|
2021-03-02 04:06:02 +03:00
|
|
|
bool is_bot_online_ = false;
|
2018-03-10 14:41:59 +03:00
|
|
|
NetQueryRef update_status_query_;
|
2018-02-09 18:59:13 +03:00
|
|
|
|
|
|
|
int64 alarm_id_ = 1;
|
2022-02-07 20:41:07 +01:00
|
|
|
FlatHashMap<int64, uint64> pending_alarms_;
|
2018-08-01 20:31:20 +03:00
|
|
|
MultiTimeout alarm_timeout_{"AlarmTimeout"};
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-09-20 23:08:55 +03:00
|
|
|
TermsOfService pending_terms_of_service_;
|
|
|
|
|
2019-03-27 21:43:46 +03:00
|
|
|
struct DownloadInfo {
|
2022-05-11 17:17:20 +03:00
|
|
|
int64 offset = -1;
|
|
|
|
int64 limit = -1;
|
2019-03-27 21:43:46 +03:00
|
|
|
vector<uint64> request_ids;
|
|
|
|
};
|
2022-02-07 20:41:07 +01:00
|
|
|
FlatHashMap<FileId, DownloadInfo, FileIdHash> pending_file_downloads_;
|
2019-03-27 21:43:46 +03:00
|
|
|
|
2018-05-15 23:04:27 +03:00
|
|
|
vector<std::pair<uint64, td_api::object_ptr<td_api::Function>>> pending_preauthentication_requests_;
|
|
|
|
|
2022-06-21 02:02:48 +03:00
|
|
|
vector<std::pair<uint64, td_api::object_ptr<td_api::Function>>> pending_set_parameters_requests_;
|
2022-06-10 16:44:53 +03:00
|
|
|
vector<std::pair<uint64, td_api::object_ptr<td_api::Function>>> pending_init_requests_;
|
|
|
|
|
2018-05-16 22:35:27 +03:00
|
|
|
template <class T>
|
|
|
|
void complete_pending_preauthentication_requests(const T &func);
|
|
|
|
|
2018-09-20 19:33:41 +03:00
|
|
|
td_api::object_ptr<td_api::AuthorizationState> get_fake_authorization_state_object() const;
|
|
|
|
|
2022-07-11 15:36:29 +03:00
|
|
|
vector<td_api::object_ptr<td_api::Update>> get_fake_current_state() const;
|
|
|
|
|
2018-02-09 18:59:13 +03:00
|
|
|
static void on_alarm_timeout_callback(void *td_ptr, int64 alarm_id);
|
|
|
|
void on_alarm_timeout(int64 alarm_id);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-09-20 23:08:55 +03:00
|
|
|
td_api::object_ptr<td_api::updateTermsOfService> get_update_terms_of_service_object() const;
|
|
|
|
|
2018-06-08 01:19:34 +03:00
|
|
|
void on_get_terms_of_service(Result<std::pair<int32, TermsOfService>> result, bool dummy);
|
2020-04-30 21:00:58 +03:00
|
|
|
|
2021-10-19 18:11:16 +03:00
|
|
|
void on_get_promo_data(Result<telegram_api::object_ptr<telegram_api::help_PromoData>> r_promo_data, bool dummy);
|
2018-06-08 01:19:34 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
template <class T>
|
2018-04-09 17:20:12 +03:00
|
|
|
friend class RequestActor; // uses send_result/send_error
|
2018-08-08 22:55:54 +03:00
|
|
|
friend class AuthManager; // uses send_result/send_error, TODO pass Promise<>
|
|
|
|
friend class PhoneNumberManager; // uses send_result/send_error, TODO pass Promise<>
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void add_handler(uint64 id, std::shared_ptr<ResultHandler> handler);
|
|
|
|
std::shared_ptr<ResultHandler> extract_handler(uint64 id);
|
|
|
|
|
2018-05-16 18:40:26 +03:00
|
|
|
void clear_requests();
|
|
|
|
|
2019-03-27 21:43:46 +03:00
|
|
|
void on_file_download_finished(FileId file_id);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
class OnRequest;
|
|
|
|
|
|
|
|
class DownloadFileCallback;
|
|
|
|
|
|
|
|
std::shared_ptr<DownloadFileCallback> download_file_callback_;
|
|
|
|
|
|
|
|
class UploadFileCallback;
|
|
|
|
|
|
|
|
std::shared_ptr<UploadFileCallback> upload_file_callback_;
|
|
|
|
|
2020-09-02 23:35:54 +03:00
|
|
|
std::shared_ptr<ActorContext> old_context_;
|
|
|
|
|
2018-09-29 07:04:28 +03:00
|
|
|
static int *get_log_verbosity_level(Slice name);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
template <class T>
|
2018-10-01 05:22:56 +03:00
|
|
|
Promise<T> create_request_promise(uint64 id) {
|
|
|
|
return PromiseCreator::lambda([id = id, actor_id = actor_id(this)](Result<T> r_state) {
|
|
|
|
if (r_state.is_error()) {
|
|
|
|
send_closure(actor_id, &Td::send_error, id, r_state.move_as_error());
|
|
|
|
} else {
|
|
|
|
send_closure(actor_id, &Td::send_result, id, r_state.move_as_ok());
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2018-04-11 21:13:46 +03:00
|
|
|
|
|
|
|
Promise<Unit> create_ok_request_promise(uint64 id);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-05-15 23:04:27 +03:00
|
|
|
static bool is_authentication_request(int32 id);
|
|
|
|
|
2022-07-11 13:33:56 +03:00
|
|
|
static bool is_synchronous_request(const td_api::Function *function);
|
2018-05-15 23:04:27 +03:00
|
|
|
|
|
|
|
static bool is_preinitialization_request(int32 id);
|
|
|
|
|
|
|
|
static bool is_preauthentication_request(int32 id);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
template <class T>
|
|
|
|
void on_request(uint64 id, const T &request) = delete;
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setTdlibParameters &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::checkDatabaseEncryptionKey &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setDatabaseEncryptionKey &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getAuthorizationState &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setAuthenticationPhoneNumber &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resendAuthenticationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationCode &request);
|
|
|
|
|
2019-07-16 22:08:34 +03:00
|
|
|
void on_request(uint64 id, td_api::registerUser &request);
|
|
|
|
|
2019-12-17 19:17:57 +03:00
|
|
|
void on_request(uint64 id, td_api::requestQrCodeAuthentication &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationPassword &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::requestAuthenticationPasswordRecovery &request);
|
|
|
|
|
2021-06-28 22:33:08 +03:00
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationPasswordRecoveryCode &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::recoverAuthenticationPassword &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::logOut &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::close &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::destroy &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationBotToken &request);
|
|
|
|
|
2019-12-17 19:17:57 +03:00
|
|
|
void on_request(uint64 id, td_api::confirmQrCodeAuthentication &request);
|
|
|
|
|
2018-09-20 19:33:41 +03:00
|
|
|
void on_request(uint64 id, const td_api::getCurrentState &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::getPasswordState &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setPassword &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getRecoveryEmailAddress &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setRecoveryEmailAddress &request);
|
|
|
|
|
2019-02-10 23:16:52 +03:00
|
|
|
void on_request(uint64 id, td_api::checkRecoveryEmailAddressCode &request);
|
|
|
|
|
2019-02-10 23:32:49 +03:00
|
|
|
void on_request(uint64 id, const td_api::resendRecoveryEmailAddressCode &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::requestPasswordRecovery &request);
|
|
|
|
|
2021-06-28 23:47:54 +03:00
|
|
|
void on_request(uint64 id, td_api::checkPasswordRecoveryCode &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::recoverPassword &request);
|
|
|
|
|
2021-06-29 05:16:48 +03:00
|
|
|
void on_request(uint64 id, const td_api::resetPassword &request);
|
|
|
|
|
2021-06-30 19:49:52 +03:00
|
|
|
void on_request(uint64 id, const td_api::cancelPasswordReset &request);
|
2021-06-29 05:24:55 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::getTemporaryPasswordState &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::createTemporaryPassword &request);
|
|
|
|
|
2018-12-24 03:12:59 +03:00
|
|
|
void on_request(uint64 id, td_api::processPushNotification &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::registerDevice &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getUserPrivacySettingRules &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setUserPrivacySettingRules &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getAccountTtl &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setAccountTtl &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::deleteAccount &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::changePhoneNumber &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::checkChangePhoneNumberCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::resendChangePhoneNumberCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getActiveSessions &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::terminateSession &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::terminateAllOtherSessions &request);
|
|
|
|
|
2021-11-24 17:59:17 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleSessionCanAcceptCalls &request);
|
|
|
|
|
2021-11-16 15:22:00 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleSessionCanAcceptSecretChats &request);
|
|
|
|
|
2021-11-24 14:03:35 +03:00
|
|
|
void on_request(uint64 id, const td_api::setInactiveSessionTtl &request);
|
2021-11-16 16:04:19 +03:00
|
|
|
|
2018-02-07 02:31:38 +03:00
|
|
|
void on_request(uint64 id, const td_api::getConnectedWebsites &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::disconnectWebsite &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::disconnectAllWebsites &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMe &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getUser &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getUserFullInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getBasicGroup &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getBasicGroupFullInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getSupergroup &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getSupergroupFullInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getSecretChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getMessage &request);
|
|
|
|
|
2019-01-09 05:57:43 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageLocally &request);
|
|
|
|
|
2018-02-07 02:31:38 +03:00
|
|
|
void on_request(uint64 id, const td_api::getRepliedMessage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getChatPinnedMessage &request);
|
|
|
|
|
2020-10-29 01:06:07 +03:00
|
|
|
void on_request(uint64 id, const td_api::getCallbackQueryMessage &request);
|
|
|
|
|
2020-09-22 17:27:35 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageThread &request);
|
|
|
|
|
2021-09-03 16:14:03 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageViewers &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessages &request);
|
|
|
|
|
2021-12-21 14:19:48 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatSponsoredMessage &request);
|
2021-08-24 23:44:47 +03:00
|
|
|
|
2019-04-08 04:50:26 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageLink &request);
|
2019-04-08 02:42:16 +03:00
|
|
|
|
2020-09-20 18:17:47 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageEmbeddingCode &request);
|
|
|
|
|
2019-08-05 12:12:59 +03:00
|
|
|
void on_request(uint64 id, td_api::getMessageLinkInfo &request);
|
|
|
|
|
2022-01-29 23:43:57 +03:00
|
|
|
void on_request(uint64 id, td_api::translateText &request);
|
2022-01-14 22:28:28 +03:00
|
|
|
|
2022-05-25 21:18:40 +03:00
|
|
|
void on_request(uint64 id, const td_api::recognizeSpeech &request);
|
|
|
|
|
2022-05-26 20:40:43 +03:00
|
|
|
void on_request(uint64 id, const td_api::rateSpeechRecognition &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getFile &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getRemoteFile &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getStorageStatistics &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getStorageStatisticsFast &request);
|
|
|
|
|
2019-04-17 12:17:51 +03:00
|
|
|
void on_request(uint64 id, td_api::getDatabaseStatistics &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::optimizeStorage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getNetworkStatistics &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::resetNetworkStatistics &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::addNetworkStatistics &request);
|
|
|
|
|
2019-05-14 02:03:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::setNetworkType &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getAutoDownloadSettingsPresets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setAutoDownloadSettings &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-09-25 11:37:32 +03:00
|
|
|
void on_request(uint64 id, const td_api::getTopChats &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::removeTopChat &request);
|
|
|
|
|
2021-08-10 17:52:31 +03:00
|
|
|
void on_request(uint64 id, const td_api::loadChats &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChats &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchPublicChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchPublicChats &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchChats &request);
|
|
|
|
|
2018-01-16 21:56:59 +03:00
|
|
|
void on_request(uint64 id, td_api::searchChatsOnServer &request);
|
|
|
|
|
2019-10-16 21:55:16 +03:00
|
|
|
void on_request(uint64 id, const td_api::searchChatsNearby &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::addRecentlyFoundChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::removeRecentlyFoundChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::clearRecentlyFoundChats &request);
|
|
|
|
|
2021-09-14 14:18:37 +03:00
|
|
|
void on_request(uint64 id, const td_api::getRecentlyOpenedChats &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getGroupsInCommon &request);
|
|
|
|
|
2018-03-02 02:19:00 +03:00
|
|
|
void on_request(uint64 id, td_api::checkChatUsername &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getCreatedPublicChats &request);
|
|
|
|
|
2019-10-22 14:06:46 +03:00
|
|
|
void on_request(uint64 id, const td_api::checkCreatedPublicChatsLimit &request);
|
|
|
|
|
2019-09-13 20:25:17 +03:00
|
|
|
void on_request(uint64 id, const td_api::getSuitableDiscussionChats &request);
|
|
|
|
|
2019-12-13 17:27:44 +03:00
|
|
|
void on_request(uint64 id, const td_api::getInactiveSupergroupChats &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::openChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::closeChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::viewMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::openMessageContent &request);
|
|
|
|
|
2021-09-16 00:41:40 +03:00
|
|
|
void on_request(uint64 id, const td_api::clickAnimatedEmojiMessage &request);
|
|
|
|
|
2021-06-01 05:41:32 +03:00
|
|
|
void on_request(uint64 id, const td_api::getInternalLinkType &request);
|
|
|
|
|
2021-03-16 00:52:37 +03:00
|
|
|
void on_request(uint64 id, td_api::getExternalLinkInfo &request);
|
|
|
|
|
2021-02-04 14:36:11 +03:00
|
|
|
void on_request(uint64 id, td_api::getExternalLink &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatHistory &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::deleteChatHistory &request);
|
|
|
|
|
2021-01-20 14:49:18 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteChat &request);
|
|
|
|
|
2020-09-30 04:26:39 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageThreadHistory &request);
|
|
|
|
|
2021-10-30 03:34:49 +03:00
|
|
|
void on_request(uint64 id, td_api::getChatMessageCalendar &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::searchChatMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchSecretMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchMessages &request);
|
|
|
|
|
2022-02-22 15:58:16 +03:00
|
|
|
void on_request(uint64 id, const td_api::searchCallMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchOutgoingDocumentMessages &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-01-19 13:21:50 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteAllCallMessages &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::searchChatRecentLocationMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getActiveLiveLocationMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getChatMessageByDate &request);
|
|
|
|
|
2021-10-15 17:40:30 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatSparseMessagePositions &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getChatMessageCount &request);
|
2018-07-19 16:58:09 +03:00
|
|
|
|
2019-12-04 20:06:39 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatScheduledMessages &request);
|
|
|
|
|
2022-01-26 15:25:03 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageAvailableReactions &request);
|
|
|
|
|
2022-01-21 20:39:55 +03:00
|
|
|
void on_request(uint64 id, td_api::setMessageReaction &request);
|
|
|
|
|
2022-01-27 01:52:21 +03:00
|
|
|
void on_request(uint64 id, td_api::getMessageAddedReactions &request);
|
2022-01-21 16:46:16 +03:00
|
|
|
|
2020-08-21 14:47:43 +03:00
|
|
|
void on_request(uint64 id, td_api::getMessagePublicForwards &request);
|
|
|
|
|
2018-11-08 21:00:03 +03:00
|
|
|
void on_request(uint64 id, const td_api::removeNotification &request);
|
|
|
|
|
2018-11-10 01:56:00 +03:00
|
|
|
void on_request(uint64 id, const td_api::removeNotificationGroup &request);
|
2018-11-08 21:00:03 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteMessages &request);
|
|
|
|
|
2021-11-19 15:48:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteChatMessagesBySender &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-10-25 20:39:22 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteChatMessagesByDate &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::readAllChatMentions &request);
|
|
|
|
|
2022-01-30 12:37:24 +03:00
|
|
|
void on_request(uint64 id, const td_api::readAllChatReactions &request);
|
|
|
|
|
2021-11-12 17:11:01 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatAvailableMessageSenders &request);
|
|
|
|
|
2021-12-21 13:49:26 +03:00
|
|
|
void on_request(uint64 id, const td_api::setChatMessageSender &request);
|
2021-11-15 17:08:37 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::sendMessage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendMessageAlbum &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendBotStartMessage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendInlineQueryResultMessage &request);
|
|
|
|
|
2018-03-26 23:20:56 +03:00
|
|
|
void on_request(uint64 id, td_api::addLocalMessage &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::editMessageText &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editMessageLiveLocation &request);
|
|
|
|
|
2018-06-19 02:31:34 +03:00
|
|
|
void on_request(uint64 id, td_api::editMessageMedia &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::editMessageCaption &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editMessageReplyMarkup &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editInlineMessageText &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editInlineMessageLiveLocation &request);
|
|
|
|
|
2018-06-19 02:31:34 +03:00
|
|
|
void on_request(uint64 id, td_api::editInlineMessageMedia &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::editInlineMessageCaption &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editInlineMessageReplyMarkup &request);
|
|
|
|
|
2019-12-03 04:36:23 +03:00
|
|
|
void on_request(uint64 id, td_api::editMessageSchedulingState &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setGameScore &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setInlineGameScore &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getGameHighScores &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getInlineGameHighScores &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::deleteChatReplyMarkup &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendChatAction &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendChatScreenshotTakenNotification &request);
|
|
|
|
|
2019-12-06 02:32:23 +03:00
|
|
|
void on_request(uint64 id, td_api::forwardMessages &request);
|
2019-08-11 04:05:00 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resendMessages &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getWebPagePreview &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getWebPageInstantView &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::createPrivateChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::createBasicGroupChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::createSupergroupChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::createSecretChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::createNewBasicGroupChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::createNewSupergroupChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::createNewSecretChat &request);
|
|
|
|
|
2020-08-10 11:34:28 +03:00
|
|
|
void on_request(uint64 id, const td_api::createCall &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2020-08-10 11:34:28 +03:00
|
|
|
void on_request(uint64 id, const td_api::acceptCall &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2020-08-10 11:34:28 +03:00
|
|
|
void on_request(uint64 id, td_api::sendCallSignalingData &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::discardCall &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendCallRating &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendCallDebugInformation &request);
|
|
|
|
|
2022-04-22 15:16:09 +03:00
|
|
|
void on_request(uint64 id, td_api::sendCallLog &request);
|
|
|
|
|
2021-10-14 15:44:21 +03:00
|
|
|
void on_request(uint64 id, const td_api::getVideoChatAvailableParticipants &request);
|
2021-03-08 20:25:56 +03:00
|
|
|
|
2021-10-14 15:44:21 +03:00
|
|
|
void on_request(uint64 id, const td_api::setVideoChatDefaultParticipant &request);
|
2021-04-07 16:25:29 +03:00
|
|
|
|
2021-10-14 15:44:21 +03:00
|
|
|
void on_request(uint64 id, td_api::createVideoChat &request);
|
2022-02-25 17:58:03 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getVideoChatRtmpUrl &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::replaceVideoChatRtmpUrl &request);
|
2020-11-26 10:56:13 +03:00
|
|
|
|
2020-12-03 02:00:46 +03:00
|
|
|
void on_request(uint64 id, const td_api::getGroupCall &request);
|
|
|
|
|
2021-04-07 02:11:14 +03:00
|
|
|
void on_request(uint64 id, const td_api::startScheduledGroupCall &request);
|
|
|
|
|
2021-04-07 03:04:56 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallEnabledStartNotification &request);
|
|
|
|
|
2020-11-26 14:32:29 +03:00
|
|
|
void on_request(uint64 id, td_api::joinGroupCall &request);
|
|
|
|
|
2021-04-30 19:53:39 +03:00
|
|
|
void on_request(uint64 id, td_api::startGroupCallScreenSharing &request);
|
|
|
|
|
2021-04-30 20:21:07 +03:00
|
|
|
void on_request(uint64 id, const td_api::endGroupCallScreenSharing &request);
|
|
|
|
|
2021-03-02 19:44:57 +03:00
|
|
|
void on_request(uint64 id, td_api::setGroupCallTitle &request);
|
|
|
|
|
2020-12-08 17:51:37 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallMuteNewParticipants &request);
|
2020-11-27 01:58:36 +03:00
|
|
|
|
2021-03-12 19:31:52 +03:00
|
|
|
void on_request(uint64 id, const td_api::revokeGroupCallInviteLink &request);
|
2021-03-12 18:58:43 +03:00
|
|
|
|
2020-12-08 17:51:37 +03:00
|
|
|
void on_request(uint64 id, const td_api::inviteGroupCallParticipants &request);
|
2020-11-27 15:22:19 +03:00
|
|
|
|
2021-03-12 19:29:06 +03:00
|
|
|
void on_request(uint64 id, const td_api::getGroupCallInviteLink &request);
|
|
|
|
|
2021-03-11 22:19:19 +03:00
|
|
|
void on_request(uint64 id, td_api::startGroupCallRecording &request);
|
|
|
|
|
2021-06-04 01:17:15 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallScreenSharingIsPaused &request);
|
2021-06-02 00:38:08 +03:00
|
|
|
|
2021-03-11 22:19:19 +03:00
|
|
|
void on_request(uint64 id, const td_api::endGroupCallRecording &request);
|
|
|
|
|
2021-06-01 20:11:18 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallIsMyVideoPaused &request);
|
|
|
|
|
2021-05-02 02:40:22 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallIsMyVideoEnabled &request);
|
|
|
|
|
2020-12-08 17:51:37 +03:00
|
|
|
void on_request(uint64 id, const td_api::setGroupCallParticipantIsSpeaking &request);
|
2020-12-04 17:06:37 +03:00
|
|
|
|
2020-12-08 17:51:37 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallParticipantIsMuted &request);
|
2020-11-27 17:40:29 +03:00
|
|
|
|
2021-01-02 22:59:48 +03:00
|
|
|
void on_request(uint64 id, const td_api::setGroupCallParticipantVolumeLevel &request);
|
|
|
|
|
2021-03-15 01:56:59 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallParticipantIsHandRaised &request);
|
|
|
|
|
2020-12-11 19:39:27 +03:00
|
|
|
void on_request(uint64 id, const td_api::loadGroupCallParticipants &request);
|
|
|
|
|
2020-11-26 11:37:54 +03:00
|
|
|
void on_request(uint64 id, const td_api::leaveGroupCall &request);
|
|
|
|
|
2021-12-23 13:00:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::endGroupCall &request);
|
2020-11-26 11:21:26 +03:00
|
|
|
|
2022-02-22 17:42:58 +03:00
|
|
|
void on_request(uint64 id, const td_api::getGroupCallStreams &request);
|
|
|
|
|
2021-08-23 16:59:00 +03:00
|
|
|
void on_request(uint64 id, td_api::getGroupCallStreamSegment &request);
|
2021-03-10 22:50:14 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::upgradeBasicGroupChatToSupergroupChat &request);
|
|
|
|
|
2020-05-31 03:50:52 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatListsToAddChat &request);
|
|
|
|
|
2020-05-31 00:48:33 +03:00
|
|
|
void on_request(uint64 id, const td_api::addChatToList &request);
|
2019-08-27 17:23:01 +03:00
|
|
|
|
2020-05-18 02:29:28 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatFilter &request);
|
|
|
|
|
2020-05-19 04:03:15 +03:00
|
|
|
void on_request(uint64 id, const td_api::getRecommendedChatFilters &request);
|
|
|
|
|
2020-05-18 22:26:44 +03:00
|
|
|
void on_request(uint64 id, td_api::createChatFilter &request);
|
|
|
|
|
2020-05-19 00:47:34 +03:00
|
|
|
void on_request(uint64 id, td_api::editChatFilter &request);
|
|
|
|
|
2020-05-19 01:06:24 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteChatFilter &request);
|
|
|
|
|
2020-05-19 02:41:07 +03:00
|
|
|
void on_request(uint64 id, const td_api::reorderChatFilters &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatTitle &request);
|
|
|
|
|
2018-06-29 00:06:17 +03:00
|
|
|
void on_request(uint64 id, const td_api::setChatPhoto &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-12-21 14:06:15 +03:00
|
|
|
void on_request(uint64 id, const td_api::setChatMessageTtl &request);
|
2021-02-05 14:21:16 +03:00
|
|
|
|
2019-03-20 20:58:13 +03:00
|
|
|
void on_request(uint64 id, const td_api::setChatPermissions &request);
|
|
|
|
|
2021-08-27 19:23:22 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatTheme &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatDraftMessage &request);
|
|
|
|
|
2021-12-06 21:43:55 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatHasProtectedContent &request);
|
2021-11-25 11:44:51 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatIsPinned &request);
|
|
|
|
|
2018-06-28 00:08:44 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatIsMarkedAsUnread &request);
|
|
|
|
|
2020-10-18 01:54:32 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleMessageSenderIsBlocked &request);
|
2020-09-20 03:00:01 +03:00
|
|
|
|
2018-04-28 21:05:04 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatDefaultDisableNotification &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::setPinnedChats &request);
|
|
|
|
|
2022-04-14 22:56:27 +03:00
|
|
|
void on_request(uint64 id, const td_api::getAttachmentMenuBot &request);
|
2022-03-29 15:00:00 +03:00
|
|
|
|
2022-04-14 22:56:27 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleBotIsAddedToAttachmentMenu &request);
|
2022-03-26 23:41:22 +03:00
|
|
|
|
2022-01-05 16:23:35 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatAvailableReactions &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatClientData &request);
|
|
|
|
|
2019-03-18 05:24:25 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatDescription &request);
|
|
|
|
|
2019-09-14 05:35:56 +03:00
|
|
|
void on_request(uint64 id, const td_api::setChatDiscussionGroup &request);
|
|
|
|
|
2019-10-14 19:07:31 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatLocation &request);
|
|
|
|
|
2019-11-15 18:17:52 +03:00
|
|
|
void on_request(uint64 id, const td_api::setChatSlowModeDelay &request);
|
|
|
|
|
2019-02-01 15:19:32 +03:00
|
|
|
void on_request(uint64 id, const td_api::pinChatMessage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::unpinChatMessage &request);
|
|
|
|
|
2020-10-23 01:56:06 +03:00
|
|
|
void on_request(uint64 id, const td_api::unpinAllChatMessages &request);
|
|
|
|
|
2018-08-16 20:09:23 +03:00
|
|
|
void on_request(uint64 id, const td_api::joinChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::leaveChat &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::addChatMember &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::addChatMembers &request);
|
|
|
|
|
2022-04-04 16:19:41 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatMemberStatus &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-01-20 21:12:48 +03:00
|
|
|
void on_request(uint64 id, const td_api::banChatMember &request);
|
|
|
|
|
2019-10-17 19:43:41 +03:00
|
|
|
void on_request(uint64 id, const td_api::canTransferOwnership &request);
|
|
|
|
|
2019-10-17 17:05:01 +03:00
|
|
|
void on_request(uint64 id, td_api::transferChatOwnership &request);
|
|
|
|
|
2021-11-15 12:07:52 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatMember &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchChatMembers &request);
|
|
|
|
|
2021-11-15 12:07:52 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatAdministrators &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-02-24 12:19:55 +03:00
|
|
|
void on_request(uint64 id, const td_api::replacePrimaryChatInviteLink &request);
|
2021-02-02 02:00:28 +03:00
|
|
|
|
2021-10-27 13:04:34 +03:00
|
|
|
void on_request(uint64 id, td_api::createChatInviteLink &request);
|
2021-01-12 19:21:12 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editChatInviteLink &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2021-02-24 22:25:10 +03:00
|
|
|
void on_request(uint64 id, td_api::getChatInviteLink &request);
|
|
|
|
|
2021-02-02 19:23:45 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatInviteLinkCounts &request);
|
2021-01-18 22:35:28 +03:00
|
|
|
|
2021-01-14 19:39:51 +03:00
|
|
|
void on_request(uint64 id, td_api::getChatInviteLinks &request);
|
|
|
|
|
2021-01-17 23:07:17 +03:00
|
|
|
void on_request(uint64 id, td_api::getChatInviteLinkMembers &request);
|
2021-01-14 23:21:23 +03:00
|
|
|
|
2021-10-13 22:33:31 +03:00
|
|
|
void on_request(uint64 id, td_api::getChatJoinRequests &request);
|
|
|
|
|
2021-11-24 11:33:18 +03:00
|
|
|
void on_request(uint64 id, const td_api::processChatJoinRequest &request);
|
2021-10-13 23:10:47 +03:00
|
|
|
|
2021-11-24 12:02:23 +03:00
|
|
|
void on_request(uint64 id, td_api::processChatJoinRequests &request);
|
|
|
|
|
2021-02-02 19:23:45 +03:00
|
|
|
void on_request(uint64 id, td_api::revokeChatInviteLink &request);
|
|
|
|
|
2021-01-18 19:51:46 +03:00
|
|
|
void on_request(uint64 id, td_api::deleteRevokedChatInviteLink &request);
|
|
|
|
|
2021-01-18 19:59:21 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteAllRevokedChatInviteLinks &request);
|
2021-02-02 02:00:28 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::checkChatInviteLink &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::joinChatByInviteLink &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getChatEventLog &request);
|
|
|
|
|
2018-07-17 06:46:27 +03:00
|
|
|
void on_request(uint64 id, const td_api::clearAllDraftMessages &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::downloadFile &request);
|
|
|
|
|
2019-04-26 01:03:31 +03:00
|
|
|
void on_request(uint64 id, const td_api::getFileDownloadedPrefixSize &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::cancelDownloadFile &request);
|
|
|
|
|
2021-07-24 07:19:22 +03:00
|
|
|
void on_request(uint64 id, const td_api::getSuggestedFileName &request);
|
|
|
|
|
2022-07-18 14:07:50 +03:00
|
|
|
void on_request(uint64 id, td_api::preliminaryUploadFile &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2022-07-18 14:07:50 +03:00
|
|
|
void on_request(uint64 id, const td_api::cancelPreliminaryUploadFile &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2019-04-26 03:18:00 +03:00
|
|
|
void on_request(uint64 id, td_api::writeGeneratedFilePart &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::setFileGenerationProgress &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::finishFileGeneration &request);
|
|
|
|
|
2019-04-26 01:03:31 +03:00
|
|
|
void on_request(uint64 id, const td_api::readFilePart &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::deleteFile &request);
|
|
|
|
|
2022-02-18 01:37:04 +03:00
|
|
|
void on_request(uint64 id, const td_api::addFileToDownloads &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::toggleDownloadIsPaused &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::toggleAllDownloadsArePaused &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::removeFileFromDownloads &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::removeAllFilesFromDownloads &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchFileDownloads &request);
|
|
|
|
|
2021-01-22 19:14:35 +03:00
|
|
|
void on_request(uint64 id, td_api::getMessageFileType &request);
|
|
|
|
|
2021-02-23 02:03:24 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageImportConfirmationText &request);
|
|
|
|
|
2021-01-21 22:00:08 +03:00
|
|
|
void on_request(uint64 id, const td_api::importMessages &request);
|
|
|
|
|
2020-10-18 01:26:36 +03:00
|
|
|
void on_request(uint64 id, const td_api::blockMessageSenderFromReplies &request);
|
2020-09-24 15:29:34 +03:00
|
|
|
|
2020-10-18 02:10:58 +03:00
|
|
|
void on_request(uint64 id, const td_api::getBlockedMessageSenders &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2019-10-08 18:12:15 +03:00
|
|
|
void on_request(uint64 id, td_api::addContact &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::importContacts &request);
|
|
|
|
|
2018-08-16 20:09:23 +03:00
|
|
|
void on_request(uint64 id, const td_api::getContacts &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::searchContacts &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeContacts &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getImportedContactCount &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::changeImportedContacts &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::clearImportedContacts &request);
|
|
|
|
|
2022-02-18 18:13:10 +03:00
|
|
|
void on_request(uint64 id, td_api::searchUserByPhoneNumber &request);
|
|
|
|
|
2019-10-11 17:59:04 +03:00
|
|
|
void on_request(uint64 id, const td_api::sharePhoneNumber &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getRecentInlineBots &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setName &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setBio &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setUsername &request);
|
|
|
|
|
2020-03-28 01:43:52 +03:00
|
|
|
void on_request(uint64 id, td_api::setCommands &request);
|
|
|
|
|
2021-06-22 04:17:44 +03:00
|
|
|
void on_request(uint64 id, td_api::deleteCommands &request);
|
|
|
|
|
2021-06-19 04:18:02 +03:00
|
|
|
void on_request(uint64 id, td_api::getCommands &request);
|
|
|
|
|
2022-04-07 18:15:58 +03:00
|
|
|
void on_request(uint64 id, td_api::setMenuButton &request);
|
|
|
|
|
2022-04-07 17:20:26 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMenuButton &request);
|
|
|
|
|
2022-04-02 15:32:04 +03:00
|
|
|
void on_request(uint64 id, const td_api::setDefaultGroupAdministratorRights &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setDefaultChannelAdministratorRights &request);
|
|
|
|
|
2020-02-14 16:17:45 +03:00
|
|
|
void on_request(uint64 id, const td_api::setLocation &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setProfilePhoto &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::deleteProfilePhoto &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getUserProfilePhotos &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setSupergroupUsername &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setSupergroupStickerSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupSignMessages &request);
|
|
|
|
|
2022-04-29 18:25:29 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupJoinToSendMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupJoinByRequest &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupIsAllHistoryAvailable &request);
|
|
|
|
|
2021-02-17 01:06:35 +03:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupIsBroadcastGroup &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::reportSupergroupSpam &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getSupergroupMembers &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::closeSecretChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getStickers &request);
|
|
|
|
|
2018-03-09 20:04:44 +03:00
|
|
|
void on_request(uint64 id, td_api::searchStickers &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getInstalledStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getArchivedStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getTrendingStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getAttachedStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getStickerSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchStickerSet &request);
|
|
|
|
|
2018-03-06 01:44:11 +03:00
|
|
|
void on_request(uint64 id, td_api::searchInstalledStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchStickerSets &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::changeStickerSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::viewTrendingStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::reorderInstalledStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::uploadStickerFile &request);
|
|
|
|
|
2021-06-17 20:38:03 +03:00
|
|
|
void on_request(uint64 id, td_api::getSuggestedStickerSetName &request);
|
|
|
|
|
2021-06-17 21:29:07 +03:00
|
|
|
void on_request(uint64 id, td_api::checkStickerSetName &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::createNewStickerSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::addStickerToSet &request);
|
|
|
|
|
2020-03-20 16:36:07 +03:00
|
|
|
void on_request(uint64 id, td_api::setStickerSetThumbnail &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setStickerPositionInSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeStickerFromSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getRecentStickers &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::addRecentSticker &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeRecentSticker &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::clearRecentStickers &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getSavedAnimations &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::addSavedAnimation &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeSavedAnimation &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getStickerEmojis &request);
|
|
|
|
|
2019-05-21 18:48:35 +03:00
|
|
|
void on_request(uint64 id, td_api::searchEmojis &request);
|
|
|
|
|
2021-10-26 17:59:15 +03:00
|
|
|
void on_request(uint64 id, td_api::getAnimatedEmoji &request);
|
|
|
|
|
2019-05-21 22:44:13 +03:00
|
|
|
void on_request(uint64 id, td_api::getEmojiSuggestionsUrl &request);
|
|
|
|
|
2022-07-19 16:00:04 +03:00
|
|
|
void on_request(uint64 id, td_api::getCustomEmojiStickers &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getFavoriteStickers &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::addFavoriteSticker &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeFavoriteSticker &request);
|
|
|
|
|
2022-04-14 13:23:43 +03:00
|
|
|
void on_request(uint64 id, const td_api::getSavedNotificationSound &request);
|
|
|
|
|
2022-04-13 22:14:40 +03:00
|
|
|
void on_request(uint64 id, const td_api::getSavedNotificationSounds &request);
|
|
|
|
|
2022-04-14 22:39:25 +03:00
|
|
|
void on_request(uint64 id, td_api::addSavedNotificationSound &request);
|
|
|
|
|
2022-04-14 14:31:18 +03:00
|
|
|
void on_request(uint64 id, const td_api::removeSavedNotificationSound &request);
|
|
|
|
|
2019-02-14 21:44:20 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatNotificationSettingsExceptions &request);
|
|
|
|
|
2018-04-09 19:30:27 +03:00
|
|
|
void on_request(uint64 id, const td_api::getScopeNotificationSettings &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-04-09 19:30:27 +03:00
|
|
|
void on_request(uint64 id, td_api::setChatNotificationSettings &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setScopeNotificationSettings &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resetAllNotificationSettings &request);
|
|
|
|
|
2019-10-11 03:28:41 +03:00
|
|
|
void on_request(uint64 id, const td_api::removeChatActionBar &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::reportChat &request);
|
|
|
|
|
2021-02-19 19:11:27 +03:00
|
|
|
void on_request(uint64 id, td_api::reportChatPhoto &request);
|
|
|
|
|
2020-04-03 03:53:33 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatStatistics &request);
|
2020-04-02 15:06:05 +02:00
|
|
|
|
2020-08-01 05:19:54 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMessageStatistics &request);
|
|
|
|
|
2020-11-19 17:23:26 +03:00
|
|
|
void on_request(uint64 id, td_api::getStatisticalGraph &request);
|
2020-04-02 15:06:05 +02:00
|
|
|
|
2018-08-13 23:18:27 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMapThumbnailFile &request);
|
|
|
|
|
2018-09-04 04:29:26 +03:00
|
|
|
void on_request(uint64 id, const td_api::getLocalizationTargetInfo &request);
|
2018-07-03 20:28:00 +03:00
|
|
|
|
2019-02-12 04:15:45 +03:00
|
|
|
void on_request(uint64 id, td_api::getLanguagePackInfo &request);
|
|
|
|
|
2018-07-03 20:28:00 +03:00
|
|
|
void on_request(uint64 id, td_api::getLanguagePackStrings &request);
|
|
|
|
|
2019-02-23 20:27:14 +03:00
|
|
|
void on_request(uint64 id, td_api::synchronizeLanguagePack &request);
|
|
|
|
|
2019-02-11 21:53:10 +03:00
|
|
|
void on_request(uint64 id, td_api::addCustomServerLanguagePack &request);
|
|
|
|
|
2018-09-04 04:29:26 +03:00
|
|
|
void on_request(uint64 id, td_api::setCustomLanguagePack &request);
|
2018-08-06 17:22:22 +03:00
|
|
|
|
2018-09-04 04:29:26 +03:00
|
|
|
void on_request(uint64 id, td_api::editCustomLanguagePackInfo &request);
|
2018-08-31 20:18:12 +03:00
|
|
|
|
2018-09-04 04:29:26 +03:00
|
|
|
void on_request(uint64 id, td_api::setCustomLanguagePackString &request);
|
2018-08-22 23:11:54 +03:00
|
|
|
|
2018-09-04 04:29:26 +03:00
|
|
|
void on_request(uint64 id, td_api::deleteLanguagePack &request);
|
2018-08-06 17:22:22 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::getOption &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setOption &request);
|
|
|
|
|
2019-02-21 15:23:05 +03:00
|
|
|
void on_request(uint64 id, td_api::setPollAnswer &request);
|
2019-02-21 03:52:58 +03:00
|
|
|
|
2020-01-13 21:21:58 +03:00
|
|
|
void on_request(uint64 id, td_api::getPollVoters &request);
|
|
|
|
|
2019-04-12 02:10:33 +03:00
|
|
|
void on_request(uint64 id, td_api::stopPoll &request);
|
2019-02-22 18:09:55 +03:00
|
|
|
|
2020-07-12 15:04:49 +03:00
|
|
|
void on_request(uint64 id, const td_api::hideSuggestedAction &request);
|
|
|
|
|
2019-09-07 02:07:56 +03:00
|
|
|
void on_request(uint64 id, const td_api::getLoginUrlInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getLoginUrl &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::getInlineQueryResults &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::answerInlineQuery &request);
|
|
|
|
|
2022-03-31 16:42:59 +03:00
|
|
|
void on_request(uint64 id, td_api::getWebAppUrl &request);
|
2022-03-30 16:27:01 +03:00
|
|
|
|
2022-03-31 16:42:59 +03:00
|
|
|
void on_request(uint64 id, td_api::sendWebAppData &request);
|
2022-03-31 15:05:08 +03:00
|
|
|
|
2022-03-31 16:42:59 +03:00
|
|
|
void on_request(uint64 id, td_api::openWebApp &request);
|
2022-03-31 21:45:35 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::closeWebApp &request);
|
2022-03-28 15:18:15 +03:00
|
|
|
|
2022-03-31 16:42:59 +03:00
|
|
|
void on_request(uint64 id, td_api::answerWebAppQuery &request);
|
2022-03-24 11:42:47 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::getCallbackQueryAnswer &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::answerCallbackQuery &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::answerShippingQuery &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::answerPreCheckoutQuery &request);
|
|
|
|
|
2020-02-13 19:20:34 +03:00
|
|
|
void on_request(uint64 id, td_api::getBankCardInfo &request);
|
|
|
|
|
2022-05-03 18:50:29 +03:00
|
|
|
void on_request(uint64 id, td_api::getPaymentForm &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::validateOrderInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendPaymentForm &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getPaymentReceipt &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getSavedOrderInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::deleteSavedOrderInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::deleteSavedCredentials &request);
|
|
|
|
|
2022-05-06 16:37:11 +03:00
|
|
|
void on_request(uint64 id, td_api::createInvoiceLink &request);
|
|
|
|
|
2018-08-01 16:52:07 +03:00
|
|
|
void on_request(uint64 id, td_api::getPassportElement &request);
|
2018-03-27 16:11:15 +03:00
|
|
|
|
2018-08-01 16:52:07 +03:00
|
|
|
void on_request(uint64 id, td_api::getAllPassportElements &request);
|
2018-04-07 01:29:36 +03:00
|
|
|
|
2018-08-01 16:52:07 +03:00
|
|
|
void on_request(uint64 id, td_api::setPassportElement &request);
|
2018-03-27 16:11:15 +03:00
|
|
|
|
2018-08-01 16:52:07 +03:00
|
|
|
void on_request(uint64 id, const td_api::deletePassportElement &request);
|
2018-03-27 16:11:15 +03:00
|
|
|
|
2018-08-01 16:52:07 +03:00
|
|
|
void on_request(uint64 id, td_api::setPassportElementErrors &request);
|
2018-04-17 18:04:09 +03:00
|
|
|
|
2018-08-24 01:02:59 +03:00
|
|
|
void on_request(uint64 id, td_api::getPreferredCountryLanguage &request);
|
|
|
|
|
2018-03-27 16:11:15 +03:00
|
|
|
void on_request(uint64 id, td_api::sendPhoneNumberVerificationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resendPhoneNumberVerificationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::checkPhoneNumberVerificationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendEmailAddressVerificationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resendEmailAddressVerificationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::checkEmailAddressVerificationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::getPassportAuthorizationForm &request);
|
|
|
|
|
2018-09-25 05:12:41 +03:00
|
|
|
void on_request(uint64 id, td_api::getPassportAuthorizationFormAvailableElements &request);
|
|
|
|
|
2018-04-06 22:37:30 +03:00
|
|
|
void on_request(uint64 id, td_api::sendPassportAuthorizationForm &request);
|
2018-03-27 16:11:15 +03:00
|
|
|
|
2018-06-27 21:26:52 +03:00
|
|
|
void on_request(uint64 id, td_api::sendPhoneNumberConfirmationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resendPhoneNumberConfirmationCode &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::checkPhoneNumberConfirmationCode &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getSupportUser &request);
|
|
|
|
|
2019-05-07 05:51:56 +03:00
|
|
|
void on_request(uint64 id, const td_api::getBackgrounds &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2019-05-07 17:10:20 +03:00
|
|
|
void on_request(uint64 id, td_api::getBackgroundUrl &request);
|
|
|
|
|
2019-05-07 18:21:57 +03:00
|
|
|
void on_request(uint64 id, td_api::searchBackground &request);
|
|
|
|
|
2019-05-10 15:36:37 +03:00
|
|
|
void on_request(uint64 id, td_api::setBackground &request);
|
|
|
|
|
2019-05-12 04:10:18 +03:00
|
|
|
void on_request(uint64 id, const td_api::removeBackground &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resetBackgrounds &request);
|
2019-05-10 23:55:26 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::getRecentlyVisitedTMeUrls &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setBotUpdatesStatus &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendCustomRequest &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::answerCustomQuery &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setAlarm &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchHashtags &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeRecentHashtag &request);
|
|
|
|
|
2022-05-24 02:55:03 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumLimit &request);
|
|
|
|
|
2022-05-23 15:56:31 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumFeatures &request);
|
|
|
|
|
2022-06-03 18:16:12 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumStickers &request);
|
|
|
|
|
2022-07-15 16:15:59 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumGiftOptionSticker &request);
|
|
|
|
|
2022-05-24 20:45:03 +03:00
|
|
|
void on_request(uint64 id, const td_api::viewPremiumFeature &request);
|
|
|
|
|
2022-05-25 15:34:36 +03:00
|
|
|
void on_request(uint64 id, const td_api::clickPremiumSubscriptionButton &request);
|
|
|
|
|
2022-06-01 15:14:09 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumState &request);
|
2022-06-24 17:07:10 +03:00
|
|
|
|
2022-07-15 14:09:37 +03:00
|
|
|
void on_request(uint64 id, td_api::canPurchasePremium &request);
|
2022-06-24 17:27:03 +03:00
|
|
|
|
2022-07-01 19:27:59 +03:00
|
|
|
void on_request(uint64 id, td_api::assignAppStoreTransaction &request);
|
2022-06-24 18:14:00 +03:00
|
|
|
|
2022-06-24 17:27:03 +03:00
|
|
|
void on_request(uint64 id, td_api::assignGooglePlayTransaction &request);
|
2022-06-01 15:14:09 +03:00
|
|
|
|
2018-06-07 21:42:17 +03:00
|
|
|
void on_request(uint64 id, td_api::acceptTermsOfService &request);
|
|
|
|
|
2020-08-24 23:38:45 +03:00
|
|
|
void on_request(uint64 id, const td_api::getCountries &request);
|
|
|
|
|
2018-03-05 00:36:16 +03:00
|
|
|
void on_request(uint64 id, const td_api::getCountryCode &request);
|
|
|
|
|
2020-08-25 13:42:14 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPhoneNumberInfo &request);
|
|
|
|
|
2021-06-04 19:31:18 +03:00
|
|
|
void on_request(uint64 id, const td_api::getApplicationDownloadLink &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-04-12 23:51:42 +03:00
|
|
|
void on_request(uint64 id, td_api::getDeepLinkInfo &request);
|
|
|
|
|
2018-12-10 22:08:58 +03:00
|
|
|
void on_request(uint64 id, const td_api::getApplicationConfig &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::saveApplicationLogEvent &request);
|
|
|
|
|
2018-05-14 22:00:38 +03:00
|
|
|
void on_request(uint64 id, td_api::addProxy &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-07-27 18:10:45 +03:00
|
|
|
void on_request(uint64 id, td_api::editProxy &request);
|
|
|
|
|
2018-05-14 22:00:38 +03:00
|
|
|
void on_request(uint64 id, const td_api::enableProxy &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::disableProxy &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::removeProxy &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getProxies &request);
|
|
|
|
|
2018-05-17 21:08:51 +03:00
|
|
|
void on_request(uint64 id, const td_api::getProxyLink &request);
|
|
|
|
|
2018-05-14 22:00:38 +03:00
|
|
|
void on_request(uint64 id, const td_api::pingProxy &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getTextEntities &request);
|
|
|
|
|
2018-12-10 04:01:02 +03:00
|
|
|
void on_request(uint64 id, const td_api::parseTextEntities &request);
|
2018-01-30 20:06:54 +03:00
|
|
|
|
2020-03-09 23:55:32 +03:00
|
|
|
void on_request(uint64 id, const td_api::parseMarkdown &request);
|
|
|
|
|
2020-03-12 06:22:14 +03:00
|
|
|
void on_request(uint64 id, const td_api::getMarkdownText &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, const td_api::getFileMimeType &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getFileExtension &request);
|
|
|
|
|
2018-04-30 15:50:54 +03:00
|
|
|
void on_request(uint64 id, const td_api::cleanFileName &request);
|
|
|
|
|
2018-07-23 20:29:14 +03:00
|
|
|
void on_request(uint64 id, const td_api::getLanguagePackString &request);
|
|
|
|
|
2021-08-30 22:26:02 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPhoneNumberInfoSync &request);
|
|
|
|
|
2018-12-29 01:48:32 +03:00
|
|
|
void on_request(uint64 id, const td_api::getPushReceiverId &request);
|
|
|
|
|
2020-06-05 03:43:13 +03:00
|
|
|
void on_request(uint64 id, const td_api::getChatFilterDefaultIconName &request);
|
|
|
|
|
2018-12-10 04:01:02 +03:00
|
|
|
void on_request(uint64 id, const td_api::getJsonValue &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getJsonString &request);
|
|
|
|
|
2022-03-29 20:22:38 +03:00
|
|
|
void on_request(uint64 id, const td_api::getThemeParametersJsonString &request);
|
|
|
|
|
2018-10-24 18:42:40 +03:00
|
|
|
void on_request(uint64 id, const td_api::setLogStream &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getLogStream &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setLogVerbosityLevel &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getLogVerbosityLevel &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getLogTags &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setLogTagVerbosityLevel &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getLogTagVerbosityLevel &request);
|
|
|
|
|
2019-04-13 21:40:31 +03:00
|
|
|
void on_request(uint64 id, const td_api::addLogMessage &request);
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
// test
|
2019-08-06 03:29:16 +03:00
|
|
|
void on_request(uint64 id, const td_api::testNetwork &request);
|
2019-07-20 15:13:36 +02:00
|
|
|
void on_request(uint64 id, td_api::testProxy &request);
|
2019-08-06 03:29:16 +03:00
|
|
|
void on_request(uint64 id, const td_api::testGetDifference &request);
|
|
|
|
void on_request(uint64 id, const td_api::testUseUpdate &request);
|
|
|
|
void on_request(uint64 id, const td_api::testReturnError &request);
|
|
|
|
void on_request(uint64 id, const td_api::testCallEmpty &request);
|
|
|
|
void on_request(uint64 id, const td_api::testSquareInt &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
void on_request(uint64 id, td_api::testCallString &request);
|
|
|
|
void on_request(uint64 id, td_api::testCallBytes &request);
|
|
|
|
void on_request(uint64 id, td_api::testCallVectorInt &request);
|
|
|
|
void on_request(uint64 id, td_api::testCallVectorIntObject &request);
|
|
|
|
void on_request(uint64 id, td_api::testCallVectorString &request);
|
|
|
|
void on_request(uint64 id, td_api::testCallVectorStringObject &request);
|
|
|
|
|
|
|
|
template <class T>
|
2018-10-01 05:22:56 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const T &request) {
|
2020-06-23 09:56:47 +03:00
|
|
|
return td_api::make_object<td_api::error>(400, "The method can't be executed synchronously");
|
2018-10-01 05:22:56 +03:00
|
|
|
}
|
2022-07-11 13:33:56 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getOption &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getTextEntities &request);
|
2018-01-30 20:06:54 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::parseTextEntities &request);
|
2020-03-09 23:55:32 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::parseMarkdown &request);
|
2020-03-12 06:22:14 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::getMarkdownText &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getFileMimeType &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getFileExtension &request);
|
2018-04-30 15:50:54 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::cleanFileName &request);
|
2018-07-23 20:29:14 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getLanguagePackString &request);
|
2021-11-10 21:09:28 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::getPhoneNumberInfoSync &request);
|
2018-12-29 01:48:32 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getPushReceiverId &request);
|
2020-06-05 03:43:13 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getChatFilterDefaultIconName &request);
|
2018-12-10 04:01:02 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::getJsonValue &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getJsonString &request);
|
2022-03-29 20:22:38 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getThemeParametersJsonString &request);
|
2018-10-24 18:42:40 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::setLogStream &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getLogStream &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::setLogVerbosityLevel &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getLogVerbosityLevel &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getLogTags &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::setLogTagVerbosityLevel &request);
|
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getLogTagVerbosityLevel &request);
|
2019-04-13 21:40:31 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::addLogMessage &request);
|
2019-08-06 03:29:16 +03:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::testReturnError &request);
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-10-01 23:18:05 +03:00
|
|
|
static DbKey as_db_key(string key);
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2022-06-20 22:02:45 +03:00
|
|
|
static int32 get_database_scheduler_id();
|
|
|
|
|
2022-06-21 02:02:48 +03:00
|
|
|
void on_parameters_checked(Result<TdDb::CheckedParameters> r_checked_parameters);
|
|
|
|
|
|
|
|
void finish_set_parameters();
|
|
|
|
|
2022-06-10 16:44:53 +03:00
|
|
|
void start_init(uint64 id, string &&key);
|
|
|
|
|
|
|
|
void init(Result<TdDb::OpenedDatabase> r_opened_database);
|
|
|
|
|
2019-04-26 22:44:32 +03:00
|
|
|
void init_options_and_network();
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2019-04-26 22:44:32 +03:00
|
|
|
void init_connection_creator();
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2019-04-26 22:44:32 +03:00
|
|
|
void init_file_manager();
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2019-04-26 22:44:32 +03:00
|
|
|
void init_managers();
|
2022-06-10 16:44:53 +03:00
|
|
|
|
|
|
|
void finish_init();
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void clear();
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
void close_impl(bool destroy_flag);
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2018-10-01 23:18:05 +03:00
|
|
|
static Status fix_parameters(TdParameters ¶meters) TD_WARN_UNUSED_RESULT;
|
2022-06-10 16:44:53 +03:00
|
|
|
|
2018-02-09 13:29:50 +03:00
|
|
|
Status set_parameters(td_api::object_ptr<td_api::tdlibParameters> parameters) TD_WARN_UNUSED_RESULT;
|
2018-12-31 22:04:05 +03:00
|
|
|
|
2018-10-01 23:18:05 +03:00
|
|
|
static td_api::object_ptr<td_api::error> make_error(int32 code, CSlice error) {
|
|
|
|
return td_api::make_object<td_api::error>(code, error.str());
|
|
|
|
}
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
// Actor
|
2021-07-03 23:51:36 +03:00
|
|
|
void start_up() final;
|
|
|
|
void tear_down() final;
|
|
|
|
void hangup_shared() final;
|
|
|
|
void hangup() final;
|
2018-12-31 22:04:05 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace td
|