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

Function update_configs

plugins/test.py:191–197  ·  view source on GitHub ↗
(user_id, key, value)

Source from the content-addressed store, hash-verified

189# Ask Doubt on telegram @KingVJ01
190
191async def update_configs(user_id, key, value):
192 current = await db.get_configs(user_id)
193 if key in ['caption', 'duplicate', 'db_uri', 'forward_tag', 'protect', 'min_size', 'max_size', 'extension', 'keywords', 'button']:
194 current[key] = value
195 else:
196 current['filters'][key] = value
197 await db.update_configs(user_id, current)
198
199# Don't Remove Credit Tg - @VJ_Botz
200# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ

Callers 1

settings_queryFunction · 0.85

Calls 2

get_configsMethod · 0.80
update_configsMethod · 0.80

Tested by

no test coverage detected