move feeds to ptb
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from django.db import models
|
||||
from telebot import TeleBot
|
||||
from telegram import Bot
|
||||
|
||||
from feeds.models import FeedModuleConfig
|
||||
|
||||
@@ -9,6 +9,6 @@ class EchoFeedModuleConfig(FeedModuleConfig):
|
||||
|
||||
MODULE_NAME = 'Echo'
|
||||
|
||||
def execute(self, bot: TeleBot, chat_id, last_id):
|
||||
def execute(self, bot: Bot, chat_id, last_id):
|
||||
bot.send_message(chat_id, self.message)
|
||||
yield None
|
||||
|
Reference in New Issue
Block a user