move feeds to ptb
This commit is contained in:
@@ -2,8 +2,7 @@ import sentry_sdk
|
||||
import twitter
|
||||
from django.db import models
|
||||
from djconfig import config
|
||||
from telebot import TeleBot
|
||||
from telebot.types import InputMediaPhoto, InputMediaVideo
|
||||
from telegram import Bot, InputMediaPhoto, InputMediaVideo
|
||||
|
||||
from feeds.models import FeedModuleConfig
|
||||
|
||||
@@ -13,7 +12,7 @@ class TwitterFeedModuleConfig(FeedModuleConfig):
|
||||
|
||||
MODULE_NAME = 'Twitter feed'
|
||||
|
||||
def execute(self, bot: TeleBot, chat_id, last_id):
|
||||
def execute(self, bot: Bot, chat_id, last_id):
|
||||
config._reload_maybe()
|
||||
|
||||
if last_id is None:
|
||||
|
||||
Reference in New Issue
Block a user