Skip to content

Commit

Permalink
price in one line edit
Browse files Browse the repository at this point in the history
  • Loading branch information
XigmaDev committed Dec 28, 2024
1 parent 2e91838 commit 8cc52a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def format_data_for_telegram(data):
# Add more currencies and their Persian names as needed
}

currencies_to_send = ['usd', 'eur', 'gbp', 'chf', 'jpy', 'try', 'cny', 'rub', 'aed', 'emami1', 'azadi1g', 'azadi1', 'azadi12', 'azadi14', 'mithqal', 'gol18', 'ounce', 'bitcoin']
currencies_to_send = ['usd', 'eur', 'gbp', 'chf', 'jpy', 'try', 'cny', 'rub', 'aed', 'emami1', 'azadi1g', 'azadi1', 'azadi1_2', 'azadi1_4', 'mithqal', 'gol18', 'ounce', 'bitcoin']

formatted_lines = []
for key, values in data.items():
Expand All @@ -63,7 +63,7 @@ def format_data_for_telegram(data):
sell_price = f"{values['sell']} دلار"
buy_price = f"{values['buy']} دلار"

formatted_lines.append(f"{flag} {name_persian}: \n - فروش: {sell_price} \n - خرید: {buy_price}")
formatted_lines.append(f">{flag} {name_persian}: فروش: {sell_price} - خرید: {buy_price}")

formatted_message = "\n\n".join(formatted_lines)

Expand Down

0 comments on commit 8cc52a1

Please sign in to comment.