Add "star_withdrawal_count_min" option.
This commit is contained in:
parent
403c905cb1
commit
8460b1fe51
@ -10734,7 +10734,7 @@ getStarRevenueStatistics owner_id:MessageSender is_dark:Bool = StarRevenueStatis
|
||||
|
||||
//@description Returns URL for Telegram star withdrawal
|
||||
//@owner_id Identifier of the owner of the Telegram stars; can be identifier of an owned bot, or identifier of a channel chat with supergroupFullInfo.can_get_revenue_statistics == true
|
||||
//@star_count The number of Telegram stars to withdraw
|
||||
//@star_count The number of Telegram stars to withdraw. Must be at least getOption("star_withdrawal_count_min")
|
||||
//@password The 2-step verification password of the current user
|
||||
getStarWithdrawalUrl owner_id:MessageSender star_count:int53 password:string = HttpUrl;
|
||||
|
||||
|
@ -2002,8 +2002,11 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
continue;
|
||||
}
|
||||
if (key == "factcheck_length_limit") {
|
||||
G()->set_option_integer("fact_check_length_max",
|
||||
get_json_value_int(std::move(key_value->value_), key));
|
||||
G()->set_option_integer("fact_check_length_max", get_json_value_int(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
if (key == "stars_revenue_withdrawal_min") {
|
||||
G()->set_option_integer("star_withdrawal_count_min", get_json_value_int(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ class ConfigManager final : public NetQueryCallback {
|
||||
|
||||
private:
|
||||
struct AppConfig {
|
||||
static constexpr int32 CURRENT_VERSION = 46;
|
||||
static constexpr int32 CURRENT_VERSION = 47;
|
||||
int32 version_ = 0;
|
||||
int32 hash_ = 0;
|
||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||
|
@ -151,6 +151,7 @@ OptionManager::OptionManager(Td *td)
|
||||
set_default_integer_option("business_chat_link_count_max", is_test_dc ? 5 : 100);
|
||||
set_default_integer_option("pinned_story_count_max", 3);
|
||||
set_default_integer_option("fact_check_length_max", 1024);
|
||||
set_default_integer_option("star_withdrawal_count_min", is_test_dc ? 10 : 1000);
|
||||
|
||||
if (options.isset("my_phone_number") || !options.isset("my_id")) {
|
||||
update_premium_options();
|
||||
|
Loading…
Reference in New Issue
Block a user