From ed3ed0c257f68225b2211025755a167d3f29e555 Mon Sep 17 00:00:00 2001 From: AmirHossein Date: Fri, 6 Sep 2024 18:17:53 +0330 Subject: [PATCH] update: add 2 new bot Configs for polling mode and update dependency versions --- composer.json | 4 ++-- config/bot.php | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e99549f..74b73e4 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ }, "minimum-stability": "stable", "require": { - "laraxgram/laraquest" : "^0.7", - "laraxgram/core": "^0.6" + "laraxgram/laraquest" : "^0", + "laraxgram/core": "^0" } } diff --git a/config/bot.php b/config/bot.php index 5c98106..63a70c5 100644 --- a/config/bot.php +++ b/config/bot.php @@ -105,4 +105,16 @@ * (Required) */ 'DEFAULT_MODE' => 'curl', + + /* + * Polling Timeout + * (Required on polling mode) + */ + 'POLLING_TIMEOUT' => 100, + + /* + * Polling refresh rate + * (Required on polling mode) + */ + 'POLLING_SLEEP_TIME' => 0.5, ]; \ No newline at end of file