with open('tbl.json') as f:
file_content = f.read()
templates = json.loads(file_content)
for item in templates['items']:
for attach in item['attachments']:
value = attach["photo_130"]
print (f"{value}")
Traceback (most recent call last):
File "main.py", line 205, in <module>
value = attach["photo_130"]
KeyError: 'photo_130'
используя библиотеку
telebot
: