Change URL commands/command_soon.py

This commit is contained in:
Stefano Assenzo 2023-03-05 19:26:37 +01:00 committed by GitHub
parent ae02cc9433
commit 5e3cf25cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ def soon_command(message, bot):
chat_id = message.chat.id #Get chat id chat_id = message.chat.id #Get chat id
try: try:
# Get data from API # Get data from API
url = "https://api.plenusbot.xyz/epic_games?country=IT" # URL API url = "https://minty.apexie.dev/v1/epicfreegames" # URL API
response = requests.get(url).json() #API in JSON response = requests.get(url).json() #API in JSON
#Take data from API (Future Game 1) #Take data from API (Future Game 1)
@ -46,4 +46,4 @@ def soon_command(message, bot):
img_3 = bot.send_photo(message.chat.id, image_futuregames3) # Send image third future games img_3 = bot.send_photo(message.chat.id, image_futuregames3) # Send image third future games
send_message = bot.send_message(chat_id, title_description_3, parse_mode="HTML") # Send all send_message = bot.send_message(chat_id, title_description_3, parse_mode="HTML") # Send all
except IndexError: except IndexError:
print("No third game") print("No third game")