songy

telegram bot as a songbook
git clone git://git.relim.de/songy.git
Log | Files | Refs | README | LICENSE

commit 99182755e5e58e07871b412a168e39fdfabbf906
parent 1111ffe92561a1afd22356de7e91800ea2bc3572
Author: Robin <kroekerrobin@gmail.com>
Date:   Sat, 11 Feb 2023 21:58:43 +0100

Lower the "Telegram::getUpdates" interval duration

Diffstat:
Msrc/langs.rs | 4++--
Msrc/main.rs | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/langs.rs b/src/langs.rs @@ -17,7 +17,7 @@ impl Strings { "Hallo. Dies ist ein digitales Liederbuch. :)\n", "/list - Listet alle Lieder auf.\n", "Ansonsten tippe einfach den Titel oder Teile des Titels", - "des Liedes ein und du bekommst dein Lied zugeschickt." + " des Liedes ein und du bekommst dein Lied zugeschickt." ).to_string(); song_not_found = "Kein Lied mit diesem Titel gefunden.".to_string(); }, @@ -26,7 +26,7 @@ impl Strings { "Salut! Această e o carte de cântari digitală. :)\n", "/list - Listează toate cântările.\n", "Deasemenea puteți introduce titlul sau cuvinte din titlul", - "cântării iar bot-ul va găsi piesa corespondentă." + " cântării iar bot-ul va găsi piesa corespondentă." ).to_string(); song_not_found = "Niciun cântec găsit cu acest nume".to_string(); }, diff --git a/src/main.rs b/src/main.rs @@ -38,7 +38,7 @@ fn main() { .allowed_updates(vec![AllowedUpdate::Message]) .build(); loop { - let dur = time::Duration::new(1, 0); + let dur = time::Duration::from_millis(500); thread::sleep(dur); let result = TelegramApi::get_updates(&api, &updates_params); match result {