2018-12-31 20:04:05 +01:00
|
|
|
//
|
2022-12-31 22:28:08 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
|
2018-12-31 20:04:05 +01: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 17:23:10 +02:00
|
|
|
#include "td/telegram/ConnectionState.h"
|
2019-03-27 19:43:46 +01:00
|
|
|
#include "td/telegram/files/FileId.h"
|
2018-07-02 22:36:45 +02:00
|
|
|
#include "td/telegram/net/MtprotoHeader.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
#include "td/telegram/net/NetQuery.h"
|
2020-07-30 21:59:23 +02:00
|
|
|
#include "td/telegram/net/NetQueryStats.h"
|
2021-09-18 23:47:05 +02:00
|
|
|
#include "td/telegram/td_api.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
#include "td/telegram/TdCallback.h"
|
2022-06-10 15:44:53 +02:00
|
|
|
#include "td/telegram/TdDb.h"
|
2021-09-18 23:47:05 +02:00
|
|
|
#include "td/telegram/telegram_api.h"
|
2018-06-08 00:19:34 +02:00
|
|
|
#include "td/telegram/TermsOfService.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-09-18 23:47:05 +02:00
|
|
|
#include "td/db/DbKey.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
#include "td/actor/actor.h"
|
2022-07-02 22:32:18 +02:00
|
|
|
#include "td/actor/MultiTimeout.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
#include "td/utils/buffer.h"
|
|
|
|
#include "td/utils/common.h"
|
|
|
|
#include "td/utils/Container.h"
|
2022-02-07 22:04:34 +01:00
|
|
|
#include "td/utils/FlatHashMap.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
#include "td/utils/logging.h"
|
2022-06-27 12:30:18 +02:00
|
|
|
#include "td/utils/Promise.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
#include "td/utils/Slice.h"
|
|
|
|
#include "td/utils/Status.h"
|
|
|
|
|
|
|
|
#include <memory>
|
2022-08-18 20:32:36 +02:00
|
|
|
#include <unordered_map>
|
2018-12-31 20:04:05 +01:00
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
namespace td {
|
2018-05-08 22:02:15 +02:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
class AnimationsManager;
|
2022-03-25 12:17:09 +01:00
|
|
|
class AttachMenuManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class AudiosManager;
|
|
|
|
class AuthManager;
|
2023-02-03 08:41:31 +01:00
|
|
|
class AutosaveManager;
|
2019-05-07 04:51:56 +02:00
|
|
|
class BackgroundManager;
|
2023-04-16 22:12:28 +02:00
|
|
|
class BotInfoManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class CallManager;
|
|
|
|
class CallbackQueriesManager;
|
|
|
|
class ConfigManager;
|
|
|
|
class ContactsManager;
|
2020-08-23 23:43:31 +02:00
|
|
|
class CountryInfoManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class DeviceTokenManager;
|
2023-03-27 10:27:17 +02:00
|
|
|
class DialogFilterManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class DocumentsManager;
|
2022-02-23 19:34:09 +01:00
|
|
|
class DownloadManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class FileManager;
|
2019-01-03 16:26:44 +01:00
|
|
|
class FileReferenceManager;
|
2022-10-25 14:03:35 +02:00
|
|
|
class ForumTopicManager;
|
2021-09-07 09:02:44 +02:00
|
|
|
class GameManager;
|
2020-11-24 16:22:00 +01:00
|
|
|
class GroupCallManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class InlineQueriesManager;
|
|
|
|
class HashtagHints;
|
2018-07-03 19:28:00 +02:00
|
|
|
class LanguagePackManager;
|
2021-05-25 01:24:30 +02:00
|
|
|
class LinkManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class MessagesManager;
|
|
|
|
class NetStatsManager;
|
2018-11-09 15:14:02 +01:00
|
|
|
class NotificationManager;
|
2022-04-04 23:40:22 +02:00
|
|
|
class NotificationSettingsManager;
|
2021-12-15 23:09:59 +01:00
|
|
|
class OptionManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class PasswordManager;
|
2018-07-02 22:36:45 +02:00
|
|
|
class PhoneNumberManager;
|
2019-02-19 14:45:32 +01:00
|
|
|
class PollManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class PrivacyManager;
|
2023-08-09 11:59:48 +02:00
|
|
|
class ReactionManager;
|
2018-04-05 13:18:47 +02:00
|
|
|
class SecureManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class SecretChatsManager;
|
2021-09-07 14:49:34 +02:00
|
|
|
class SponsoredMessageManager;
|
2021-09-16 17:23:10 +02:00
|
|
|
class StateManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class StickersManager;
|
|
|
|
class StorageManager;
|
2023-05-01 21:19:16 +02:00
|
|
|
class StoryManager;
|
2021-08-27 14:51:50 +02:00
|
|
|
class ThemeManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class TopDialogManager;
|
2023-01-18 12:47:31 +01:00
|
|
|
class TranslationManager;
|
2018-12-31 20:04:05 +01:00
|
|
|
class UpdatesManager;
|
|
|
|
class VideoNotesManager;
|
|
|
|
class VideosManager;
|
|
|
|
class VoiceNotesManager;
|
|
|
|
class WebPagesManager;
|
|
|
|
|
2018-10-24 17:42:40 +02:00
|
|
|
extern int VERBOSITY_NAME(td_init);
|
2020-10-05 17:07:23 +02:00
|
|
|
extern int VERBOSITY_NAME(td_requests);
|
2018-10-24 17:42:40 +02:00
|
|
|
|
2018-12-31 20:04:05 +01: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.
|
2022-09-30 15:52:27 +02:00
|
|
|
// It happens after destruction of callback
|
2021-09-10 17:58:36 +02:00
|
|
|
class Td final : public Actor {
|
2018-12-31 20:04:05 +01:00
|
|
|
public:
|
|
|
|
Td(const Td &) = delete;
|
|
|
|
Td(Td &&) = delete;
|
|
|
|
Td &operator=(const Td &) = delete;
|
|
|
|
Td &operator=(Td &&) = delete;
|
2021-07-03 22:51:36 +02:00
|
|
|
~Td() final;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2020-07-30 16:28:56 +02:00
|
|
|
struct Options {
|
2020-10-08 17:44:34 +02:00
|
|
|
std::shared_ptr<NetQueryStats> net_query_stats;
|
2020-07-30 16:28:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Td(unique_ptr<TdCallback> callback, Options options);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
void request(uint64 id, tl_object_ptr<td_api::Function> function);
|
|
|
|
|
|
|
|
void destroy();
|
|
|
|
|
2018-06-08 00:19:34 +02:00
|
|
|
void schedule_get_terms_of_service(int32 expires_in);
|
|
|
|
|
2023-03-22 17:52:06 +01:00
|
|
|
void reload_promo_data();
|
2020-04-30 20:00:58 +02:00
|
|
|
|
2023-07-27 11:52:29 +02:00
|
|
|
void on_update(telegram_api::object_ptr<telegram_api::Updates> updates, uint64 auth_key_id);
|
2021-09-10 16:32:39 +02:00
|
|
|
|
2021-09-10 17:58:36 +02:00
|
|
|
void on_result(NetQueryPtr query);
|
2020-01-08 21:41:03 +01:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_online_updated(bool force, bool send_update);
|
2021-12-16 11:13:14 +01:00
|
|
|
|
2018-03-10 15:10:23 +01:00
|
|
|
void on_update_status_success(bool is_online);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-01-31 10:18:40 +01:00
|
|
|
bool is_online() const;
|
|
|
|
|
2021-12-16 11:13:14 +01:00
|
|
|
void set_is_online(bool is_online);
|
|
|
|
|
2021-03-02 02:06:02 +01:00
|
|
|
void set_is_bot_online(bool is_bot_online);
|
|
|
|
|
2023-03-13 19:13:59 +01:00
|
|
|
bool can_ignore_background_updates() const {
|
|
|
|
return can_ignore_background_updates_;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ignore_background_updates() const;
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
unique_ptr<AudiosManager> audios_manager_;
|
|
|
|
unique_ptr<CallbackQueriesManager> callback_queries_manager_;
|
|
|
|
unique_ptr<DocumentsManager> documents_manager_;
|
2022-08-18 17:52:59 +02:00
|
|
|
unique_ptr<OptionManager> option_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
unique_ptr<VideosManager> videos_manager_;
|
|
|
|
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<AnimationsManager> animations_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<AnimationsManager> animations_manager_actor_;
|
2022-03-25 12:17:09 +01:00
|
|
|
unique_ptr<AttachMenuManager> attach_menu_manager_;
|
|
|
|
ActorOwn<AttachMenuManager> attach_menu_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<AuthManager> auth_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<AuthManager> auth_manager_actor_;
|
2023-02-03 08:41:31 +01:00
|
|
|
unique_ptr<AutosaveManager> autosave_manager_;
|
|
|
|
ActorOwn<AutosaveManager> autosave_manager_actor_;
|
2019-05-07 04:51:56 +02:00
|
|
|
unique_ptr<BackgroundManager> background_manager_;
|
|
|
|
ActorOwn<BackgroundManager> background_manager_actor_;
|
2023-04-16 22:12:28 +02:00
|
|
|
unique_ptr<BotInfoManager> bot_info_manager_;
|
|
|
|
ActorOwn<BotInfoManager> bot_info_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<ContactsManager> contacts_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<ContactsManager> contacts_manager_actor_;
|
2020-08-24 13:39:03 +02:00
|
|
|
unique_ptr<CountryInfoManager> country_info_manager_;
|
|
|
|
ActorOwn<CountryInfoManager> country_info_manager_actor_;
|
2023-03-27 10:27:17 +02:00
|
|
|
unique_ptr<DialogFilterManager> dialog_filter_manager_;
|
|
|
|
ActorOwn<DialogFilterManager> dialog_filter_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 03:19:03 +02:00
|
|
|
unique_ptr<FileManager> file_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<FileManager> file_manager_actor_;
|
2019-01-03 16:26:44 +01:00
|
|
|
unique_ptr<FileReferenceManager> file_reference_manager_;
|
|
|
|
ActorOwn<FileReferenceManager> file_reference_manager_actor_;
|
2022-10-25 14:03:35 +02:00
|
|
|
unique_ptr<ForumTopicManager> forum_topic_manager_;
|
|
|
|
ActorOwn<ForumTopicManager> forum_topic_manager_actor_;
|
2021-09-07 09:02:44 +02:00
|
|
|
unique_ptr<GameManager> game_manager_;
|
|
|
|
ActorOwn<GameManager> game_manager_actor_;
|
2020-11-24 16:22:00 +01:00
|
|
|
unique_ptr<GroupCallManager> group_call_manager_;
|
|
|
|
ActorOwn<GroupCallManager> group_call_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<InlineQueriesManager> inline_queries_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<InlineQueriesManager> inline_queries_manager_actor_;
|
2021-05-25 01:24:30 +02:00
|
|
|
unique_ptr<LinkManager> link_manager_;
|
|
|
|
ActorOwn<LinkManager> link_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<MessagesManager> messages_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<MessagesManager> messages_manager_actor_;
|
2018-11-11 13:58:52 +01:00
|
|
|
unique_ptr<NotificationManager> notification_manager_;
|
|
|
|
ActorOwn<NotificationManager> notification_manager_actor_;
|
2022-04-04 23:40:22 +02:00
|
|
|
unique_ptr<NotificationSettingsManager> notification_settings_manager_;
|
|
|
|
ActorOwn<NotificationSettingsManager> notification_settings_manager_actor_;
|
2019-02-19 14:45:32 +01:00
|
|
|
unique_ptr<PollManager> poll_manager_;
|
|
|
|
ActorOwn<PollManager> poll_manager_actor_;
|
2023-05-08 14:23:57 +02:00
|
|
|
unique_ptr<PrivacyManager> privacy_manager_;
|
|
|
|
ActorOwn<PrivacyManager> privacy_manager_actor_;
|
2023-08-09 11:59:48 +02:00
|
|
|
unique_ptr<ReactionManager> reaction_manager_;
|
|
|
|
ActorOwn<ReactionManager> reaction_manager_actor_;
|
2021-09-07 14:49:34 +02:00
|
|
|
unique_ptr<SponsoredMessageManager> sponsored_message_manager_;
|
|
|
|
ActorOwn<SponsoredMessageManager> sponsored_message_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<StickersManager> stickers_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<StickersManager> stickers_manager_actor_;
|
2023-05-01 21:19:16 +02:00
|
|
|
unique_ptr<StoryManager> story_manager_;
|
|
|
|
ActorOwn<StoryManager> story_manager_actor_;
|
2021-08-27 14:51:50 +02:00
|
|
|
unique_ptr<ThemeManager> theme_manager_;
|
|
|
|
ActorOwn<ThemeManager> theme_manager_actor_;
|
2021-09-24 22:17:38 +02:00
|
|
|
unique_ptr<TopDialogManager> top_dialog_manager_;
|
|
|
|
ActorOwn<TopDialogManager> top_dialog_manager_actor_;
|
2023-01-18 12:47:31 +01:00
|
|
|
unique_ptr<TranslationManager> translation_manager_;
|
|
|
|
ActorOwn<TranslationManager> translation_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<UpdatesManager> updates_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<UpdatesManager> updates_manager_actor_;
|
2022-10-20 17:53:12 +02:00
|
|
|
unique_ptr<VideoNotesManager> video_notes_manager_;
|
|
|
|
ActorOwn<VideoNotesManager> video_notes_manager_actor_;
|
2022-05-27 18:07:37 +02:00
|
|
|
unique_ptr<VoiceNotesManager> voice_notes_manager_;
|
|
|
|
ActorOwn<VoiceNotesManager> voice_notes_manager_actor_;
|
2018-09-27 03:19:03 +02:00
|
|
|
unique_ptr<WebPagesManager> web_pages_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<WebPagesManager> web_pages_manager_actor_;
|
|
|
|
|
|
|
|
ActorOwn<CallManager> call_manager_;
|
2018-06-27 20:26:52 +02:00
|
|
|
ActorOwn<PhoneNumberManager> change_phone_number_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<ConfigManager> config_manager_;
|
2018-06-27 20:26:52 +02:00
|
|
|
ActorOwn<PhoneNumberManager> confirm_phone_number_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<DeviceTokenManager> device_token_manager_;
|
|
|
|
ActorOwn<HashtagHints> hashtag_hints_;
|
2018-07-03 19:28:00 +02:00
|
|
|
ActorOwn<LanguagePackManager> language_pack_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<NetStatsManager> net_stats_manager_;
|
|
|
|
ActorOwn<PasswordManager> password_manager_;
|
|
|
|
ActorOwn<SecretChatsManager> secret_chats_manager_;
|
2022-10-03 13:39:20 +02:00
|
|
|
ActorOwn<SecureManager> secure_manager_;
|
2018-12-31 20:04:05 +01:00
|
|
|
ActorOwn<StateManager> state_manager_;
|
|
|
|
ActorOwn<StorageManager> storage_manager_;
|
2018-06-27 20:26:52 +02:00
|
|
|
ActorOwn<PhoneNumberManager> verify_phone_number_manager_;
|
2018-12-31 20:04:05 +01: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 21:41:03 +01:00
|
|
|
|
2021-11-08 12:19:57 +01:00
|
|
|
virtual void on_result(BufferSlice packet) {
|
2018-12-31 20:04:05 +01:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
2021-11-08 12:19:57 +01:00
|
|
|
|
|
|
|
virtual void on_error(Status status) {
|
2018-12-31 20:04:05 +01:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
|
|
|
|
friend class Td;
|
|
|
|
|
|
|
|
protected:
|
2020-01-08 21:41:03 +01:00
|
|
|
void send_query(NetQueryPtr query);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-11-08 13:20:38 +01:00
|
|
|
Td *td_ = nullptr;
|
2021-11-12 12:47:51 +01:00
|
|
|
bool is_query_sent_ = false;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
private:
|
2021-11-08 13:20:38 +01:00
|
|
|
void set_td(Td *td);
|
2018-12-31 20:04:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class HandlerT, class... Args>
|
2021-12-09 22:27:13 +01:00
|
|
|
std::shared_ptr<HandlerT> create_handler(Args &&...args) {
|
2019-03-17 23:51:43 +01:00
|
|
|
LOG_CHECK(close_flag_ < 2) << close_flag_
|
|
|
|
#if TD_CLANG || TD_GCC
|
|
|
|
<< ' ' << __PRETTY_FUNCTION__
|
|
|
|
#endif
|
|
|
|
;
|
2018-12-31 20:04:05 +01: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 19:33:32 +01: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 00:19:34 +02:00
|
|
|
static constexpr int64 TERMS_OF_SERVICE_ALARM_ID = -2;
|
2020-04-30 20:00:58 +02:00
|
|
|
static constexpr int64 PROMO_DATA_ALARM_ID = -3;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-09-16 17:23:10 +02:00
|
|
|
void on_connection_state_changed(ConnectionState new_state);
|
2020-01-08 21:41:03 +01:00
|
|
|
|
2022-06-10 15:44:53 +02:00
|
|
|
void run_request(uint64 id, tl_object_ptr<td_api::Function> function);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 22:03:06 +02:00
|
|
|
ActorShared<Td> create_reference();
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void inc_actor_refcnt();
|
|
|
|
void dec_actor_refcnt();
|
|
|
|
|
|
|
|
void inc_request_actor_refcnt();
|
|
|
|
void dec_request_actor_refcnt();
|
|
|
|
|
2020-08-02 22:03:06 +02:00
|
|
|
void close();
|
2018-02-09 11:29:50 +01:00
|
|
|
void on_closed();
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void dec_stop_cnt();
|
|
|
|
|
2020-10-09 14:39:30 +02:00
|
|
|
unique_ptr<TdCallback> callback_;
|
|
|
|
Options td_options_;
|
|
|
|
|
2018-07-02 22:36:45 +02:00
|
|
|
MtprotoHeader::Options options_;
|
|
|
|
|
2021-09-16 17:23:10 +02:00
|
|
|
ConnectionState connection_state_ = ConnectionState::Empty;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2022-08-18 20:32:36 +02:00
|
|
|
std::unordered_multimap<uint64, int32> request_set_;
|
2018-12-31 20:04:05 +01:00
|
|
|
int actor_refcnt_ = 0;
|
|
|
|
int request_actor_refcnt_ = 0;
|
|
|
|
int stop_cnt_ = 2;
|
|
|
|
bool destroy_flag_ = false;
|
|
|
|
int close_flag_ = 0;
|
|
|
|
|
2022-09-07 20:27:23 +02:00
|
|
|
enum class State : int32 { WaitParameters, Run, Close } state_ = State::WaitParameters;
|
2022-06-21 01:02:48 +02:00
|
|
|
uint64 set_parameters_request_id_ = 0;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2022-02-07 20:41:07 +01:00
|
|
|
FlatHashMap<uint64, std::shared_ptr<ResultHandler>> result_handlers_;
|
2018-12-31 20:04:05 +01:00
|
|
|
enum : int8 { RequestActorIdType = 1, ActorIdType = 2 };
|
|
|
|
Container<ActorOwn<Actor>> request_actors_;
|
|
|
|
|
2023-03-13 19:13:59 +01:00
|
|
|
bool can_ignore_background_updates_ = false;
|
|
|
|
|
2023-03-22 17:52:06 +01:00
|
|
|
bool reloading_promo_data_ = false;
|
|
|
|
bool need_reload_promo_data_ = false;
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
bool is_online_ = false;
|
2021-03-02 02:06:02 +01:00
|
|
|
bool is_bot_online_ = false;
|
2018-03-10 12:41:59 +01:00
|
|
|
NetQueryRef update_status_query_;
|
2018-02-09 16:59:13 +01:00
|
|
|
|
|
|
|
int64 alarm_id_ = 1;
|
2022-02-07 20:41:07 +01:00
|
|
|
FlatHashMap<int64, uint64> pending_alarms_;
|
2018-08-01 19:31:20 +02:00
|
|
|
MultiTimeout alarm_timeout_{"AlarmTimeout"};
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-09-20 22:08:55 +02:00
|
|
|
TermsOfService pending_terms_of_service_;
|
|
|
|
|
2019-03-27 19:43:46 +01:00
|
|
|
struct DownloadInfo {
|
2022-05-11 16:17:20 +02:00
|
|
|
int64 offset = -1;
|
|
|
|
int64 limit = -1;
|
2019-03-27 19:43:46 +01:00
|
|
|
vector<uint64> request_ids;
|
|
|
|
};
|
2022-02-07 20:41:07 +01:00
|
|
|
FlatHashMap<FileId, DownloadInfo, FileIdHash> pending_file_downloads_;
|
2019-03-27 19:43:46 +01:00
|
|
|
|
2018-05-15 22:04:27 +02:00
|
|
|
vector<std::pair<uint64, td_api::object_ptr<td_api::Function>>> pending_preauthentication_requests_;
|
|
|
|
|
2022-06-21 01:02:48 +02:00
|
|
|
vector<std::pair<uint64, td_api::object_ptr<td_api::Function>>> pending_set_parameters_requests_;
|
2022-06-10 15:44:53 +02:00
|
|
|
vector<std::pair<uint64, td_api::object_ptr<td_api::Function>>> pending_init_requests_;
|
|
|
|
|
2018-05-16 21:35:27 +02:00
|
|
|
template <class T>
|
|
|
|
void complete_pending_preauthentication_requests(const T &func);
|
|
|
|
|
2018-09-20 18:33:41 +02:00
|
|
|
td_api::object_ptr<td_api::AuthorizationState> get_fake_authorization_state_object() const;
|
|
|
|
|
2022-07-11 14:36:29 +02:00
|
|
|
vector<td_api::object_ptr<td_api::Update>> get_fake_current_state() const;
|
|
|
|
|
2018-02-09 16:59:13 +01:00
|
|
|
static void on_alarm_timeout_callback(void *td_ptr, int64 alarm_id);
|
|
|
|
void on_alarm_timeout(int64 alarm_id);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-09-20 22:08:55 +02:00
|
|
|
td_api::object_ptr<td_api::updateTermsOfService> get_update_terms_of_service_object() const;
|
|
|
|
|
2018-06-08 00:19:34 +02:00
|
|
|
void on_get_terms_of_service(Result<std::pair<int32, TermsOfService>> result, bool dummy);
|
2020-04-30 20:00:58 +02:00
|
|
|
|
2021-10-19 17:11:16 +02:00
|
|
|
void on_get_promo_data(Result<telegram_api::object_ptr<telegram_api::help_PromoData>> r_promo_data, bool dummy);
|
2018-06-08 00:19:34 +02:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
template <class T>
|
2018-04-09 16:20:12 +02:00
|
|
|
friend class RequestActor; // uses send_result/send_error
|
2018-08-08 21:55:54 +02: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 20:04:05 +01:00
|
|
|
|
|
|
|
void add_handler(uint64 id, std::shared_ptr<ResultHandler> handler);
|
|
|
|
std::shared_ptr<ResultHandler> extract_handler(uint64 id);
|
|
|
|
|
2018-05-16 17:40:26 +02:00
|
|
|
void clear_requests();
|
|
|
|
|
2019-03-27 19:43:46 +01:00
|
|
|
void on_file_download_finished(FileId file_id);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
class OnRequest;
|
|
|
|
|
|
|
|
class DownloadFileCallback;
|
|
|
|
|
|
|
|
std::shared_ptr<DownloadFileCallback> download_file_callback_;
|
|
|
|
|
|
|
|
class UploadFileCallback;
|
|
|
|
|
|
|
|
std::shared_ptr<UploadFileCallback> upload_file_callback_;
|
|
|
|
|
2020-09-02 22:35:54 +02:00
|
|
|
std::shared_ptr<ActorContext> old_context_;
|
|
|
|
|
2023-03-22 17:52:06 +01:00
|
|
|
void schedule_get_promo_data(int32 expires_in);
|
|
|
|
|
2018-09-29 06:04:28 +02:00
|
|
|
static int *get_log_verbosity_level(Slice name);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
template <class T>
|
2018-10-01 04:22:56 +02:00
|
|
|
Promise<T> create_request_promise(uint64 id) {
|
2023-07-11 16:53:43 +02:00
|
|
|
return PromiseCreator::lambda([actor_id = actor_id(this), id](Result<T> r_state) {
|
2018-10-01 04:22:56 +02:00
|
|
|
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 20:13:46 +02:00
|
|
|
|
|
|
|
Promise<Unit> create_ok_request_promise(uint64 id);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-05-15 22:04:27 +02:00
|
|
|
static bool is_authentication_request(int32 id);
|
|
|
|
|
2022-07-11 12:33:56 +02:00
|
|
|
static bool is_synchronous_request(const td_api::Function *function);
|
2018-05-15 22:04:27 +02:00
|
|
|
|
|
|
|
static bool is_preinitialization_request(int32 id);
|
|
|
|
|
|
|
|
static bool is_preauthentication_request(int32 id);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
template <class T>
|
2023-05-05 13:18:46 +02:00
|
|
|
void on_request(uint64 id, const T &) = delete;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setTdlibParameters &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getAuthorizationState &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setAuthenticationPhoneNumber &request);
|
|
|
|
|
2023-01-19 14:45:47 +01:00
|
|
|
void on_request(uint64 id, td_api::sendAuthenticationFirebaseSms &request);
|
|
|
|
|
2022-09-06 13:04:39 +02:00
|
|
|
void on_request(uint64 id, td_api::setAuthenticationEmailAddress &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::resendAuthenticationCode &request);
|
|
|
|
|
2022-09-06 16:17:39 +02:00
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationEmailCode &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationCode &request);
|
|
|
|
|
2019-07-16 21:08:34 +02:00
|
|
|
void on_request(uint64 id, td_api::registerUser &request);
|
|
|
|
|
2019-12-17 17:17:57 +01:00
|
|
|
void on_request(uint64 id, td_api::requestQrCodeAuthentication &request);
|
|
|
|
|
2023-03-20 13:17:51 +01:00
|
|
|
void on_request(uint64 id, const td_api::resetAuthenticationEmailAddress &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationPassword &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::requestAuthenticationPasswordRecovery &request);
|
|
|
|
|
2021-06-28 21:33:08 +02:00
|
|
|
void on_request(uint64 id, td_api::checkAuthenticationPasswordRecoveryCode &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 17:17:57 +01:00
|
|
|
void on_request(uint64 id, td_api::confirmQrCodeAuthentication &request);
|
|
|
|
|
2022-09-07 20:27:23 +02:00
|
|
|
void on_request(uint64 id, td_api::setDatabaseEncryptionKey &request);
|
|
|
|
|
2018-09-20 18:33:41 +02:00
|
|
|
void on_request(uint64 id, const td_api::getCurrentState &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::getPasswordState &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setPassword &request);
|
|
|
|
|
2022-09-07 12:49:48 +02:00
|
|
|
void on_request(uint64 id, td_api::setLoginEmailAddress &request);
|
|
|
|
|
2022-09-07 13:39:33 +02:00
|
|
|
void on_request(uint64 id, const td_api::resendLoginEmailAddressCode &request);
|
|
|
|
|
2022-09-07 14:18:43 +02:00
|
|
|
void on_request(uint64 id, td_api::checkLoginEmailAddressCode &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::getRecoveryEmailAddress &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setRecoveryEmailAddress &request);
|
|
|
|
|
2019-02-10 21:16:52 +01:00
|
|
|
void on_request(uint64 id, td_api::checkRecoveryEmailAddressCode &request);
|
|
|
|
|
2019-02-10 21:32:49 +01:00
|
|
|
void on_request(uint64 id, const td_api::resendRecoveryEmailAddressCode &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::requestPasswordRecovery &request);
|
|
|
|
|
2021-06-28 22:47:54 +02:00
|
|
|
void on_request(uint64 id, td_api::checkPasswordRecoveryCode &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::recoverPassword &request);
|
|
|
|
|
2021-06-29 04:16:48 +02:00
|
|
|
void on_request(uint64 id, const td_api::resetPassword &request);
|
|
|
|
|
2021-06-30 18:49:52 +02:00
|
|
|
void on_request(uint64 id, const td_api::cancelPasswordReset &request);
|
2021-06-29 04:24:55 +02:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::getTemporaryPasswordState &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::createTemporaryPassword &request);
|
|
|
|
|
2018-12-24 01:12:59 +01:00
|
|
|
void on_request(uint64 id, td_api::processPushNotification &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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);
|
|
|
|
|
2022-12-28 19:46:16 +01:00
|
|
|
void on_request(uint64 id, const td_api::getDefaultMessageAutoDeleteTime &request);
|
2022-11-29 17:51:33 +01:00
|
|
|
|
2022-12-28 19:46:16 +01:00
|
|
|
void on_request(uint64 id, const td_api::setDefaultMessageAutoDeleteTime &request);
|
2022-11-29 16:53:36 +01:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
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);
|
|
|
|
|
2022-12-01 13:08:13 +01:00
|
|
|
void on_request(uint64 id, const td_api::getUserLink &request);
|
|
|
|
|
2022-12-01 14:54:58 +01:00
|
|
|
void on_request(uint64 id, td_api::searchUserByToken &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
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 15:59:17 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleSessionCanAcceptCalls &request);
|
|
|
|
|
2021-11-16 13:22:00 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleSessionCanAcceptSecretChats &request);
|
|
|
|
|
2021-11-24 12:03:35 +01:00
|
|
|
void on_request(uint64 id, const td_api::setInactiveSessionTtl &request);
|
2021-11-16 14:04:19 +01:00
|
|
|
|
2018-02-07 00:31:38 +01: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 20:04:05 +01: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 03:57:43 +01:00
|
|
|
void on_request(uint64 id, const td_api::getMessageLocally &request);
|
|
|
|
|
2018-02-07 00:31:38 +01:00
|
|
|
void on_request(uint64 id, const td_api::getRepliedMessage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getChatPinnedMessage &request);
|
|
|
|
|
2020-10-28 23:06:07 +01:00
|
|
|
void on_request(uint64 id, const td_api::getCallbackQueryMessage &request);
|
|
|
|
|
2020-09-22 16:27:35 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMessageThread &request);
|
|
|
|
|
2021-09-03 15:14:03 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMessageViewers &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getMessages &request);
|
|
|
|
|
2022-10-21 14:04:56 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatSponsoredMessages &request);
|
2021-08-24 22:44:47 +02:00
|
|
|
|
2023-05-04 16:21:50 +02:00
|
|
|
void on_request(uint64 id, const td_api::clickChatSponsoredMessage &request);
|
|
|
|
|
2019-04-08 03:50:26 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMessageLink &request);
|
2019-04-08 01:42:16 +02:00
|
|
|
|
2020-09-20 17:17:47 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMessageEmbeddingCode &request);
|
|
|
|
|
2019-08-05 11:12:59 +02:00
|
|
|
void on_request(uint64 id, td_api::getMessageLinkInfo &request);
|
|
|
|
|
2022-01-29 21:43:57 +01:00
|
|
|
void on_request(uint64 id, td_api::translateText &request);
|
2022-01-14 20:28:28 +01:00
|
|
|
|
2023-01-23 13:46:26 +01:00
|
|
|
void on_request(uint64 id, td_api::translateMessageText &request);
|
|
|
|
|
2022-05-25 20:18:40 +02:00
|
|
|
void on_request(uint64 id, const td_api::recognizeSpeech &request);
|
|
|
|
|
2022-05-26 19:40:43 +02:00
|
|
|
void on_request(uint64 id, const td_api::rateSpeechRecognition &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 11:17:51 +02:00
|
|
|
void on_request(uint64 id, td_api::getDatabaseStatistics &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 01:03:05 +02: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 20:04:05 +01:00
|
|
|
|
2023-02-03 10:39:23 +01:00
|
|
|
void on_request(uint64 id, const td_api::getAutosaveSettings &request);
|
|
|
|
|
2023-02-03 13:58:15 +01:00
|
|
|
void on_request(uint64 id, td_api::setAutosaveSettings &request);
|
|
|
|
|
2023-02-03 11:07:43 +01:00
|
|
|
void on_request(uint64 id, const td_api::clearAutosaveSettingsExceptions &request);
|
|
|
|
|
2021-09-25 10:37:32 +02:00
|
|
|
void on_request(uint64 id, const td_api::getTopChats &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::removeTopChat &request);
|
|
|
|
|
2021-08-10 16:52:31 +02:00
|
|
|
void on_request(uint64 id, const td_api::loadChats &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 19:56:59 +01:00
|
|
|
void on_request(uint64 id, td_api::searchChatsOnServer &request);
|
|
|
|
|
2019-10-16 20:55:16 +02:00
|
|
|
void on_request(uint64 id, const td_api::searchChatsNearby &request);
|
|
|
|
|
2023-05-16 20:41:19 +02:00
|
|
|
void on_request(uint64 id, td_api::searchRecentlyFoundChats &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 13:18:37 +02:00
|
|
|
void on_request(uint64 id, const td_api::getRecentlyOpenedChats &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getGroupsInCommon &request);
|
|
|
|
|
2018-03-02 00:19:00 +01:00
|
|
|
void on_request(uint64 id, td_api::checkChatUsername &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getCreatedPublicChats &request);
|
|
|
|
|
2019-10-22 13:06:46 +02:00
|
|
|
void on_request(uint64 id, const td_api::checkCreatedPublicChatsLimit &request);
|
|
|
|
|
2019-09-13 19:25:17 +02:00
|
|
|
void on_request(uint64 id, const td_api::getSuitableDiscussionChats &request);
|
|
|
|
|
2019-12-13 15:27:44 +01:00
|
|
|
void on_request(uint64 id, const td_api::getInactiveSupergroupChats &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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-15 23:41:40 +02:00
|
|
|
void on_request(uint64 id, const td_api::clickAnimatedEmojiMessage &request);
|
|
|
|
|
2023-03-02 14:21:36 +01:00
|
|
|
void on_request(uint64 id, const td_api::getInternalLink &request);
|
|
|
|
|
2021-06-01 04:41:32 +02:00
|
|
|
void on_request(uint64 id, const td_api::getInternalLinkType &request);
|
|
|
|
|
2021-03-15 22:52:37 +01:00
|
|
|
void on_request(uint64 id, td_api::getExternalLinkInfo &request);
|
|
|
|
|
2021-02-04 12:36:11 +01:00
|
|
|
void on_request(uint64 id, td_api::getExternalLink &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatHistory &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::deleteChatHistory &request);
|
|
|
|
|
2021-01-20 12:49:18 +01:00
|
|
|
void on_request(uint64 id, const td_api::deleteChat &request);
|
|
|
|
|
2020-09-30 03:26:39 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMessageThreadHistory &request);
|
|
|
|
|
2021-10-30 02:34:49 +02:00
|
|
|
void on_request(uint64 id, td_api::getChatMessageCalendar &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 13:58:16 +01:00
|
|
|
void on_request(uint64 id, const td_api::searchCallMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchOutgoingDocumentMessages &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-01-19 11:21:50 +01:00
|
|
|
void on_request(uint64 id, const td_api::deleteAllCallMessages &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 16:40:30 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatSparseMessagePositions &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getChatMessageCount &request);
|
2018-07-19 15:58:09 +02:00
|
|
|
|
2022-09-30 19:04:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatMessagePosition &request);
|
|
|
|
|
2019-12-04 18:06:39 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatScheduledMessages &request);
|
|
|
|
|
2022-09-12 14:03:35 +02:00
|
|
|
void on_request(uint64 id, const td_api::getEmojiReaction &request);
|
|
|
|
|
2022-09-12 14:44:37 +02:00
|
|
|
void on_request(uint64 id, const td_api::getCustomEmojiReactionAnimations &request);
|
|
|
|
|
2022-01-26 13:25:03 +01:00
|
|
|
void on_request(uint64 id, const td_api::getMessageAvailableReactions &request);
|
|
|
|
|
2022-09-12 18:37:45 +02:00
|
|
|
void on_request(uint64 id, const td_api::clearRecentReactions &request);
|
|
|
|
|
2022-09-09 14:56:45 +02:00
|
|
|
void on_request(uint64 id, td_api::addMessageReaction &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::removeMessageReaction &request);
|
2022-01-21 18:39:55 +01:00
|
|
|
|
2022-01-26 23:52:21 +01:00
|
|
|
void on_request(uint64 id, td_api::getMessageAddedReactions &request);
|
2022-01-21 14:46:16 +01:00
|
|
|
|
2022-08-16 22:08:36 +02:00
|
|
|
void on_request(uint64 id, td_api::setDefaultReactionType &request);
|
|
|
|
|
2020-08-21 13:47:43 +02:00
|
|
|
void on_request(uint64 id, td_api::getMessagePublicForwards &request);
|
|
|
|
|
2018-11-08 19:00:03 +01:00
|
|
|
void on_request(uint64 id, const td_api::removeNotification &request);
|
|
|
|
|
2018-11-09 23:56:00 +01:00
|
|
|
void on_request(uint64 id, const td_api::removeNotificationGroup &request);
|
2018-11-08 19:00:03 +01:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::deleteMessages &request);
|
|
|
|
|
2021-11-19 13:48:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::deleteChatMessagesBySender &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-10-25 19:39:22 +02:00
|
|
|
void on_request(uint64 id, const td_api::deleteChatMessagesByDate &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::readAllChatMentions &request);
|
|
|
|
|
2022-10-31 18:03:28 +01:00
|
|
|
void on_request(uint64 id, const td_api::readAllMessageThreadMentions &request);
|
|
|
|
|
2022-01-30 10:37:24 +01:00
|
|
|
void on_request(uint64 id, const td_api::readAllChatReactions &request);
|
|
|
|
|
2022-10-31 18:03:28 +01:00
|
|
|
void on_request(uint64 id, const td_api::readAllMessageThreadReactions &request);
|
|
|
|
|
2021-11-12 15:11:01 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatAvailableMessageSenders &request);
|
|
|
|
|
2021-12-21 11:49:26 +01:00
|
|
|
void on_request(uint64 id, const td_api::setChatMessageSender &request);
|
2021-11-15 15:08:37 +01:00
|
|
|
|
2018-12-31 20:04:05 +01: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 22:20:56 +02:00
|
|
|
void on_request(uint64 id, td_api::addLocalMessage &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::editMessageText &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editMessageLiveLocation &request);
|
|
|
|
|
2018-06-19 01:31:34 +02:00
|
|
|
void on_request(uint64 id, td_api::editMessageMedia &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 01:31:34 +02:00
|
|
|
void on_request(uint64 id, td_api::editInlineMessageMedia &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::editInlineMessageCaption &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editInlineMessageReplyMarkup &request);
|
|
|
|
|
2019-12-03 02:36:23 +01:00
|
|
|
void on_request(uint64 id, td_api::editMessageSchedulingState &request);
|
|
|
|
|
2023-06-05 15:55:06 +02:00
|
|
|
void on_request(uint64 id, const td_api::getStory &request);
|
|
|
|
|
2023-05-25 14:03:29 +02:00
|
|
|
void on_request(uint64 id, td_api::sendStory &request);
|
|
|
|
|
2023-05-30 13:41:36 +02:00
|
|
|
void on_request(uint64 id, td_api::editStory &request);
|
|
|
|
|
2023-07-18 15:00:06 +02:00
|
|
|
void on_request(uint64 id, td_api::setStoryPrivacySettings &request);
|
2023-05-25 17:18:28 +02:00
|
|
|
|
2023-05-26 13:21:36 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleStoryIsPinned &request);
|
|
|
|
|
2023-06-01 16:28:49 +02:00
|
|
|
void on_request(uint64 id, const td_api::deleteStory &request);
|
|
|
|
|
2023-06-29 13:22:50 +02:00
|
|
|
void on_request(uint64 id, const td_api::loadActiveStories &request);
|
|
|
|
|
2023-07-08 15:53:29 +02:00
|
|
|
void on_request(uint64 id, const td_api::setChatActiveStoriesList &request);
|
2023-06-05 15:07:44 +02:00
|
|
|
|
2022-10-27 09:06:13 +02:00
|
|
|
void on_request(uint64 id, const td_api::getForumTopicDefaultIcons &request);
|
|
|
|
|
2022-10-25 15:10:15 +02:00
|
|
|
void on_request(uint64 id, td_api::createForumTopic &request);
|
|
|
|
|
2022-10-27 15:53:23 +02:00
|
|
|
void on_request(uint64 id, td_api::editForumTopic &request);
|
|
|
|
|
2022-12-02 15:04:24 +01:00
|
|
|
void on_request(uint64 id, const td_api::getForumTopic &request);
|
|
|
|
|
2022-12-05 11:03:38 +01:00
|
|
|
void on_request(uint64 id, const td_api::getForumTopicLink &request);
|
|
|
|
|
2022-12-06 16:16:22 +01:00
|
|
|
void on_request(uint64 id, td_api::getForumTopics &request);
|
|
|
|
|
2022-10-27 16:31:05 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleForumTopicIsClosed &request);
|
|
|
|
|
2022-11-30 16:52:31 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleGeneralForumTopicIsHidden &request);
|
|
|
|
|
2022-12-29 21:23:09 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleForumTopicIsPinned &request);
|
|
|
|
|
2022-12-29 21:48:19 +01:00
|
|
|
void on_request(uint64 id, const td_api::setPinnedForumTopics &request);
|
|
|
|
|
2022-10-29 23:35:37 +02:00
|
|
|
void on_request(uint64 id, const td_api::deleteForumTopic &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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);
|
|
|
|
|
2019-12-06 00:32:23 +01:00
|
|
|
void on_request(uint64 id, td_api::forwardMessages &request);
|
2019-08-11 03:05:00 +02:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resendMessages &request);
|
2018-12-31 20:04:05 +01: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 10:34:28 +02:00
|
|
|
void on_request(uint64 id, const td_api::createCall &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2020-08-10 10:34:28 +02:00
|
|
|
void on_request(uint64 id, const td_api::acceptCall &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2020-08-10 10:34:28 +02:00
|
|
|
void on_request(uint64 id, td_api::sendCallSignalingData &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::discardCall &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendCallRating &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::sendCallDebugInformation &request);
|
|
|
|
|
2022-04-22 14:16:09 +02:00
|
|
|
void on_request(uint64 id, td_api::sendCallLog &request);
|
|
|
|
|
2021-10-14 14:44:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::getVideoChatAvailableParticipants &request);
|
2021-03-08 18:25:56 +01:00
|
|
|
|
2021-10-14 14:44:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::setVideoChatDefaultParticipant &request);
|
2021-04-07 15:25:29 +02:00
|
|
|
|
2021-10-14 14:44:21 +02:00
|
|
|
void on_request(uint64 id, td_api::createVideoChat &request);
|
2022-02-25 15:58:03 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getVideoChatRtmpUrl &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::replaceVideoChatRtmpUrl &request);
|
2020-11-26 08:56:13 +01:00
|
|
|
|
2020-12-03 00:00:46 +01:00
|
|
|
void on_request(uint64 id, const td_api::getGroupCall &request);
|
|
|
|
|
2021-04-07 01:11:14 +02:00
|
|
|
void on_request(uint64 id, const td_api::startScheduledGroupCall &request);
|
|
|
|
|
2021-04-07 02:04:56 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallEnabledStartNotification &request);
|
|
|
|
|
2020-11-26 12:32:29 +01:00
|
|
|
void on_request(uint64 id, td_api::joinGroupCall &request);
|
|
|
|
|
2021-04-30 18:53:39 +02:00
|
|
|
void on_request(uint64 id, td_api::startGroupCallScreenSharing &request);
|
|
|
|
|
2021-04-30 19:21:07 +02:00
|
|
|
void on_request(uint64 id, const td_api::endGroupCallScreenSharing &request);
|
|
|
|
|
2021-03-02 17:44:57 +01:00
|
|
|
void on_request(uint64 id, td_api::setGroupCallTitle &request);
|
|
|
|
|
2020-12-08 15:51:37 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallMuteNewParticipants &request);
|
2020-11-26 23:58:36 +01:00
|
|
|
|
2021-03-12 17:31:52 +01:00
|
|
|
void on_request(uint64 id, const td_api::revokeGroupCallInviteLink &request);
|
2021-03-12 16:58:43 +01:00
|
|
|
|
2020-12-08 15:51:37 +01:00
|
|
|
void on_request(uint64 id, const td_api::inviteGroupCallParticipants &request);
|
2020-11-27 13:22:19 +01:00
|
|
|
|
2021-03-12 17:29:06 +01:00
|
|
|
void on_request(uint64 id, const td_api::getGroupCallInviteLink &request);
|
|
|
|
|
2021-03-11 20:19:19 +01:00
|
|
|
void on_request(uint64 id, td_api::startGroupCallRecording &request);
|
|
|
|
|
2021-06-04 00:17:15 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallScreenSharingIsPaused &request);
|
2021-06-01 23:38:08 +02:00
|
|
|
|
2021-03-11 20:19:19 +01:00
|
|
|
void on_request(uint64 id, const td_api::endGroupCallRecording &request);
|
|
|
|
|
2021-06-01 19:11:18 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallIsMyVideoPaused &request);
|
|
|
|
|
2021-05-02 01:40:22 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallIsMyVideoEnabled &request);
|
|
|
|
|
2020-12-08 15:51:37 +01:00
|
|
|
void on_request(uint64 id, const td_api::setGroupCallParticipantIsSpeaking &request);
|
2020-12-04 15:06:37 +01:00
|
|
|
|
2020-12-08 15:51:37 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallParticipantIsMuted &request);
|
2020-11-27 15:40:29 +01:00
|
|
|
|
2021-01-02 20:59:48 +01:00
|
|
|
void on_request(uint64 id, const td_api::setGroupCallParticipantVolumeLevel &request);
|
|
|
|
|
2021-03-14 23:56:59 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleGroupCallParticipantIsHandRaised &request);
|
|
|
|
|
2020-12-11 17:39:27 +01:00
|
|
|
void on_request(uint64 id, const td_api::loadGroupCallParticipants &request);
|
|
|
|
|
2020-11-26 09:37:54 +01:00
|
|
|
void on_request(uint64 id, const td_api::leaveGroupCall &request);
|
|
|
|
|
2021-12-23 11:00:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::endGroupCall &request);
|
2020-11-26 09:21:26 +01:00
|
|
|
|
2022-02-22 15:42:58 +01:00
|
|
|
void on_request(uint64 id, const td_api::getGroupCallStreams &request);
|
|
|
|
|
2021-08-23 15:59:00 +02:00
|
|
|
void on_request(uint64 id, td_api::getGroupCallStreamSegment &request);
|
2021-03-10 20:50:14 +01:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::upgradeBasicGroupChatToSupergroupChat &request);
|
|
|
|
|
2020-05-31 02:50:52 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatListsToAddChat &request);
|
|
|
|
|
2020-05-30 23:48:33 +02:00
|
|
|
void on_request(uint64 id, const td_api::addChatToList &request);
|
2019-08-27 16:23:01 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatFolder &request);
|
2020-05-18 01:29:28 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::getRecommendedChatFolders &request);
|
2020-05-19 03:03:15 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::createChatFolder &request);
|
2020-05-18 21:26:44 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::editChatFolder &request);
|
2020-05-18 23:47:34 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::deleteChatFolder &request);
|
2020-05-19 00:06:24 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatFolderChatsToLeave &request);
|
2023-04-02 11:40:57 +02:00
|
|
|
|
2023-05-01 13:57:16 +02:00
|
|
|
void on_request(uint64 id, td_api::getChatFolderChatCount &request);
|
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::reorderChatFolders &request);
|
2020-05-19 01:41:07 +02:00
|
|
|
|
2023-04-09 20:54:40 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatsForChatFolderInviteLink &request);
|
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::createChatFolderInviteLink &request);
|
2023-03-27 20:36:44 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::getChatFolderInviteLinks &request);
|
2023-03-30 16:15:04 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::editChatFolderInviteLink &request);
|
2023-03-30 18:37:01 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::deleteChatFolderInviteLink &request);
|
2023-03-30 18:52:55 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::checkChatFolderInviteLink &request);
|
2023-03-31 14:50:49 +02:00
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, td_api::addChatFolderByInviteLink &request);
|
2023-03-31 15:48:32 +02:00
|
|
|
|
2023-04-04 15:21:31 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatFolderNewChats &request);
|
|
|
|
|
2023-04-12 00:52:36 +02:00
|
|
|
void on_request(uint64 id, const td_api::processChatFolderNewChats &request);
|
2023-04-05 18:43:58 +02:00
|
|
|
|
2023-07-14 13:54:35 +02:00
|
|
|
void on_request(uint64 id, const td_api::getArchiveChatListSettings &request);
|
|
|
|
|
2023-07-14 14:25:32 +02:00
|
|
|
void on_request(uint64 id, td_api::setArchiveChatListSettings &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::setChatTitle &request);
|
|
|
|
|
2018-06-28 23:06:17 +02:00
|
|
|
void on_request(uint64 id, const td_api::setChatPhoto &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2022-12-28 19:46:16 +01:00
|
|
|
void on_request(uint64 id, const td_api::setChatMessageAutoDeleteTime &request);
|
2021-02-05 12:21:16 +01:00
|
|
|
|
2019-03-20 18:58:13 +01:00
|
|
|
void on_request(uint64 id, const td_api::setChatPermissions &request);
|
|
|
|
|
2023-04-11 16:46:55 +02:00
|
|
|
void on_request(uint64 id, td_api::setChatBackground &request);
|
|
|
|
|
2021-08-27 18:23:22 +02:00
|
|
|
void on_request(uint64 id, td_api::setChatTheme &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::setChatDraftMessage &request);
|
|
|
|
|
2021-12-06 19:43:55 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatHasProtectedContent &request);
|
2021-11-25 09:44:51 +01:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatIsPinned &request);
|
|
|
|
|
2023-01-20 10:38:25 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatIsTranslatable &request);
|
|
|
|
|
2018-06-27 23:08:44 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatIsMarkedAsUnread &request);
|
|
|
|
|
2023-07-28 16:33:47 +02:00
|
|
|
void on_request(uint64 id, const td_api::setMessageSenderBlockList &request);
|
2020-09-20 02:00:01 +02:00
|
|
|
|
2018-04-28 20:05:04 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleChatDefaultDisableNotification &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::setPinnedChats &request);
|
|
|
|
|
2023-04-14 14:17:25 +02:00
|
|
|
void on_request(uint64 id, const td_api::readChatList &request);
|
|
|
|
|
2023-07-06 18:15:00 +02:00
|
|
|
void on_request(uint64 id, const td_api::getStoryNotificationSettingsExceptions &request);
|
|
|
|
|
2023-06-27 21:45:01 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatActiveStories &request);
|
2023-06-09 16:21:34 +02:00
|
|
|
|
2023-06-27 21:45:01 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatPinnedStories &request);
|
2023-05-20 22:24:36 +02:00
|
|
|
|
2023-06-09 16:21:34 +02:00
|
|
|
void on_request(uint64 id, const td_api::getArchivedStories &request);
|
2023-05-21 11:39:53 +02:00
|
|
|
|
2023-06-14 14:17:24 +02:00
|
|
|
void on_request(uint64 id, const td_api::openStory &request);
|
|
|
|
|
2023-06-15 17:34:05 +02:00
|
|
|
void on_request(uint64 id, const td_api::closeStory &request);
|
|
|
|
|
2023-08-09 13:13:41 +02:00
|
|
|
void on_request(uint64 id, const td_api::getStoryAvailableReactions &request);
|
|
|
|
|
2023-08-06 22:28:00 +02:00
|
|
|
void on_request(uint64 id, const td_api::setStoryReaction &request);
|
|
|
|
|
2023-08-07 18:40:15 +02:00
|
|
|
void on_request(uint64 id, td_api::getStoryViewers &request);
|
2023-06-18 22:25:50 +02:00
|
|
|
|
2023-06-21 22:23:19 +02:00
|
|
|
void on_request(uint64 id, td_api::reportStory &request);
|
|
|
|
|
2023-08-04 14:23:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::activateStoryStealthMode &request);
|
|
|
|
|
2022-04-14 21:56:27 +02:00
|
|
|
void on_request(uint64 id, const td_api::getAttachmentMenuBot &request);
|
2022-03-29 14:00:00 +02:00
|
|
|
|
2022-04-14 21:56:27 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleBotIsAddedToAttachmentMenu &request);
|
2022-03-26 21:41:22 +01:00
|
|
|
|
2022-01-05 14:23:35 +01:00
|
|
|
void on_request(uint64 id, td_api::setChatAvailableReactions &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::setChatClientData &request);
|
|
|
|
|
2019-03-18 03:24:25 +01:00
|
|
|
void on_request(uint64 id, td_api::setChatDescription &request);
|
|
|
|
|
2019-09-14 04:35:56 +02:00
|
|
|
void on_request(uint64 id, const td_api::setChatDiscussionGroup &request);
|
|
|
|
|
2019-10-14 18:07:31 +02:00
|
|
|
void on_request(uint64 id, td_api::setChatLocation &request);
|
|
|
|
|
2019-11-15 16:17:52 +01:00
|
|
|
void on_request(uint64 id, const td_api::setChatSlowModeDelay &request);
|
|
|
|
|
2019-02-01 13:19:32 +01:00
|
|
|
void on_request(uint64 id, const td_api::pinChatMessage &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::unpinChatMessage &request);
|
|
|
|
|
2020-10-23 00:56:06 +02:00
|
|
|
void on_request(uint64 id, const td_api::unpinAllChatMessages &request);
|
|
|
|
|
2022-10-31 18:03:28 +01:00
|
|
|
void on_request(uint64 id, const td_api::unpinAllMessageThreadMessages &request);
|
|
|
|
|
2018-08-16 19:09:23 +02:00
|
|
|
void on_request(uint64 id, const td_api::joinChat &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::leaveChat &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::addChatMember &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::addChatMembers &request);
|
|
|
|
|
2022-04-04 15:19:41 +02:00
|
|
|
void on_request(uint64 id, td_api::setChatMemberStatus &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-01-20 19:12:48 +01:00
|
|
|
void on_request(uint64 id, const td_api::banChatMember &request);
|
|
|
|
|
2019-10-17 18:43:41 +02:00
|
|
|
void on_request(uint64 id, const td_api::canTransferOwnership &request);
|
|
|
|
|
2019-10-17 16:05:01 +02:00
|
|
|
void on_request(uint64 id, td_api::transferChatOwnership &request);
|
|
|
|
|
2021-11-15 10:07:52 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatMember &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchChatMembers &request);
|
|
|
|
|
2021-11-15 10:07:52 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatAdministrators &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-02-24 10:19:55 +01:00
|
|
|
void on_request(uint64 id, const td_api::replacePrimaryChatInviteLink &request);
|
2021-02-02 00:00:28 +01:00
|
|
|
|
2021-10-27 12:04:34 +02:00
|
|
|
void on_request(uint64 id, td_api::createChatInviteLink &request);
|
2021-01-12 17:21:12 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::editChatInviteLink &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2021-02-24 20:25:10 +01:00
|
|
|
void on_request(uint64 id, td_api::getChatInviteLink &request);
|
|
|
|
|
2021-02-02 17:23:45 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatInviteLinkCounts &request);
|
2021-01-18 20:35:28 +01:00
|
|
|
|
2021-01-14 17:39:51 +01:00
|
|
|
void on_request(uint64 id, td_api::getChatInviteLinks &request);
|
|
|
|
|
2021-01-17 21:07:17 +01:00
|
|
|
void on_request(uint64 id, td_api::getChatInviteLinkMembers &request);
|
2021-01-14 21:21:23 +01:00
|
|
|
|
2021-10-13 21:33:31 +02:00
|
|
|
void on_request(uint64 id, td_api::getChatJoinRequests &request);
|
|
|
|
|
2021-11-24 09:33:18 +01:00
|
|
|
void on_request(uint64 id, const td_api::processChatJoinRequest &request);
|
2021-10-13 22:10:47 +02:00
|
|
|
|
2021-11-24 10:02:23 +01:00
|
|
|
void on_request(uint64 id, td_api::processChatJoinRequests &request);
|
|
|
|
|
2021-02-02 17:23:45 +01:00
|
|
|
void on_request(uint64 id, td_api::revokeChatInviteLink &request);
|
|
|
|
|
2021-01-18 17:51:46 +01:00
|
|
|
void on_request(uint64 id, td_api::deleteRevokedChatInviteLink &request);
|
|
|
|
|
2021-01-18 17:59:21 +01:00
|
|
|
void on_request(uint64 id, const td_api::deleteAllRevokedChatInviteLinks &request);
|
2021-02-02 00:00:28 +01:00
|
|
|
|
2018-12-31 20:04:05 +01: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 05:46:27 +02:00
|
|
|
void on_request(uint64 id, const td_api::clearAllDraftMessages &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::downloadFile &request);
|
|
|
|
|
2019-04-26 00:03:31 +02:00
|
|
|
void on_request(uint64 id, const td_api::getFileDownloadedPrefixSize &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::cancelDownloadFile &request);
|
|
|
|
|
2021-07-24 06:19:22 +02:00
|
|
|
void on_request(uint64 id, const td_api::getSuggestedFileName &request);
|
|
|
|
|
2022-07-18 13:07:50 +02:00
|
|
|
void on_request(uint64 id, td_api::preliminaryUploadFile &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2022-07-18 13:07:50 +02:00
|
|
|
void on_request(uint64 id, const td_api::cancelPreliminaryUploadFile &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2019-04-26 02:18:00 +02:00
|
|
|
void on_request(uint64 id, td_api::writeGeneratedFilePart &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::setFileGenerationProgress &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::finishFileGeneration &request);
|
|
|
|
|
2019-04-26 00:03:31 +02:00
|
|
|
void on_request(uint64 id, const td_api::readFilePart &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::deleteFile &request);
|
|
|
|
|
2022-02-17 23:37:04 +01: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 17:14:35 +01:00
|
|
|
void on_request(uint64 id, td_api::getMessageFileType &request);
|
|
|
|
|
2021-02-23 00:03:24 +01:00
|
|
|
void on_request(uint64 id, const td_api::getMessageImportConfirmationText &request);
|
|
|
|
|
2021-01-21 20:00:08 +01:00
|
|
|
void on_request(uint64 id, const td_api::importMessages &request);
|
|
|
|
|
2020-10-18 00:26:36 +02:00
|
|
|
void on_request(uint64 id, const td_api::blockMessageSenderFromReplies &request);
|
2020-09-24 14:29:34 +02:00
|
|
|
|
2020-10-18 01:10:58 +02:00
|
|
|
void on_request(uint64 id, const td_api::getBlockedMessageSenders &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2019-10-08 17:12:15 +02:00
|
|
|
void on_request(uint64 id, td_api::addContact &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::importContacts &request);
|
|
|
|
|
2018-08-16 19:09:23 +02:00
|
|
|
void on_request(uint64 id, const td_api::getContacts &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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);
|
|
|
|
|
2023-05-03 19:42:47 +02:00
|
|
|
void on_request(uint64 id, const td_api::getCloseFriends &request);
|
|
|
|
|
2023-05-04 17:27:03 +02:00
|
|
|
void on_request(uint64 id, const td_api::setCloseFriends &request);
|
|
|
|
|
2022-12-13 12:16:49 +01:00
|
|
|
void on_request(uint64 id, td_api::setUserPersonalProfilePhoto &request);
|
|
|
|
|
2022-12-26 11:49:00 +01:00
|
|
|
void on_request(uint64 id, td_api::suggestUserProfilePhoto &request);
|
2022-12-15 16:12:30 +01:00
|
|
|
|
2022-02-18 16:13:10 +01:00
|
|
|
void on_request(uint64 id, td_api::searchUserByPhoneNumber &request);
|
|
|
|
|
2019-10-11 16:59:04 +02:00
|
|
|
void on_request(uint64 id, const td_api::sharePhoneNumber &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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);
|
|
|
|
|
2022-10-17 13:04:22 +02:00
|
|
|
void on_request(uint64 id, td_api::toggleUsernameIsActive &request);
|
|
|
|
|
2022-10-14 14:32:54 +02:00
|
|
|
void on_request(uint64 id, td_api::reorderActiveUsernames &request);
|
|
|
|
|
2022-09-07 09:25:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::setEmojiStatus &request);
|
2022-08-09 14:49:47 +02:00
|
|
|
|
2022-09-07 09:25:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::getThemedEmojiStatuses &request);
|
2022-09-02 14:02:37 +02:00
|
|
|
|
2022-09-07 09:25:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::getDefaultEmojiStatuses &request);
|
2022-08-30 17:03:57 +02:00
|
|
|
|
2022-09-07 09:25:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::getRecentEmojiStatuses &request);
|
2022-08-31 14:47:51 +02:00
|
|
|
|
2022-09-07 09:25:21 +02:00
|
|
|
void on_request(uint64 id, const td_api::clearRecentEmojiStatuses &request);
|
2022-08-31 15:41:13 +02:00
|
|
|
|
2020-03-27 23:43:52 +01:00
|
|
|
void on_request(uint64 id, td_api::setCommands &request);
|
|
|
|
|
2021-06-22 03:17:44 +02:00
|
|
|
void on_request(uint64 id, td_api::deleteCommands &request);
|
|
|
|
|
2021-06-19 03:18:02 +02:00
|
|
|
void on_request(uint64 id, td_api::getCommands &request);
|
|
|
|
|
2022-04-07 17:15:58 +02:00
|
|
|
void on_request(uint64 id, td_api::setMenuButton &request);
|
|
|
|
|
2022-04-07 16:20:26 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMenuButton &request);
|
|
|
|
|
2022-04-02 14:32:04 +02:00
|
|
|
void on_request(uint64 id, const td_api::setDefaultGroupAdministratorRights &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::setDefaultChannelAdministratorRights &request);
|
|
|
|
|
2023-03-28 17:42:54 +02:00
|
|
|
void on_request(uint64 id, td_api::setBotName &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getBotName &request);
|
|
|
|
|
2023-03-29 20:49:54 +02:00
|
|
|
void on_request(uint64 id, td_api::setBotProfilePhoto &request);
|
|
|
|
|
2023-03-30 14:34:27 +02:00
|
|
|
void on_request(uint64 id, td_api::toggleBotUsernameIsActive &request);
|
|
|
|
|
2023-04-29 21:27:31 +02:00
|
|
|
void on_request(uint64 id, td_api::reorderBotActiveUsernames &request);
|
2023-03-30 15:41:03 +02:00
|
|
|
|
2023-02-26 23:00:17 +01:00
|
|
|
void on_request(uint64 id, td_api::setBotInfoDescription &request);
|
|
|
|
|
2023-02-26 23:33:51 +01:00
|
|
|
void on_request(uint64 id, const td_api::getBotInfoDescription &request);
|
|
|
|
|
2023-03-04 18:31:21 +01:00
|
|
|
void on_request(uint64 id, td_api::setBotInfoShortDescription &request);
|
2023-02-26 23:41:46 +01:00
|
|
|
|
2023-03-04 18:31:21 +01:00
|
|
|
void on_request(uint64 id, const td_api::getBotInfoShortDescription &request);
|
2023-02-26 23:47:55 +01:00
|
|
|
|
2020-02-14 14:17:45 +01:00
|
|
|
void on_request(uint64 id, const td_api::setLocation &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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);
|
|
|
|
|
2022-10-17 13:04:22 +02:00
|
|
|
void on_request(uint64 id, td_api::toggleSupergroupUsernameIsActive &request);
|
|
|
|
|
2022-10-17 13:58:47 +02:00
|
|
|
void on_request(uint64 id, const td_api::disableAllSupergroupUsernames &request);
|
|
|
|
|
2022-10-14 14:32:54 +02:00
|
|
|
void on_request(uint64 id, td_api::reorderSupergroupActiveUsernames &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::setSupergroupStickerSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupSignMessages &request);
|
|
|
|
|
2022-04-29 17:25:29 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupJoinToSendMessages &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupJoinByRequest &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupIsAllHistoryAvailable &request);
|
|
|
|
|
2022-12-20 13:51:37 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupHasHiddenMembers &request);
|
|
|
|
|
2022-12-27 17:14:37 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupHasAggressiveAntiSpamEnabled &request);
|
2022-11-25 14:06:04 +01:00
|
|
|
|
2022-10-25 10:52:45 +02:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupIsForum &request);
|
|
|
|
|
2021-02-16 23:06:35 +01:00
|
|
|
void on_request(uint64 id, const td_api::toggleSupergroupIsBroadcastGroup &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::reportSupergroupSpam &request);
|
|
|
|
|
2022-11-25 14:38:00 +01:00
|
|
|
void on_request(uint64 id, const td_api::reportSupergroupAntiSpamFalsePositive &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
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 18:04:44 +01:00
|
|
|
void on_request(uint64 id, td_api::searchStickers &request);
|
|
|
|
|
2022-08-01 18:21:08 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumStickers &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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-05 23:44:11 +01:00
|
|
|
void on_request(uint64 id, td_api::searchInstalledStickerSets &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::searchStickerSets &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 19:38:03 +02:00
|
|
|
void on_request(uint64 id, td_api::getSuggestedStickerSetName &request);
|
|
|
|
|
2021-06-17 20:29:07 +02:00
|
|
|
void on_request(uint64 id, td_api::checkStickerSetName &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::createNewStickerSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::addStickerToSet &request);
|
|
|
|
|
2020-03-20 14:36:07 +01:00
|
|
|
void on_request(uint64 id, td_api::setStickerSetThumbnail &request);
|
|
|
|
|
2023-02-08 19:29:54 +01:00
|
|
|
void on_request(uint64 id, td_api::setCustomEmojiStickerSetThumbnail &request);
|
|
|
|
|
2023-02-08 19:43:09 +01:00
|
|
|
void on_request(uint64 id, td_api::setStickerSetTitle &request);
|
|
|
|
|
2023-02-16 14:17:29 +01:00
|
|
|
void on_request(uint64 id, td_api::deleteStickerSet &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::setStickerPositionInSet &request);
|
|
|
|
|
2023-02-09 18:42:09 +01:00
|
|
|
void on_request(uint64 id, const td_api::removeStickerFromSet &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setStickerEmojis &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2023-02-09 19:43:38 +01:00
|
|
|
void on_request(uint64 id, td_api::setStickerKeywords &request);
|
|
|
|
|
2023-02-10 13:52:25 +01:00
|
|
|
void on_request(uint64 id, td_api::setStickerMaskPosition &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
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 17:48:35 +02:00
|
|
|
void on_request(uint64 id, td_api::searchEmojis &request);
|
|
|
|
|
2023-01-24 16:11:02 +01:00
|
|
|
void on_request(uint64 id, const td_api::getEmojiCategories &request);
|
|
|
|
|
2021-10-26 16:59:15 +02:00
|
|
|
void on_request(uint64 id, td_api::getAnimatedEmoji &request);
|
|
|
|
|
2019-05-21 21:44:13 +02:00
|
|
|
void on_request(uint64 id, td_api::getEmojiSuggestionsUrl &request);
|
|
|
|
|
2022-10-03 00:26:32 +02:00
|
|
|
void on_request(uint64 id, const td_api::getCustomEmojiStickers &request);
|
2022-07-19 15:00:04 +02:00
|
|
|
|
2023-01-10 13:23:07 +01:00
|
|
|
void on_request(uint64 id, const td_api::getDefaultChatPhotoCustomEmojiStickers &request);
|
|
|
|
|
2023-01-10 13:40:52 +01:00
|
|
|
void on_request(uint64 id, const td_api::getDefaultProfilePhotoCustomEmojiStickers &request);
|
|
|
|
|
2018-12-31 20:04:05 +01: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 12:23:43 +02:00
|
|
|
void on_request(uint64 id, const td_api::getSavedNotificationSound &request);
|
|
|
|
|
2022-04-13 21:14:40 +02:00
|
|
|
void on_request(uint64 id, const td_api::getSavedNotificationSounds &request);
|
|
|
|
|
2022-04-14 21:39:25 +02:00
|
|
|
void on_request(uint64 id, td_api::addSavedNotificationSound &request);
|
|
|
|
|
2022-04-14 13:31:18 +02:00
|
|
|
void on_request(uint64 id, const td_api::removeSavedNotificationSound &request);
|
|
|
|
|
2019-02-14 19:44:20 +01:00
|
|
|
void on_request(uint64 id, const td_api::getChatNotificationSettingsExceptions &request);
|
|
|
|
|
2018-04-09 18:30:27 +02:00
|
|
|
void on_request(uint64 id, const td_api::getScopeNotificationSettings &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-04-09 18:30:27 +02:00
|
|
|
void on_request(uint64 id, td_api::setChatNotificationSettings &request);
|
|
|
|
|
2022-12-06 12:53:54 +01:00
|
|
|
void on_request(uint64 id, td_api::setForumTopicNotificationSettings &request);
|
|
|
|
|
2018-04-09 18:30:27 +02:00
|
|
|
void on_request(uint64 id, td_api::setScopeNotificationSettings &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resetAllNotificationSettings &request);
|
|
|
|
|
2019-10-11 02:28:41 +02:00
|
|
|
void on_request(uint64 id, const td_api::removeChatActionBar &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::reportChat &request);
|
|
|
|
|
2021-02-19 17:11:27 +01:00
|
|
|
void on_request(uint64 id, td_api::reportChatPhoto &request);
|
|
|
|
|
2022-08-23 13:39:10 +02:00
|
|
|
void on_request(uint64 id, const td_api::reportMessageReactions &request);
|
|
|
|
|
2020-04-03 02:53:33 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatStatistics &request);
|
2020-04-02 15:06:05 +02:00
|
|
|
|
2020-08-01 04:19:54 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMessageStatistics &request);
|
|
|
|
|
2020-11-19 15:23:26 +01:00
|
|
|
void on_request(uint64 id, td_api::getStatisticalGraph &request);
|
2020-04-02 15:06:05 +02:00
|
|
|
|
2018-08-13 22:18:27 +02:00
|
|
|
void on_request(uint64 id, const td_api::getMapThumbnailFile &request);
|
|
|
|
|
2018-09-04 03:29:26 +02:00
|
|
|
void on_request(uint64 id, const td_api::getLocalizationTargetInfo &request);
|
2018-07-03 19:28:00 +02:00
|
|
|
|
2019-02-12 02:15:45 +01:00
|
|
|
void on_request(uint64 id, td_api::getLanguagePackInfo &request);
|
|
|
|
|
2018-07-03 19:28:00 +02:00
|
|
|
void on_request(uint64 id, td_api::getLanguagePackStrings &request);
|
|
|
|
|
2019-02-23 18:27:14 +01:00
|
|
|
void on_request(uint64 id, td_api::synchronizeLanguagePack &request);
|
|
|
|
|
2019-02-11 19:53:10 +01:00
|
|
|
void on_request(uint64 id, td_api::addCustomServerLanguagePack &request);
|
|
|
|
|
2018-09-04 03:29:26 +02:00
|
|
|
void on_request(uint64 id, td_api::setCustomLanguagePack &request);
|
2018-08-06 16:22:22 +02:00
|
|
|
|
2018-09-04 03:29:26 +02:00
|
|
|
void on_request(uint64 id, td_api::editCustomLanguagePackInfo &request);
|
2018-08-31 19:18:12 +02:00
|
|
|
|
2018-09-04 03:29:26 +02:00
|
|
|
void on_request(uint64 id, td_api::setCustomLanguagePackString &request);
|
2018-08-22 22:11:54 +02:00
|
|
|
|
2018-09-04 03:29:26 +02:00
|
|
|
void on_request(uint64 id, td_api::deleteLanguagePack &request);
|
2018-08-06 16:22:22 +02:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::getOption &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::setOption &request);
|
|
|
|
|
2019-02-21 13:23:05 +01:00
|
|
|
void on_request(uint64 id, td_api::setPollAnswer &request);
|
2019-02-21 01:52:58 +01:00
|
|
|
|
2020-01-13 19:21:58 +01:00
|
|
|
void on_request(uint64 id, td_api::getPollVoters &request);
|
|
|
|
|
2019-04-12 01:10:33 +02:00
|
|
|
void on_request(uint64 id, td_api::stopPoll &request);
|
2019-02-22 16:09:55 +01:00
|
|
|
|
2020-07-12 14:04:49 +02:00
|
|
|
void on_request(uint64 id, const td_api::hideSuggestedAction &request);
|
|
|
|
|
2019-09-07 01:07:56 +02:00
|
|
|
void on_request(uint64 id, const td_api::getLoginUrlInfo &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getLoginUrl &request);
|
|
|
|
|
2023-01-23 16:19:35 +01:00
|
|
|
void on_request(uint64 id, const td_api::shareUserWithBot &request);
|
2023-01-13 15:03:35 +01:00
|
|
|
|
2023-01-23 16:19:35 +01:00
|
|
|
void on_request(uint64 id, const td_api::shareChatWithBot &request);
|
2023-01-13 15:16:16 +01:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, td_api::getInlineQueryResults &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, td_api::answerInlineQuery &request);
|
|
|
|
|
2023-02-24 12:07:40 +01:00
|
|
|
void on_request(uint64 id, td_api::searchWebApp &request);
|
|
|
|
|
2023-02-24 13:08:16 +01:00
|
|
|
void on_request(uint64 id, td_api::getWebAppLinkUrl &request);
|
|
|
|
|
2022-03-31 15:42:59 +02:00
|
|
|
void on_request(uint64 id, td_api::getWebAppUrl &request);
|
2022-03-30 15:27:01 +02:00
|
|
|
|
2022-03-31 15:42:59 +02:00
|
|
|
void on_request(uint64 id, td_api::sendWebAppData &request);
|
2022-03-31 14:05:08 +02:00
|
|
|
|
2022-03-31 15:42:59 +02:00
|
|
|
void on_request(uint64 id, td_api::openWebApp &request);
|
2022-03-31 20:45:35 +02:00
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::closeWebApp &request);
|
2022-03-28 14:18:15 +02:00
|
|
|
|
2022-03-31 15:42:59 +02:00
|
|
|
void on_request(uint64 id, td_api::answerWebAppQuery &request);
|
2022-03-24 09:42:47 +01:00
|
|
|
|
2018-12-31 20:04:05 +01: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 17:20:34 +01:00
|
|
|
void on_request(uint64 id, td_api::getBankCardInfo &request);
|
|
|
|
|
2022-05-03 17:50:29 +02:00
|
|
|
void on_request(uint64 id, td_api::getPaymentForm &request);
|
2018-12-31 20:04:05 +01: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 15:37:11 +02:00
|
|
|
void on_request(uint64 id, td_api::createInvoiceLink &request);
|
|
|
|
|
2018-08-01 15:52:07 +02:00
|
|
|
void on_request(uint64 id, td_api::getPassportElement &request);
|
2018-03-27 15:11:15 +02:00
|
|
|
|
2018-08-01 15:52:07 +02:00
|
|
|
void on_request(uint64 id, td_api::getAllPassportElements &request);
|
2018-04-07 00:29:36 +02:00
|
|
|
|
2018-08-01 15:52:07 +02:00
|
|
|
void on_request(uint64 id, td_api::setPassportElement &request);
|
2018-03-27 15:11:15 +02:00
|
|
|
|
2018-08-01 15:52:07 +02:00
|
|
|
void on_request(uint64 id, const td_api::deletePassportElement &request);
|
2018-03-27 15:11:15 +02:00
|
|
|
|
2018-08-01 15:52:07 +02:00
|
|
|
void on_request(uint64 id, td_api::setPassportElementErrors &request);
|
2018-04-17 17:04:09 +02:00
|
|
|
|
2018-08-24 00:02:59 +02:00
|
|
|
void on_request(uint64 id, td_api::getPreferredCountryLanguage &request);
|
|
|
|
|
2018-03-27 15:11:15 +02: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 04:12:41 +02:00
|
|
|
void on_request(uint64 id, td_api::getPassportAuthorizationFormAvailableElements &request);
|
|
|
|
|
2018-04-06 21:37:30 +02:00
|
|
|
void on_request(uint64 id, td_api::sendPassportAuthorizationForm &request);
|
2018-03-27 15:11:15 +02:00
|
|
|
|
2018-06-27 20:26:52 +02: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 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getSupportUser &request);
|
|
|
|
|
2019-05-07 04:51:56 +02:00
|
|
|
void on_request(uint64 id, const td_api::getBackgrounds &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2019-05-07 16:10:20 +02:00
|
|
|
void on_request(uint64 id, td_api::getBackgroundUrl &request);
|
|
|
|
|
2019-05-07 17:21:57 +02:00
|
|
|
void on_request(uint64 id, td_api::searchBackground &request);
|
|
|
|
|
2019-05-10 14:36:37 +02:00
|
|
|
void on_request(uint64 id, td_api::setBackground &request);
|
|
|
|
|
2019-05-12 03:10:18 +02:00
|
|
|
void on_request(uint64 id, const td_api::removeBackground &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::resetBackgrounds &request);
|
2019-05-10 22:55:26 +02:00
|
|
|
|
2018-12-31 20:04:05 +01: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 01:55:03 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumLimit &request);
|
|
|
|
|
2022-05-23 14:56:31 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumFeatures &request);
|
|
|
|
|
2022-08-01 14:42:02 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumStickerExamples &request);
|
2022-06-03 17:16:12 +02:00
|
|
|
|
2022-05-24 19:45:03 +02:00
|
|
|
void on_request(uint64 id, const td_api::viewPremiumFeature &request);
|
|
|
|
|
2022-05-25 14:34:36 +02:00
|
|
|
void on_request(uint64 id, const td_api::clickPremiumSubscriptionButton &request);
|
|
|
|
|
2022-06-01 14:14:09 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPremiumState &request);
|
2022-06-24 16:07:10 +02:00
|
|
|
|
2022-07-15 13:09:37 +02:00
|
|
|
void on_request(uint64 id, td_api::canPurchasePremium &request);
|
2022-06-24 16:27:03 +02:00
|
|
|
|
2022-07-01 18:27:59 +02:00
|
|
|
void on_request(uint64 id, td_api::assignAppStoreTransaction &request);
|
2022-06-24 17:14:00 +02:00
|
|
|
|
2022-06-24 16:27:03 +02:00
|
|
|
void on_request(uint64 id, td_api::assignGooglePlayTransaction &request);
|
2022-06-01 14:14:09 +02:00
|
|
|
|
2018-06-07 20:42:17 +02:00
|
|
|
void on_request(uint64 id, td_api::acceptTermsOfService &request);
|
|
|
|
|
2020-08-24 22:38:45 +02:00
|
|
|
void on_request(uint64 id, const td_api::getCountries &request);
|
|
|
|
|
2018-03-04 22:36:16 +01:00
|
|
|
void on_request(uint64 id, const td_api::getCountryCode &request);
|
|
|
|
|
2020-08-25 12:42:14 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPhoneNumberInfo &request);
|
|
|
|
|
2021-06-04 18:31:18 +02:00
|
|
|
void on_request(uint64 id, const td_api::getApplicationDownloadLink &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-04-12 22:51:42 +02:00
|
|
|
void on_request(uint64 id, td_api::getDeepLinkInfo &request);
|
|
|
|
|
2018-12-10 20:08:58 +01:00
|
|
|
void on_request(uint64 id, const td_api::getApplicationConfig &request);
|
|
|
|
|
2023-02-21 10:08:55 +01:00
|
|
|
void on_request(uint64 id, td_api::addApplicationChangelog &request);
|
|
|
|
|
2018-12-10 20:08:58 +01:00
|
|
|
void on_request(uint64 id, td_api::saveApplicationLogEvent &request);
|
|
|
|
|
2018-05-14 21:00:38 +02:00
|
|
|
void on_request(uint64 id, td_api::addProxy &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-07-27 17:10:45 +02:00
|
|
|
void on_request(uint64 id, td_api::editProxy &request);
|
|
|
|
|
2018-05-14 21:00:38 +02: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 20:08:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::getProxyLink &request);
|
|
|
|
|
2018-05-14 21:00:38 +02:00
|
|
|
void on_request(uint64 id, const td_api::pingProxy &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2022-08-15 13:32:35 +02:00
|
|
|
void on_request(uint64 id, const td_api::getUserSupportInfo &request);
|
|
|
|
|
2022-08-15 15:58:28 +02:00
|
|
|
void on_request(uint64 id, td_api::setUserSupportInfo &request);
|
|
|
|
|
2023-03-22 11:54:04 +01:00
|
|
|
void on_request(uint64 id, const td_api::getSupportName &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getTextEntities &request);
|
|
|
|
|
2018-12-10 02:01:02 +01:00
|
|
|
void on_request(uint64 id, const td_api::parseTextEntities &request);
|
2018-01-30 18:06:54 +01:00
|
|
|
|
2020-03-09 21:55:32 +01:00
|
|
|
void on_request(uint64 id, const td_api::parseMarkdown &request);
|
|
|
|
|
2020-03-12 04:22:14 +01:00
|
|
|
void on_request(uint64 id, const td_api::getMarkdownText &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void on_request(uint64 id, const td_api::getFileMimeType &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getFileExtension &request);
|
|
|
|
|
2018-04-30 14:50:54 +02:00
|
|
|
void on_request(uint64 id, const td_api::cleanFileName &request);
|
|
|
|
|
2018-07-23 19:29:14 +02:00
|
|
|
void on_request(uint64 id, const td_api::getLanguagePackString &request);
|
|
|
|
|
2021-08-30 21:26:02 +02:00
|
|
|
void on_request(uint64 id, const td_api::getPhoneNumberInfoSync &request);
|
|
|
|
|
2018-12-28 23:48:32 +01:00
|
|
|
void on_request(uint64 id, const td_api::getPushReceiverId &request);
|
|
|
|
|
2023-04-03 16:28:51 +02:00
|
|
|
void on_request(uint64 id, const td_api::getChatFolderDefaultIconName &request);
|
2020-06-05 02:43:13 +02:00
|
|
|
|
2018-12-10 02:01:02 +01:00
|
|
|
void on_request(uint64 id, const td_api::getJsonValue &request);
|
|
|
|
|
|
|
|
void on_request(uint64 id, const td_api::getJsonString &request);
|
|
|
|
|
2022-03-29 19:22:38 +02:00
|
|
|
void on_request(uint64 id, const td_api::getThemeParametersJsonString &request);
|
|
|
|
|
2018-10-24 17:42:40 +02: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 20:40:31 +02:00
|
|
|
void on_request(uint64 id, const td_api::addLogMessage &request);
|
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
// test
|
2019-08-06 02:29:16 +02: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 02:29:16 +02: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 20:04:05 +01: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 04:22:56 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const T &request) {
|
2020-06-23 08:56:47 +02:00
|
|
|
return td_api::make_object<td_api::error>(400, "The method can't be executed synchronously");
|
2018-10-01 04:22:56 +02:00
|
|
|
}
|
2022-07-11 12:33:56 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getOption &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getTextEntities &request);
|
2018-01-30 18:06:54 +01:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::parseTextEntities &request);
|
2020-03-09 21:55:32 +01:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::parseMarkdown &request);
|
2020-03-12 04:22:14 +01:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::getMarkdownText &request);
|
2018-12-31 20:04:05 +01: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 14:50:54 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::cleanFileName &request);
|
2018-07-23 19:29:14 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getLanguagePackString &request);
|
2021-11-10 19:09:28 +01:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::getPhoneNumberInfoSync &request);
|
2018-12-28 23:48:32 +01:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getPushReceiverId &request);
|
2023-04-03 16:28:51 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getChatFolderDefaultIconName &request);
|
2018-12-10 02:01:02 +01: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 19:22:38 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::getThemeParametersJsonString &request);
|
2018-10-24 17:42:40 +02: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 20:40:31 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(const td_api::addLogMessage &request);
|
2019-08-06 02:29:16 +02:00
|
|
|
static td_api::object_ptr<td_api::Object> do_static_request(td_api::testReturnError &request);
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-10-01 22:18:05 +02:00
|
|
|
static DbKey as_db_key(string key);
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2023-03-13 20:29:56 +01:00
|
|
|
struct Parameters {
|
|
|
|
int32 api_id_ = 0;
|
|
|
|
string api_hash_;
|
|
|
|
bool use_secret_chats_ = false;
|
|
|
|
|
|
|
|
// TODO move to options and remove
|
|
|
|
bool enable_storage_optimizer_ = false;
|
|
|
|
bool ignore_file_names_ = false;
|
|
|
|
};
|
|
|
|
|
2022-06-21 01:02:48 +02:00
|
|
|
void finish_set_parameters();
|
|
|
|
|
2023-03-13 20:29:56 +01:00
|
|
|
void init(Parameters parameters, Result<TdDb::OpenedDatabase> r_opened_database);
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2019-04-26 21:44:32 +02:00
|
|
|
void init_options_and_network();
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2019-04-26 21:44:32 +02:00
|
|
|
void init_file_manager();
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2019-04-26 21:44:32 +02:00
|
|
|
void init_managers();
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void clear();
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2018-12-31 20:04:05 +01:00
|
|
|
void close_impl(bool destroy_flag);
|
2022-06-10 15:44:53 +02:00
|
|
|
|
2023-03-13 20:29:56 +01:00
|
|
|
Result<std::pair<Parameters, TdDb::Parameters>> get_parameters(
|
|
|
|
td_api::object_ptr<td_api::setTdlibParameters> parameters) TD_WARN_UNUSED_RESULT;
|
2018-12-31 20:04:05 +01:00
|
|
|
|
2018-10-01 22:18:05 +02: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 20:04:05 +01:00
|
|
|
// Actor
|
2021-07-03 22:51:36 +02:00
|
|
|
void start_up() final;
|
|
|
|
void tear_down() final;
|
|
|
|
void hangup_shared() final;
|
|
|
|
void hangup() final;
|
2018-12-31 20:04:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace td
|