(bot, message)
| 16 | |
| 17 | @Client.on_message(filters.private) |
| 18 | async def _(bot, message): |
| 19 | await digital_botz.add_user(bot, message) |
| 20 | user_id = message.from_user.id |
| 21 | ban_status = await digital_botz.get_ban_status(user_id) |
| 22 | if ban_status.get("is_banned", False): |
| 23 | if ( datetime.date.today() - datetime.date.fromisoformat(ban_status["banned_on"]) |
| 24 | ).days > ban_status["ban_duration"]: |
| 25 | await digital_botz.remove_ban(user_id) |
| 26 | else: |
| 27 | return await message.reply_text("Sorry Sir, 😔 You are Banned!.. Please Contact - @TechifyBots") |
| 28 | await message.continue_propagation() |
nothing calls this directly
no test coverage detected