CODE: Wallpaper bot in Python (TPY)
COMMAND: *
CODE:
bot.sendChatAction(chat_id=message.chat.id, action="typing")
try:
category = message.text
url = f"https://fourkwallpapers-api.onrender.com/INFINITY_NQQIPB/get?category={category}"
response = HTTP.get(url)
data = response.json()
for item in data[:10]:
image_url = item["image_url"]
title = item["title"]
bot.sendPhoto(chat_id=message.chat.id, photo=image_url, caption=title)
except Exception as e:
bot.sendMessage(chat_id=message.chat.id, text=f"ERROR: {str(e)}")
visit www.telebotcreator.com to deploy for free
JOIN @THEINFINITYAPIS @INFINITYBOTSHUB @THEINFINITYHACKERS
CODE BY: @ESCALIBUD
API BY: @ESCALIBUD
SHARE FOR MORE
COMMAND: *
CODE:
bot.sendChatAction(chat_id=message.chat.id, action="typing")
try:
category = message.text
url = f"https://fourkwallpapers-api.onrender.com/INFINITY_NQQIPB/get?category={category}"
response = HTTP.get(url)
data = response.json()
for item in data[:10]:
image_url = item["image_url"]
title = item["title"]
bot.sendPhoto(chat_id=message.chat.id, photo=image_url, caption=title)
except Exception as e:
bot.sendMessage(chat_id=message.chat.id, text=f"ERROR: {str(e)}")
visit www.telebotcreator.com to deploy for free
JOIN @THEINFINITYAPIS @INFINITYBOTSHUB @THEINFINITYHACKERS
CODE BY: @ESCALIBUD
API BY: @ESCALIBUD
SHARE FOR MORE