import telebot
class TelegramPost:
TOKEN = settings.config['TOKEN']
GROUP_ID = settings.config['GROUP_ID']
bot = telebot.TeleBot(TOKEN, parse_mode='HTML')
def post_channel(self, image_url, caption):
photo = open(image_url, 'rb')
self.bot.send_photo(self.GROUP_ID, photo=photo, caption=caption)