mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Temp remove throttle
This commit is contained in:
@@ -76,9 +76,9 @@ impl BotsManager {
|
|||||||
async fn start_bot(&mut self, bot_data: &BotData) -> bool {
|
async fn start_bot(&mut self, bot_data: &BotData) -> bool {
|
||||||
let bot = Bot::new(bot_data.token.clone())
|
let bot = Bot::new(bot_data.token.clone())
|
||||||
.set_api_url(config::CONFIG.telegram_bot_api.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
|
let port = self.bot_port_map
|
||||||
.get(&bot_data.id)
|
.get(&bot_data.id)
|
||||||
.unwrap_or_else(|| panic!("Can't get bot port!"));
|
.unwrap_or_else(|| panic!("Can't get bot port!"));
|
||||||
|
|||||||
Reference in New Issue
Block a user