city = InlineKeyboardMarkup(
inline_keyboard=[
[InlineKeyboardButton(text="Киев", callback_data="Киев")],
[InlineKeyboardButton(text="Харьков", callback_data="Харьков")],
[InlineKeyboardButton(text="Одеса", callback_data="Одеса")],
[InlineKeyboardButton(text="Яремче", callback_data="Яремче")]])
try:
r = requests.get(
f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={open_weather_token}&units=metric"
)
data = r.json()
city = data["name"]