mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 10:49:39 +00:00
Fix imports
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import pytest
|
||||
|
||||
from telethon.tl import types, functions
|
||||
from telethon import _tl
|
||||
|
||||
|
||||
def test_nested_invalid_serialization():
|
||||
large_long = 2**62
|
||||
request = _tl.fn.account.SetPrivacy(
|
||||
key=types.InputPrivacyKeyChatInvite(),
|
||||
rules=[types.InputPrivacyValueDisallowUsers(users=[large_long])]
|
||||
key=_tl.InputPrivacyKeyChatInvite(),
|
||||
rules=[_tl.InputPrivacyValueDisallowUsers(users=[large_long])]
|
||||
)
|
||||
with pytest.raises(TypeError):
|
||||
bytes(request)
|
||||
|
Reference in New Issue
Block a user