(user_id, key, value)
| 189 | # Ask Doubt on telegram @KingVJ01 |
| 190 | |
| 191 | async 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 |
no test coverage detected