Temp remove throttle

This commit is contained in:
2023-05-06 22:54:07 +02:00
parent e9ffbf6b74
commit cc7165eadd

View File

@@ -76,9 +76,9 @@ impl BotsManager {
async fn start_bot(&mut self, bot_data: &BotData) -> bool {
let bot = Bot::new(bot_data.token.clone())
.set_api_url(config::CONFIG.telegram_bot_api.clone())
.throttle(Limits::default());
// .throttle(Limits::default());
let token = bot.inner().token();
let token = bot.token();
let port = self.bot_port_map
.get(&bot_data.id)
.unwrap_or_else(|| panic!("Can't get bot port!"));