From 33142bb470ee02dda78e4ab518b765d1a69ef023 Mon Sep 17 00:00:00 2001 From: senset Date: Thu, 30 Jun 2022 13:42:48 +0800 Subject: [PATCH] fix bug --- src/telegram_bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram_bot.rs b/src/telegram_bot.rs index 9c13dc8..fa964bf 100644 --- a/src/telegram_bot.rs +++ b/src/telegram_bot.rs @@ -271,7 +271,7 @@ impl BotServer { } } { let mut vars = HashMap::new(); - let user_id = user.id.to_string(); + let user_id = from.id.to_string(); let data = data.to_string(); vars.insert("username".to_string(), &from.first_name);