(self, user_id)
| 44 | return int(no) / by |
| 45 | |
| 46 | async def get_data(self, user_id): |
| 47 | bot = await db.get_bot(user_id) |
| 48 | if bot is None: |
| 49 | bot = await db.get_userbot(user_id) |
| 50 | k, filters = self, await db.get_filters(user_id) |
| 51 | size, configs = None, await db.get_configs(user_id) |
| 52 | if configs['duplicate']: |
| 53 | duplicate = True |
| 54 | else: |
| 55 | duplicate = False |
| 56 | try: |
| 57 | min = configs['min_size'] |
| 58 | max = configs['max_size'] |
| 59 | except: |
| 60 | min = 0 |
| 61 | max = 0 |
| 62 | button = parse_buttons(configs['button'] if configs['button'] else '') |
| 63 | return bot, configs['caption'], configs['forward_tag'], {'filters': filters, |
| 64 | 'keywords': configs['keywords'], 'min_size': min, 'max_size': max, 'extensions': configs['extension'], 'skip_duplicate': duplicate, 'db_uri': configs['db_uri']}, configs['protect'], button |
| 65 | |
| 66 | # Don't Remove Credit Tg - @VJ_Botz |
| 67 | # Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ |
no test coverage detected