response = requests.get(url)
response_json = response.json()
elements = response_json["result"][:5]
def cutter(response_json, amount):
return response_json["result"][:amount]
def start_polling():
bot.polling()
from threading import Thread
from file_bot_1 import start_polling as start_polling_1
from file_bot_2 import start_polling as start_polling_2
if __name__ == '__main__':
Thread(target=start_polling_1, args=[]).start()
Thread(target=start_polling_2, args=[]).start()