feat: started proxy alerts

This commit is contained in:
2024-08-26 14:28:46 +03:00
parent dba5c60080
commit 2ebbde9f33
8 changed files with 121 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
from datetime import datetime
from aiogram import types
from aiogram.utils.keyboard import InlineKeyboardBuilder
from handlers.filters.proxy_status import ProxyStatusFilter
from ..handler import MessageHandlerABC
class ProxyStatusCallback(MessageHandlerABC):
filter = ProxyStatusFilter()
async def _command(self, data: types.CallbackQuery):
builder = InlineKeyboardBuilder()
builder.button(text="Обновить статус🔄", callback_data="refresh_proxy_status")
date = datetime.now().strftime("%d.%m.%Y %H:%M:%S")
await self.bot.edit_message_text(f'{date} - Работаит', data.message.chat.id, data.message.message_id, reply_markup=builder.as_markup())