Skip to content

Commit

Permalink
Refactor /testPhoto command in simplebot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-yz committed Feb 9, 2024
1 parent b1d20db commit 2b26c64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assets/simplebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ def lambda_handler(event, context):
logger.info(response)

elif message == "/testPhoto":
response = "https://eventro.ir/images/events/poster/44543.jpg"
send_photo(chat_id, response, BASE_URL, "<a href='https://eventro.ir/events/44543'>🎟️ Buy Tickets</a>")
event_image = "https://eventro.ir/images/events/poster/44543.jpg"
response = "🎵🎶📣🎯\n" \
"📅 23 بهمن 1402\n" \
"<a href='https://eventro.ir/events/44543'>🎟️ منبع و خرید بلیت</a>"
send_photo(chat_id, event_image, BASE_URL, response)
logger.info(response)
else:
response = "Please use /start or /scrape"
Expand Down

0 comments on commit 2b26c64

Please sign in to comment.