Files
pogoda_tg_bot_auto-deployment/weather_utils.py
T
2026-07-09 09:52:11 +05:00

11 lines
392 B
Python

# weather_utils.py
def get_weather_comment(temperature):
"""Возвращает текстовый комментарий и эмодзи в зависимости от температуры"""
if temperature >= 25:
return "Жара! ☀️"
elif temperature <= 0:
return "Дубак! ❄️"
else:
return "Нормальная погода ☁️"