
04.09.2021, 14:55
|
|
Флудер
Регистрация: 06.11.2017
Сообщений: 2,759
С нами:
4483143
Репутация:
183
|
|
Ок
Python:
Код:
res
=
requests
.
get
(
api_url
+
'id='
+
cityid
+
'&units='
+
cf
+
'&APPID='
+
apikey
)
data
=
res
.
json
(
)
bot
.
send_message
(
message
.
chat
.
id
,
"Температура: "
+
str
(
data
[
"main"
]
[
"temp"
]
)
)
# 10.17
|
|
|