(self, bot_id, user_id)
| 13 | self.db = self._client[database_name] |
| 14 | |
| 15 | async def add_user(self, bot_id, user_id): |
| 16 | user = {'user_id': int(user_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)}) |