tg_cli: randomize sendMessageAlbum testing.
This commit is contained in:
parent
b0446523eb
commit
1416cb13b2
@ -3772,8 +3772,9 @@ class CliClient final : public Actor {
|
|||||||
get_args(args, reply_to_message_id, args);
|
get_args(args, reply_to_message_id, args);
|
||||||
}
|
}
|
||||||
auto input_message_contents = transform(full_split(args), [this](const string &photo) {
|
auto input_message_contents = transform(full_split(args), [this](const string &photo) {
|
||||||
td_api::object_ptr<td_api::InputMessageContent> content = td_api::make_object<td_api::inputMessagePhoto>(
|
td_api::object_ptr<td_api::InputMessageContent> content =
|
||||||
as_input_file(photo), nullptr, Auto(), 0, 0, as_caption(""), message_ttl_, has_spoiler_);
|
td_api::make_object<td_api::inputMessagePhoto>(as_input_file(photo), nullptr, Auto(), 0, 0, as_caption(""),
|
||||||
|
rand_bool() ? message_ttl_ : 0, has_spoiler_ && rand_bool());
|
||||||
return content;
|
return content;
|
||||||
});
|
});
|
||||||
send_request(td_api::make_object<td_api::sendMessageAlbum>(
|
send_request(td_api::make_object<td_api::sendMessageAlbum>(
|
||||||
|
Loading…
Reference in New Issue
Block a user