feat: Telegram bot — full functionality with inline keyboards, file upload, auth

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 22:46:20 +05:00
parent 397b999558
commit 922b1b26a6
8 changed files with 439 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
from abc import ABC, abstractmethod
from typing import Any
class MessengerService(ABC):
@abstractmethod
async def setup(self):
pass
@abstractmethod
async def shutdown(self):
pass
@abstractmethod
async def send_message(self, chat_id: str, text: str, **kwargs):
pass
@abstractmethod
async def send_file(self, chat_id: str, file_path: str, caption: str = ""):
pass
@abstractmethod
async def notify_progress(self, chat_id: str, status: str, progress: int | None = None):
pass