telegram: Add size info to photo (media)
patch 40a72fbbea1b081086b4743201fffcb71e513e5f
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun Jan 30 02:28:02 CET 2022
* telegram: Add size info to photo (media)
hunk ./telegram.py 323
- elif message.photo: media_type = 'photo'
+ elif message.photo:
+ size = [x for x in message.media.photo.sizes if x.type == 'x'][0]
+ media_type = 'photo:{}x{}'.format(size.w, size.h)