add method for get user mention (#1049)

* add new method

* Create 1049.feature.rst

* update test_user

* after black and isort using

* after black and isort using

* adding new tests

* fix test

* update tests

* update test

* using create_tg_link function instead of new func

* Update user.py

* Update aiogram/types/user.py

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
This commit is contained in:
sheldy 2022-11-02 22:40:19 +02:00 committed by GitHub
parent 45705faf12
commit b8cd06fd6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 1 deletions

4
CHANGES/1049.feature.rst Normal file
View file

@ -0,0 +1,4 @@
Added following methods to ``User`` class:
- ``User.mention_markdown(...)``
- ``User.mention_html(...)``