Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VJBots/VJ-Forward-Bot
/ is_user_exist
Method
is_user_exist
database.py:29–31 ·
view source on GitHub ↗
(self, id)
Source
from the content-addressed store, hash-verified
27
await self.col.insert_one(user)
28
29
async
def
is_user_exist(self, id):
30
user = await self.col.find_one({
'id'
:int(id)})
31
return
bool(user)
32
33
async
def
total_users_count(self):
34
count = await self.col.count_documents({})
Callers
1
start
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected