diff --git a/pyproject.toml b/pyproject.toml index 3259981f..38323f8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ [tool.poetry] name = "royalnet" -version = "5.11.4" +version = "5.11.5" description = "A multipurpose bot and web framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalnet/serf/telegram/telegramserf.py b/royalnet/serf/telegram/telegramserf.py index 6766d86f..ac33b6ed 100644 --- a/royalnet/serf/telegram/telegramserf.py +++ b/royalnet/serf/telegram/telegramserf.py @@ -128,7 +128,7 @@ class TelegramSerf(Serf): user: "telegram.User" = data.message.from_user TelegramT = data.alchemy.get(rbt.Telegram) result = await ru.asyncify( - session.query(TelegramT).filter(TelegramT.discord_id == user.id).one_or_none + session.query(TelegramT).filter(TelegramT.tg_id == user.id).one_or_none ) if result is None and required: raise rc.CommandError("You must be registered to use this command.")