Skip to content

Commit

Permalink
added privacy againg
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Aug 15, 2024
1 parent bca1039 commit d6c9be2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shvatka/tgbot/handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ async def privacy(message: Message, user: dto.User):
importlib.resources.path("shvatka.infrastructure.assets", "privacy.txt") as path,
path.open("r") as f,
):
await message.reply(f.read())
await message.reply(
f"our privacy is something like https://telegram.org/privacy-tpa\n"
f"But this bot is only for Russian-speaking people, "
f"so detailed privacy is in Russian:\n"
f"{f.read()}"
)
privacy_counter.inc(1, {"user": str(user.tg_id)})


Expand All @@ -91,6 +96,7 @@ def setup() -> Router:
chat_id, Command(commands=["idchat", CHAT_ID_COMMAND.command], prefix="/!")
)
router.message.register(cmd_about, Command(commands=ABOUT_COMMAND))
router.message.register(cmd_about, Command(commands="developer_info"))
router.message.register(
chat_type_cmd_group, Command(commands=CHAT_TYPE_COMMAND), F.chat.type == ChatType.GROUP
)
Expand Down

0 comments on commit d6c9be2

Please sign in to comment.