JobSpy/src/telegram_handler/telegram_handler.py

12 lines
309 B
Python

from abc import ABC, abstractmethod
from telegram import Update
from telegram.ext import ContextTypes
# Define an abstract class
class TelegramHandler(ABC):
@abstractmethod
def handle(self, update: Update, context: ContextTypes):
pass # This is an abstract method, no implementation here.