telegram: Remove implicit value for entity_cache in function declarations,
patch 2c875a55dfbf11c2895bdfb365b75ac8198dc74c
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun Jan 30 22:06:02 CET 2022
* telegram: Remove implicit value for entity_cache in function declarations,
if entity_cache already existed was not assigning the default value so was
confusing. Add comments to explain that entity_cache should be a list.
hunk ./telegram.py 201
- async def get_channel_topic(self, channel, entity_cache=[None]):
+ async def get_channel_topic(self, channel, entity_cache):
hunk ./telegram.py 203
+ # entity_cache should be a list to be a persistent and by reference value
hunk ./telegram.py 212
- async def get_channel_creation(self, channel, entity_cache=[None]):
+ async def get_channel_creation(self, channel, entity_cache):
hunk ./telegram.py 217
+ # entity_cache should be a list to be a persistent and by reference value