We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34dd172 commit 534a292Copy full SHA for 534a292
1 file changed
hydrogram/storage/base.py
@@ -22,10 +22,11 @@
22
import base64
23
import struct
24
from abc import ABC, abstractmethod
25
+from typing import Union
26
27
from hydrogram import raw
28
-InputPeer = raw.types.InputPeerUser | raw.types.InputPeerChat | raw.types.InputPeerChannel
29
+InputPeer = Union[raw.types.InputPeerUser, raw.types.InputPeerChat, raw.types.InputPeerChannel]
30
31
32
class BaseStorage(ABC):
0 commit comments