(self, user_id)
| 133 | return bot if bot else None |
| 134 | |
| 135 | async def is_userbot_exist(self, user_id): |
| 136 | bot = await self.userbot.find_one({'user_id': user_id}) |
| 137 | return bool(bot) |
| 138 | |
| 139 | async def in_channel(self, user_id: int, chat_id: int) -> bool: |
| 140 | channel = await self.chl.find_one({"user_id": int(user_id), "chat_id": int(chat_id)}) |