Minor fixes.

GitOrigin-RevId: 3861e74381386cff82d688a445de3e8f72494974
This commit is contained in:
levlam 2019-05-14 17:26:13 +03:00
parent 7cd835f4fa
commit acc17b8d9d
11 changed files with 16 additions and 2 deletions

View File

@ -94,7 +94,7 @@ while True:
if auth_state['@type'] == 'authorizationStateClosed':
break
# set tdlib parameters
# set TDLib parameters
# you MUST obtain your own api_id and api_hash at https://my.telegram.org
# and use them in the setTdlibParameters call
if auth_state['@type'] == 'authorizationStateWaitTdlibParameters':
@ -110,7 +110,7 @@ while True:
'application_version': '1.0',
'enable_storage_optimizer': True}})
# set an encryption key for database to let know tdlib how to open the database
# set an encryption key for database to let know TDLib how to open the database
if auth_state['@type'] == 'authorizationStateWaitEncryptionKey':
td_send({'@type': 'checkDatabaseEncryptionKey', 'key': 'my_key'})

View File

@ -10,6 +10,7 @@
#include "td/telegram/files/FileId.hpp"
#include "td/telegram/Photo.hpp"
#include "td/telegram/Version.h"
#include "td/utils/common.h"
#include "td/utils/tl_helpers.h"

View File

@ -11,7 +11,9 @@
#include "td/telegram/Td.h"
#include "td/telegram/telegram_api.h"
#include "td/utils/buffer.h"
#include "td/utils/logging.h"
#include "td/utils/Status.h"
namespace td {

View File

@ -27,7 +27,9 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/tl_helpers.h"
#include <algorithm>

View File

@ -22,6 +22,7 @@
#include <memory>
#include <unordered_map>
#include <utility>
namespace td {

View File

@ -6,6 +6,8 @@
//
#include "td/telegram/BackgroundType.h"
#include "td/utils/logging.h"
namespace td {
string BackgroundType::get_color_hex_string() const {

View File

@ -10,6 +10,7 @@
#include "td/telegram/files/FileId.hpp"
#include "td/telegram/Photo.hpp"
#include "td/telegram/Version.h"
#include "td/utils/logging.h"
#include "td/utils/tl_helpers.h"

View File

@ -9,6 +9,7 @@
#include "td/telegram/net/NetActor.h"
#include "td/telegram/net/NetQuery.h"
#include "td/telegram/SendCodeHelper.h"
#include "td/telegram/td_api.h"
#include "td/actor/actor.h"

View File

@ -11,7 +11,9 @@
#include "td/telegram/AudiosManager.h"
#include "td/telegram/AuthManager.h"
#include "td/telegram/AutoDownloadSettings.h"
#include "td/telegram/BackgroundId.h"
#include "td/telegram/BackgroundManager.h"
#include "td/telegram/BackgroundType.h"
#include "td/telegram/CallbackQueriesManager.h"
#include "td/telegram/CallId.h"
#include "td/telegram/CallManager.h"

View File

@ -10,6 +10,7 @@
#include "td/telegram/files/FileId.hpp"
#include "td/telegram/Photo.hpp"
#include "td/telegram/Version.h"
#include "td/utils/common.h"
#include "td/utils/tl_helpers.h"

View File

@ -10,6 +10,7 @@
#include "td/telegram/files/FileId.hpp"
#include "td/telegram/Photo.hpp"
#include "td/telegram/Version.h"
#include "td/utils/common.h"
#include "td/utils/tl_helpers.h"