from pyrogram import Client, types, raw
from settings import *
from _datetime import datetime
app = Client(name=name_uset_admin, api_id=api_id, api_hash=api_hash)
async def main(image, date):
async with app:
await app.send_photo(channel, photo=image, caption="Set Total", schedule_date=date)
date = datetime(year=2022, month=6, day=17, hour=00, minute=9)
image = "url image"
app.run(main(image, date))
import telebot
bot = telebot.TeleBot("TOKEN" )
@bot.message_handler(content_types=['text'])
def send_echo(message):
bot.send_message(message.chat.id, message.text)
bot.polling(none_stop=True)