from telethon import TelegramClient
from telethon.tl.types import InputMediaPhoto
api_id = 'YOUR_API_ID'
api_hash = 'YOUR_API_HASH'
channel = 'YOUR_CHANNEL'
client = TelegramClient('session_name', api_id, api_hash)
async def main():
await client.start()
photo_paths = ['path_to_photo1.jpg', 'path_to_photo2.jpg', 'path_to_photo3.jpg']
media = [InputMediaPhoto(file) for file in photo_paths]
await client.send_file(channel, media)
with client:
client.loop.run_until_complete(main())