import time
from random import choice

import telegram


def send_images_to_telegram(bot_token, chat_id, image_paths, interval=10):
    bot = telegram.Bot(token=bot_token)
    while True:
        image_path = choice(image_paths)
        with open(image_path, "rb") as image:
            bot.send_photo(chat_id=chat_id, photo=image)
        time.sleep(interval)

368811a90cbb523777490f988a91efa54208066e
<mask token>

<mask token>


def send_images_to_telegram(bot_token, chat_id, image_paths, interval=10):
    bot = telegram.Bot(token=bot_token)
    while True:
        image_path = choice(image_paths)
        with open(image_path, 'rb') as image:
            bot.send_photo(chat_id=chat_id, photo=image)
        time.sleep(interval)

import time
from random import choice
import telegram


def send_images_to_telegram(bot_token, chat_id, image_paths, interval=10):
    bot = telegram.Bot(token=bot_token)
    while True:
        image_path = choice(image_paths)
        with open(image_path, 'rb') as image:
            bot.send_photo(chat_id=chat_id, photo=image)
        time.sleep(interval)

import time
from random import choice

import telegram


def send_images_to_telegram(bot_token, chat_id, image_paths, interval=10):
    bot = telegram.Bot(token=bot_token)
    while True:
        image_path = choice(image_paths)
        with open(image_path, "rb") as image:
            bot.send_photo(chat_id=chat_id, photo=image)
        time.sleep(interval)
