Skip to content

Commit a5b4b6a

Browse files
authored
fix(storage): Invalid peer type: group (#30)
1 parent a46880c commit a5b4b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hydrogram/storage/sqlite_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
def get_input_peer(peer_id: int, access_hash: int, peer_type: str) -> InputPeer:
7979
if peer_type in {"user", "bot"}:
8080
return raw.types.InputPeerUser(user_id=peer_id, access_hash=access_hash)
81-
if peer_type == ChatType.GROUP:
81+
if peer_type == "group":
8282
return raw.types.InputPeerChat(chat_id=-peer_id)
8383
if peer_type in {"channel", "supergroup"}:
8484
return raw.types.InputPeerChannel(

0 commit comments

Comments
 (0)