MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / get_data

Method get_data

plugins/utils.py:46–64  ·  view source on GitHub ↗
(self, user_id)

Source from the content-addressed store, hash-verified

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

Callers 2

pub_Function · 0.95
restart_pending_forwadsFunction · 0.95

Calls 5

parse_buttonsFunction · 0.85
get_botMethod · 0.80
get_userbotMethod · 0.80
get_filtersMethod · 0.80
get_configsMethod · 0.80

Tested by

no test coverage detected