aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-09-30 16:03:00 +0300
committerlevlam <levlam@telegram.org>2024-09-30 16:03:00 +0300
commit81f02dd9216a77468c083d58e853bca3bf2b6351 (patch)
treeb2ed6c1a364fde654996a71fa5fe42f627e3d2ed
parent44510f5b54599953070de7b2367f610aa70519d4 (diff)
Various improvements.
-rw-r--r--td/generate/scheme/td_api.tl12
-rw-r--r--td/telegram/StarGift.cpp2
-rw-r--r--td/telegram/StarGiftManager.cpp1
-rw-r--r--td/telegram/StoryManager.cpp1
-rw-r--r--td/telegram/StoryManager.h1
-rw-r--r--td/telegram/VideosManager.cpp1
-rw-r--r--tdnet/td/net/SslStream.cpp2
7 files changed, 11 insertions, 9 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 4240af628..b98e90972 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -8787,8 +8787,8 @@ getChatSponsoredMessages chat_id:int53 = SponsoredMessages;
//@description Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the sponsored message text, or the media in the sponsored message
//@chat_id Chat identifier of the sponsored message
//@message_id Identifier of the sponsored message
-//@is_media_click Pass true, if the media was clicked in the sponsored message
-//@from_fullscreen Pass true, if the user expanded the video from the sponsored message fullscreen before the click
+//@is_media_click Pass true if the media was clicked in the sponsored message
+//@from_fullscreen Pass true if the user expanded the video from the sponsored message fullscreen before the click
clickChatSponsoredMessage chat_id:int53 message_id:int53 is_media_click:Bool from_fullscreen:Bool = Ok;
//@description Reports a sponsored message to Telegram moderators
@@ -8973,7 +8973,7 @@ editMessageMedia chat_id:int53 message_id:int53 reply_markup:ReplyMarkup input_m
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
//@reply_markup The new message reply markup; pass null if none; for bots only
//@caption New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption
-//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. Can be true only for animation, photo, and video messages
+//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
editMessageCaption chat_id:int53 message_id:int53 reply_markup:ReplyMarkup caption:formattedText show_caption_above_media:Bool = Message;
//@description Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side
@@ -9008,7 +9008,7 @@ editInlineMessageMedia inline_message_id:string reply_markup:ReplyMarkup input_m
//@inline_message_id Inline message identifier
//@reply_markup The new message reply markup; pass null if none
//@caption New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters
-//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. Can be true only for animation, photo, and video messages
+//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
editInlineMessageCaption inline_message_id:string reply_markup:ReplyMarkup caption:formattedText show_caption_above_media:Bool = Ok;
//@description Edits the reply markup of an inline message sent via a bot; for bots only
@@ -9085,7 +9085,7 @@ editBusinessMessageMedia business_connection_id:string chat_id:int53 message_id:
//@message_id Identifier of the message
//@reply_markup The new message reply markup; pass null if none
//@caption New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters
-//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. Can be true only for animation, photo, and video messages
+//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
editBusinessMessageCaption business_connection_id:string chat_id:int53 message_id:int53 reply_markup:ReplyMarkup caption:formattedText show_caption_above_media:Bool = BusinessMessage;
//@description Edits the reply markup of a message sent on behalf of a business account; for bots only
@@ -11238,7 +11238,7 @@ deleteSavedOrderInfo = Ok;
deleteSavedCredentials = Ok;
-//@description Returns gifts that can be send to other users
+//@description Returns gifts that can be sent to other users
getAvailableGifts = Gifts;
//@description Send a gift to another user
diff --git a/td/telegram/StarGift.cpp b/td/telegram/StarGift.cpp
index 1b9a9ae15..67c79dde4 100644
--- a/td/telegram/StarGift.cpp
+++ b/td/telegram/StarGift.cpp
@@ -11,6 +11,8 @@
#include "td/telegram/StickersManager.h"
#include "td/telegram/Td.h"
+#include "td/utils/logging.h"
+
namespace td {
StarGift::StarGift(Td *td, telegram_api::object_ptr<telegram_api::starGift> &&star_gift) {
diff --git a/td/telegram/StarGiftManager.cpp b/td/telegram/StarGiftManager.cpp
index 5bd8643da..51da20810 100644
--- a/td/telegram/StarGiftManager.cpp
+++ b/td/telegram/StarGiftManager.cpp
@@ -20,6 +20,7 @@
#include "td/utils/buffer.h"
#include "td/utils/logging.h"
+#include "td/utils/Status.h"
namespace td {
diff --git a/td/telegram/StoryManager.cpp b/td/telegram/StoryManager.cpp
index 4aa899f50..4b78853f5 100644
--- a/td/telegram/StoryManager.cpp
+++ b/td/telegram/StoryManager.cpp
@@ -28,7 +28,6 @@
#include "td/telegram/QuickReplyManager.h"
#include "td/telegram/ReactionManager.h"
#include "td/telegram/ReactionType.hpp"
-#include "td/telegram/ReportReason.h"
#include "td/telegram/StoryContent.h"
#include "td/telegram/StoryContentType.h"
#include "td/telegram/StoryForwardInfo.h"
diff --git a/td/telegram/StoryManager.h b/td/telegram/StoryManager.h
index 008abc41c..58c89b6ff 100644
--- a/td/telegram/StoryManager.h
+++ b/td/telegram/StoryManager.h
@@ -48,7 +48,6 @@ namespace td {
struct BinlogEvent;
class Dependencies;
-class ReportReason;
class StoryContent;
class StoryForwardInfo;
struct StoryDbStory;
diff --git a/td/telegram/VideosManager.cpp b/td/telegram/VideosManager.cpp
index 43f1aaae5..43efb695d 100644
--- a/td/telegram/VideosManager.cpp
+++ b/td/telegram/VideosManager.cpp
@@ -20,6 +20,7 @@
#include "td/utils/logging.h"
#include "td/utils/misc.h"
+#include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h"
#include <cmath>
diff --git a/tdnet/td/net/SslStream.cpp b/tdnet/td/net/SslStream.cpp
index c50efe375..22a3e078d 100644
--- a/tdnet/td/net/SslStream.cpp
+++ b/tdnet/td/net/SslStream.cpp
@@ -172,7 +172,7 @@ class SslStreamImpl {
SSL_set_bio(ssl_handle.get(), bio, bio);
#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
- if (r_ip_address.is_error()) { // IP address must not be send as SNI
+ if (r_ip_address.is_error()) { // IP address must not be sent as SNI
LOG(DEBUG) << "Set SNI host name to " << host;
auto host_str = host.str();
SSL_set_tlsext_host_name(ssl_handle.get(), MutableCSlice(host_str).begin());