From acc17b8d9d7ad251dcc9e9e11535464dd29a87c4 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 14 May 2019 17:26:13 +0300 Subject: [PATCH] Minor fixes. GitOrigin-RevId: 3861e74381386cff82d688a445de3e8f72494974 --- example/python/tdjson_example.py | 4 ++-- td/telegram/AudiosManager.hpp | 1 + td/telegram/AutoDownloadSettings.cpp | 2 ++ td/telegram/BackgroundManager.cpp | 2 ++ td/telegram/BackgroundManager.h | 1 + td/telegram/BackgroundType.cpp | 2 ++ td/telegram/DocumentsManager.hpp | 1 + td/telegram/PhoneNumberManager.h | 1 + td/telegram/Td.cpp | 2 ++ td/telegram/VideoNotesManager.hpp | 1 + td/telegram/VideosManager.hpp | 1 + 11 files changed, 16 insertions(+), 2 deletions(-) diff --git a/example/python/tdjson_example.py b/example/python/tdjson_example.py index 52220b4f..8530f5ce 100644 --- a/example/python/tdjson_example.py +++ b/example/python/tdjson_example.py @@ -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'}) diff --git a/td/telegram/AudiosManager.hpp b/td/telegram/AudiosManager.hpp index 1dc5f259..02215d43 100644 --- a/td/telegram/AudiosManager.hpp +++ b/td/telegram/AudiosManager.hpp @@ -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" diff --git a/td/telegram/AutoDownloadSettings.cpp b/td/telegram/AutoDownloadSettings.cpp index b4964007..91476771 100644 --- a/td/telegram/AutoDownloadSettings.cpp +++ b/td/telegram/AutoDownloadSettings.cpp @@ -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 { diff --git a/td/telegram/BackgroundManager.cpp b/td/telegram/BackgroundManager.cpp index 4df60389..beb6dcc4 100644 --- a/td/telegram/BackgroundManager.cpp +++ b/td/telegram/BackgroundManager.cpp @@ -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 diff --git a/td/telegram/BackgroundManager.h b/td/telegram/BackgroundManager.h index 3be93d67..4e260b31 100644 --- a/td/telegram/BackgroundManager.h +++ b/td/telegram/BackgroundManager.h @@ -22,6 +22,7 @@ #include #include +#include namespace td { diff --git a/td/telegram/BackgroundType.cpp b/td/telegram/BackgroundType.cpp index 2c287856..408ecc11 100644 --- a/td/telegram/BackgroundType.cpp +++ b/td/telegram/BackgroundType.cpp @@ -6,6 +6,8 @@ // #include "td/telegram/BackgroundType.h" +#include "td/utils/logging.h" + namespace td { string BackgroundType::get_color_hex_string() const { diff --git a/td/telegram/DocumentsManager.hpp b/td/telegram/DocumentsManager.hpp index e1deaeaf..64caa806 100644 --- a/td/telegram/DocumentsManager.hpp +++ b/td/telegram/DocumentsManager.hpp @@ -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" diff --git a/td/telegram/PhoneNumberManager.h b/td/telegram/PhoneNumberManager.h index 7f607c79..3bd4c7cd 100644 --- a/td/telegram/PhoneNumberManager.h +++ b/td/telegram/PhoneNumberManager.h @@ -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" diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 057aab25..105590b1 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -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" diff --git a/td/telegram/VideoNotesManager.hpp b/td/telegram/VideoNotesManager.hpp index e3edfb8f..bfcea521 100644 --- a/td/telegram/VideoNotesManager.hpp +++ b/td/telegram/VideoNotesManager.hpp @@ -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" diff --git a/td/telegram/VideosManager.hpp b/td/telegram/VideosManager.hpp index 50c15e04..f5c263e5 100644 --- a/td/telegram/VideosManager.hpp +++ b/td/telegram/VideosManager.hpp @@ -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"