via an inline query. So I pass URL as str to an inline query builder:
results.append(builder.photo(file=item['link']))
But sometimes this approach fails with an error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/telethon/utils.py", line 346, in get_input_photo
if photo.SUBCLASS_OF_ID == 0x846363e0: # crc32(b'InputPhoto'):
AttributeError: 'str' object has no attribute 'SUBCLASS_OF_ID'
How do I check if the URL string is compliant with the Telethon?
Don't crop the traceback. post it fully to a pastebin
Обсуждают сегодня