bot rafactor and bugfix

This commit is contained in:
2025-08-19 04:45:16 +09:00
parent 43dda889f8
commit a8d860ed87
31 changed files with 4396 additions and 613 deletions

View File

View File

@@ -1,18 +1,9 @@
from abc import ABC, abstractmethod
from enum import IntEnum
from telegram import Update
from telegram.ext import CallbackContext
from ..editor.states import BotStates
class State(ABC):
@abstractmethod
async def handle(self, update: Update, context: CallbackContext) -> int:
pass
class BotStates(IntEnum):
CHOOSE_CHANNEL = 0
CHOOSE_TYPE = 1
ENTER_TEXT = 2
ENTER_MEDIA = 3
EDIT_KEYBOARD = 4
CONFIRM_SEND = 5
ENTER_SCHEDULE = 6
pass