mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Update get_peer_by_username query
This commit is contained in:
parent
3bd0820946
commit
7055ee648e
@ -151,7 +151,8 @@ class SQLiteStorage(Storage):
|
||||
|
||||
async def get_peer_by_username(self, username: str):
|
||||
r = self.conn.execute(
|
||||
"SELECT id, access_hash, type, last_update_on FROM peers WHERE username = ?",
|
||||
"SELECT id, access_hash, type, last_update_on FROM peers WHERE username = ?"
|
||||
"ORDER BY last_update_on DESC",
|
||||
(username,)
|
||||
).fetchone()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user