tdlight/td/telegram/Account.h

66 lines
2.6 KiB
C
Raw Normal View History

//
2022-12-31 22:28:08 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
//
// 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
#include "td/telegram/DialogParticipant.h"
#include "td/telegram/td_api.h"
#include "td/utils/common.h"
2022-06-27 12:30:18 +02:00
#include "td/utils/Promise.h"
namespace td {
class Td;
2022-11-29 16:53:36 +01:00
void set_default_message_ttl(Td *td, int32 message_ttl, Promise<Unit> &&promise);
2022-11-29 17:51:33 +01:00
void get_default_message_ttl(Td *td, Promise<int32> &&promise);
void set_account_ttl(Td *td, int32 account_ttl, Promise<Unit> &&promise);
void get_account_ttl(Td *td, Promise<int32> &&promise);
void confirm_qr_code_authentication(Td *td, const string &link, Promise<td_api::object_ptr<td_api::session>> &&promise);
void get_active_sessions(Td *td, Promise<td_api::object_ptr<td_api::sessions>> &&promise);
void terminate_session(Td *td, int64 session_id, Promise<Unit> &&promise);
void terminate_all_other_sessions(Td *td, Promise<Unit> &&promise);
void toggle_session_can_accept_calls(Td *td, int64 session_id, bool can_accept_calls, Promise<Unit> &&promise);
2021-11-16 13:22:00 +01:00
void toggle_session_can_accept_secret_chats(Td *td, int64 session_id, bool can_accept_secret_chats,
Promise<Unit> &&promise);
2021-11-16 14:04:19 +01:00
void set_inactive_session_ttl_days(Td *td, int32 authorization_ttl_days, Promise<Unit> &&promise);
void get_connected_websites(Td *td, Promise<td_api::object_ptr<td_api::connectedWebsites>> &&promise);
void disconnect_website(Td *td, int64 website_id, Promise<Unit> &&promise);
void disconnect_all_websites(Td *td, Promise<Unit> &&promise);
void set_default_group_administrator_rights(Td *td, AdministratorRights administrator_rights, Promise<Unit> &&promise);
void set_default_channel_administrator_rights(Td *td, AdministratorRights administrator_rights,
Promise<Unit> &&promise);
2023-02-26 23:00:17 +01:00
void set_bot_info_description(Td *td, const string &language_code, const string &description, Promise<Unit> &&promise);
2023-02-26 23:33:51 +01:00
void get_bot_info_description(Td *td, const string &language_code, Promise<string> &&promise);
void set_bot_info_about(Td *td, const string &language_code, const string &about, Promise<Unit> &&promise);
2023-02-26 23:41:46 +01:00
void get_bot_info_about(Td *td, const string &language_code, Promise<string> &&promise);
2023-02-26 23:47:55 +01:00
2022-12-01 13:08:13 +01:00
void export_contact_token(Td *td, Promise<td_api::object_ptr<td_api::userLink>> &&promise);
2022-12-01 14:54:58 +01:00
void import_contact_token(Td *td, const string &token, Promise<td_api::object_ptr<td_api::user>> &&promise);
} // namespace td