Skip to content

Bug fixes: HTML escaping, gender detection, pydantic warnings#21

Open
prister884 wants to merge 3 commits intoPriler:mainfrom
prister884:main
Open

Bug fixes: HTML escaping, gender detection, pydantic warnings#21
prister884 wants to merge 3 commits intoPriler:mainfrom
prister884:main

Conversation

@prister884
Copy link

Changes

  • HTML escaping: Added html.escape() to user full names in user_mention() to prevent Telegram parse errors when usernames contain special characters like <, >, or &
  • Gender detection: Fixed TypeError: 'NoneType' object is not iterable by adding null checks for users without first names, and improved transliteration mappings for better accuracy
  • Pydantic warnings: Suppressed model_ namespace conflict warnings from aiogram's Telegram API models by filtering UserWarnings before aiogram imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant