mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
#238 Removed prints and fixed example
This commit is contained in:
parent
a42252b5c6
commit
1305a06b24
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,8 @@ Basic link example:
|
|||
Encoded link example:
|
||||
>>> from aiogram.utils.deep_linking import get_start_link, decode_payload
|
||||
>>> link = await get_start_link('foo', encode=True) # result: 'https://t.me/MyBot?start=Zm9v'
|
||||
>>> data = decode_payload('Zm9v') # result: 'foo'
|
||||
>>> # and decode it back:
|
||||
>>> payload = decode_payload('Zm9v') # result: 'foo'
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ class TestDeepLinking:
|
|||
async def test_filter_encode_and_decode(self, payload):
|
||||
_payload = filter_payload(payload)
|
||||
encoded = encode_payload(_payload)
|
||||
print(encoded)
|
||||
decoded = decode_payload(encoded)
|
||||
assert decoded == str(payload)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue