S
Size: a a a
S
S
@bot.message_handler(content_types=[
'photo'])
def getting_photos(message):
file_ids = message.photo[-1].file_id
print(file_ids)
ダ
file_ids = [file.file_id for file in message.photo]
ダ
SG
SG
GF
GF
ダ
ダ
ダ
ダ
ダ
ダ
ダ
ダ
A
message
.json.from.file_id - не работает.A
{
"update_id": 924008608,
"message": {
"message_id": 373211,
"from": {
"id": 794823214,
"is_bot": false,
"first_name": "Aryn",
"username": "aryn_bots",
"language_code": "ru"
},
"chat": {
"id": 794823214,
"first_name": "Aryn",
"username": "aryn_bots",
"type": "private"
},
"date": 1597264639,
"photo": [
{
"file_id": "AgACAgIAAxkBAAEFsdtfNFL_g2J7cIprWkLLSF7CZgshTgACmK8xGxFcoUlEXllW1e0WiMAJcZEuAAMBAAMCAANtAANj6wYAARoE",
"file_unique_id": "AQADwAlxkS4AA2PrBgAB",
"file_size": 14816,
"width": 320,
"height": 320
},
{
"file_id": "AgACAgIAAxkBAAEFsdtfNFL_g2J7cIprWkLLSF7CZgshTgACmK8xGxFcoUlEXllW1e0WiMAJcZEuAAMBAAMCAAN4AANk6wYAARoE",
"file_unique_id": "AQADwAlxkS4AA2TrBgAB",
"file_size": 52233,
"width": 640,
"height": 640
}
]
}
}
A
d