mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Rename PackedChat type to PeerRef
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from telethon._impl.session import PackedChat, PackedType
|
||||
from telethon._impl.session import PackedType, PeerRef
|
||||
|
||||
|
||||
def test_hash_optional() -> None:
|
||||
for ty in PackedType:
|
||||
pc = PackedChat(ty, 123, 456789)
|
||||
assert PackedChat.from_bytes(bytes(pc)) == pc
|
||||
pc = PeerRef(ty, 123, 456789)
|
||||
assert PeerRef.from_bytes(bytes(pc)) == pc
|
||||
|
||||
pc = PackedChat(ty, 987, None)
|
||||
assert PackedChat.from_bytes(bytes(pc)) == pc
|
||||
pc = PeerRef(ty, 987, None)
|
||||
assert PeerRef.from_bytes(bytes(pc)) == pc
|
||||
|
Reference in New Issue
Block a user