mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-23 18:37:20 +00:00
Update TDLib to 1.8.47.
This commit is contained in:
parent
27bbe0c71b
commit
c6a8cf4a3a
2
td
2
td
@ -1 +1 @@
|
|||||||
Subproject commit 207f3be7b58b2a2b9f0a066b5b6ef18782b8b517
|
Subproject commit a03a90470d6fca9a5a3db747ba3f3e4a465b5fe7
|
@ -3610,6 +3610,10 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
|
|||||||
object("gift", JsonRefundedUpgradedGiftMessage(content, client_));
|
object("gift", JsonRefundedUpgradedGiftMessage(content, client_));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case td_api::messagePaidMessagesRefunded::ID:
|
||||||
|
break;
|
||||||
|
case td_api::messagePaidMessagePriceChanged::ID:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
@ -4367,7 +4371,7 @@ class Client::JsonBusinessConnection final : public td::Jsonable {
|
|||||||
object("user", JsonUser(connection_->user_id_, client_));
|
object("user", JsonUser(connection_->user_id_, client_));
|
||||||
object("user_chat_id", connection_->user_chat_id_);
|
object("user_chat_id", connection_->user_chat_id_);
|
||||||
object("date", connection_->date_);
|
object("date", connection_->date_);
|
||||||
object("can_reply", td::JsonBool(connection_->can_reply_));
|
object("can_reply", td::JsonBool(connection_->rights_->can_reply_));
|
||||||
object("is_enabled", td::JsonBool(connection_->is_enabled_));
|
object("is_enabled", td::JsonBool(connection_->is_enabled_));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13799,7 +13803,7 @@ const Client::BusinessConnection *Client::add_business_connection(
|
|||||||
connection->user_id_ = business_connection->user_id_;
|
connection->user_id_ = business_connection->user_id_;
|
||||||
connection->user_chat_id_ = business_connection->user_chat_id_;
|
connection->user_chat_id_ = business_connection->user_chat_id_;
|
||||||
connection->date_ = business_connection->date_;
|
connection->date_ = business_connection->date_;
|
||||||
connection->can_reply_ = business_connection->can_reply_;
|
connection->rights_ = std::move(business_connection->rights_);
|
||||||
connection->is_enabled_ = business_connection->is_enabled_;
|
connection->is_enabled_ = business_connection->is_enabled_;
|
||||||
return connection.get();
|
return connection.get();
|
||||||
}
|
}
|
||||||
@ -14570,6 +14574,10 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
|
|||||||
return true;
|
return true;
|
||||||
case td_api::messageGiveawayPrizeStars::ID:
|
case td_api::messageGiveawayPrizeStars::ID:
|
||||||
return true;
|
return true;
|
||||||
|
case td_api::messagePaidMessagesRefunded::ID:
|
||||||
|
return true;
|
||||||
|
case td_api::messagePaidMessagePriceChanged::ID:
|
||||||
|
return true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -15328,13 +15336,6 @@ td::int64 Client::get_status_custom_emoji_id(const object_ptr<td_api::emojiStatu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr Client::int64 Client::GENERAL_MESSAGE_THREAD_ID;
|
|
||||||
|
|
||||||
constexpr Client::int64 Client::GREAT_MINDS_SET_ID;
|
|
||||||
constexpr td::Slice Client::GREAT_MINDS_SET_NAME;
|
|
||||||
|
|
||||||
constexpr td::Slice Client::MASK_POINTS[MASK_POINTS_SIZE];
|
|
||||||
|
|
||||||
td::FlatHashMap<td::string, td::Status (Client::*)(PromisedQueryPtr &query)> Client::methods_;
|
td::FlatHashMap<td::string, td::Status (Client::*)(PromisedQueryPtr &query)> Client::methods_;
|
||||||
|
|
||||||
} // namespace telegram_bot_api
|
} // namespace telegram_bot_api
|
||||||
|
@ -1001,7 +1001,7 @@ class Client final : public WebhookActor::Callback {
|
|||||||
int64 user_id_ = 0;
|
int64 user_id_ = 0;
|
||||||
int64 user_chat_id_ = 0;
|
int64 user_chat_id_ = 0;
|
||||||
int32 date_ = 0;
|
int32 date_ = 0;
|
||||||
bool can_reply_ = false;
|
object_ptr<td_api::businessBotRights> rights_;
|
||||||
bool is_enabled_ = false;
|
bool is_enabled_ = false;
|
||||||
};
|
};
|
||||||
const BusinessConnection *add_business_connection(object_ptr<td_api::businessConnection> &&business_connection,
|
const BusinessConnection *add_business_connection(object_ptr<td_api::businessConnection> &&business_connection,
|
||||||
|
@ -590,6 +590,4 @@ void ClientManager::finish_close() {
|
|||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr double ClientManager::WATCHDOG_TIMEOUT;
|
|
||||||
|
|
||||||
} // namespace telegram_bot_api
|
} // namespace telegram_bot_api
|
||||||
|
@ -83,9 +83,6 @@ td::vector<StatItem> ServerCpuStat::as_vector(double now) {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr int ServerCpuStat::DURATIONS[SIZE];
|
|
||||||
constexpr const char *ServerCpuStat::DESCR[SIZE];
|
|
||||||
|
|
||||||
void ServerBotStat::normalize(double duration) {
|
void ServerBotStat::normalize(double duration) {
|
||||||
if (duration == 0) {
|
if (duration == 0) {
|
||||||
return;
|
return;
|
||||||
@ -201,7 +198,4 @@ bool BotStatActor::is_active(double now) const {
|
|||||||
return last_activity_timestamp_ > now - 86400;
|
return last_activity_timestamp_ > now - 86400;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr int BotStatActor::DURATIONS[SIZE];
|
|
||||||
constexpr const char *BotStatActor::DESCR[SIZE];
|
|
||||||
|
|
||||||
} // namespace telegram_bot_api
|
} // namespace telegram_bot_api
|
||||||
|
Loading…
x
Reference in New Issue
Block a user