Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
[package]
name = "allrisbot"
description = "Telegram bot that notifies users about newly published documents in the Allris 4 council information system"
version = "0.1.3"
version = "0.1.4"
edition = "2024"
repository = "https://github.com/jdertmann/AllrisBot"
license = "AGPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion src/bot/command_help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fn about_paragraph(owner: Option<&str>) -> impl WriteToMessage {
msg.writeln(bold("👨‍💻 Mehr Infos & Kontakt"))?;

msg.write(concat!(
"Der Quellcode dieses Bots steht unter der Lizenz",
"Der Quellcode dieses Bots steht unter der Lizenz ",
text_link(
"https://www.gnu.org/licenses/agpl-3.0.html.en",
"GNU AGPL v3"
Expand Down
6 changes: 5 additions & 1 deletion src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ implement_with_retry! {
connection,
chat_id: i64,
) -> ChatState {
let (last_sent, migrated) = connection.hget(registered_chat_key(chat_id), "last_sent,migrated").await?;
let (last_sent, migrated) = redis::cmd("hget")
.arg(registered_chat_key(chat_id))
.arg("last_sent").arg("migrated")
.query_async(connection)
.await?;

if let Some(last_sent) = last_sent {
ChatState::Active { last_sent }
Expand Down
Loading