(self, bot_id, id)
| 17 | await self.db[str(bot_id)].insert_one(user) |
| 18 | |
| 19 | async def is_user_exist(self, bot_id, id): |
| 20 | user = await self.db[str(bot_id)].find_one({'user_id': int(id)}) |
| 21 | return bool(user) |
| 22 | |
| 23 | async def total_users_count(self, bot_id): |
| 24 | count = await self.db[str(bot_id)].count_documents({}) |