diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2024-10-03 21:53:05 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2024-10-03 21:53:05 +0300 |
| commit | 93d62f67ff38528c998856020cf2047bdfa7180a (patch) | |
| tree | 383a22ef67c12b13c669373eef8bb30dbea86b31 | |
| parent | fbef40e46befcf9902b561afffa8ee06666f20f7 (diff) | |
bot: Set max inline results limit value to 50
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | bot.sh | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -65,8 +65,8 @@ Options: -l Same as -a 127.0.0.1:8081 -s 20971520 -a <addr> Telegram Bot API address, default: api.telegram.org -s <size> Max file size allowed to send with URL, default: 10 MiB + -r <num> Inline results limit, max: 50, default: 10 -g <num> Shortcuts storage limit, default: 100 - -r <num> Inline results limit, default: 10 -m <mode> Caching mode, default: normal -t <secs> Caching time, default: 300 secs -i <secs> Telegram Bot API connetion timeout, default: 10 secs @@ -83,8 +83,8 @@ then "\n -l\t\tSame as -a 127.0.0.1:8081 -s 20971520" \ "\n -a <addr>\tTelegram Bot API address, default: api.telegram.org" \ "\n -s <size>\tMax file size allowed to send with URL, default: 10 MiB" \ + "\n -r <num>\tInline results limit, max: 50, default: 10" \ "\n -g <num>\tShortcuts storage limit, default: 100" \ - "\n -r <num>\tInline results limit, default: 10" \ "\n -m <mode>\tCaching mode, default: normal" \ "\n -t <secs>\tCaching time, default: 300 secs" \ "\n -i <secs>\tTelegram Bot API connetion timeout, default: 10 secs" \ @@ -171,6 +171,11 @@ then echo "Illegal inline results limit number" exit 1 fi + + if [ ${inline_limit} -gt 50 ] + then + inline_limit=50 + fi else inline_limit=10 fi |
