move modules out
This commit is contained in:
13
feeds/modules/echo.py
Normal file
13
feeds/modules/echo.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.db import models
|
||||
from telebot import TeleBot
|
||||
|
||||
from feeds.models import FeedModuleConfig
|
||||
|
||||
|
||||
class EchoFeedModuleConfig(FeedModuleConfig):
|
||||
message = models.TextField()
|
||||
|
||||
MODULE_NAME = 'Echo'
|
||||
|
||||
def execute(self, bot: TeleBot, chat_id, last_id):
|
||||
bot.send_message(chat_id, self.message)
|
Reference in New Issue
Block a user