patch 8729250774e56024723bc882c6da35402f602906
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun Feb 6 17:38:26 CET 2022
* telegram: Simplify get entity type name routine
hunk ./telegram.py 17
-TL_TYPES_IDENT = re.compile(r"<class 'telethon.tl.types.([^']+)'>")
hunk ./telegram.py 242
- return TL_TYPES_IDENT.match(str(type(entity))).groups()[0]
+ return type(entity).__name__