Disable sending of media with spoilers for now.
This commit is contained in:
parent
d810a73a4f
commit
14dd89e804
@ -2591,7 +2591,7 @@ inputMessageDocument document:InputFile thumbnail:inputThumbnail disable_content
|
|||||||
//@height Photo height
|
//@height Photo height
|
||||||
//@caption Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
|
//@caption Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
|
||||||
//@ttl Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats
|
//@ttl Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats
|
||||||
//@has_spoiler True, if the photo preview should be covered by spoiler animation
|
//@has_spoiler True, if the photo preview should be covered by spoiler animation; not supported yet
|
||||||
inputMessagePhoto photo:InputFile thumbnail:inputThumbnail added_sticker_file_ids:vector<int32> width:int32 height:int32 caption:formattedText ttl:int32 has_spoiler:Bool = InputMessageContent;
|
inputMessagePhoto photo:InputFile thumbnail:inputThumbnail added_sticker_file_ids:vector<int32> width:int32 height:int32 caption:formattedText ttl:int32 has_spoiler:Bool = InputMessageContent;
|
||||||
|
|
||||||
//@description A sticker message
|
//@description A sticker message
|
||||||
@ -2612,7 +2612,7 @@ inputMessageSticker sticker:InputFile thumbnail:inputThumbnail width:int32 heigh
|
|||||||
//@supports_streaming True, if the video is supposed to be streamed
|
//@supports_streaming True, if the video is supposed to be streamed
|
||||||
//@caption Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
|
//@caption Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
|
||||||
//@ttl Video TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats
|
//@ttl Video TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats
|
||||||
//@has_spoiler True, if the video preview should be covered by spoiler animation
|
//@has_spoiler True, if the video preview should be covered by spoiler animation; not supported yet
|
||||||
inputMessageVideo video:InputFile thumbnail:inputThumbnail added_sticker_file_ids:vector<int32> duration:int32 width:int32 height:int32 supports_streaming:Bool caption:formattedText ttl:int32 has_spoiler:Bool = InputMessageContent;
|
inputMessageVideo video:InputFile thumbnail:inputThumbnail added_sticker_file_ids:vector<int32> duration:int32 width:int32 height:int32 supports_streaming:Bool caption:formattedText ttl:int32 has_spoiler:Bool = InputMessageContent;
|
||||||
|
|
||||||
//@description A video note message
|
//@description A video note message
|
||||||
|
@ -1998,7 +1998,7 @@ static Result<InputMessageContent> create_input_message_content(
|
|||||||
message_photo->photo.sticker_file_ids = std::move(sticker_file_ids);
|
message_photo->photo.sticker_file_ids = std::move(sticker_file_ids);
|
||||||
|
|
||||||
message_photo->caption = std::move(caption);
|
message_photo->caption = std::move(caption);
|
||||||
message_photo->has_spoiler = input_photo->has_spoiler_;
|
message_photo->has_spoiler = input_photo->has_spoiler_ && false;
|
||||||
|
|
||||||
content = std::move(message_photo);
|
content = std::move(message_photo);
|
||||||
break;
|
break;
|
||||||
@ -2026,7 +2026,7 @@ static Result<InputMessageContent> create_input_message_content(
|
|||||||
std::move(file_name), std::move(mime_type), input_video->duration_,
|
std::move(file_name), std::move(mime_type), input_video->duration_,
|
||||||
get_dimensions(input_video->width_, input_video->height_, nullptr), input_video->supports_streaming_, false);
|
get_dimensions(input_video->width_, input_video->height_, nullptr), input_video->supports_streaming_, false);
|
||||||
|
|
||||||
content = make_unique<MessageVideo>(file_id, std::move(caption), input_video->has_spoiler_);
|
content = make_unique<MessageVideo>(file_id, std::move(caption), input_video->has_spoiler_ && false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case td_api::inputMessageVideoNote::ID: {
|
case td_api::inputMessageVideoNote::ID: {
|
||||||
|
Loading…
Reference in New Issue
Block a user