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 a46880c commit a5b4b6aCopy full SHA for a5b4b6a
hydrogram/storage/sqlite_storage.py
@@ -78,7 +78,7 @@
78
def get_input_peer(peer_id: int, access_hash: int, peer_type: str) -> InputPeer:
79
if peer_type in {"user", "bot"}:
80
return raw.types.InputPeerUser(user_id=peer_id, access_hash=access_hash)
81
- if peer_type == ChatType.GROUP:
+ if peer_type == "group":
82
return raw.types.InputPeerChat(chat_id=-peer_id)
83
if peer_type in {"channel", "supergroup"}:
84
return raw.types.InputPeerChannel(
0 commit comments