Add experimental feature log

This commit is contained in:
humbertogontijo 2025-07-26 10:28:48 -03:00
parent 13913099db
commit 8c60d4af49

View File

@ -1,4 +1,5 @@
import abc import abc
import inspect
import re import re
import asyncio import asyncio
import collections import collections
@ -319,6 +320,9 @@ class TelegramBaseClient(abc.ABC):
self.api_id = int(api_id) self.api_id = int(api_id)
self.api_hash = api_hash self.api_hash = api_hash
if inspect.iscoroutinefunction(self.session.process_entities):
self._log[__name__].warning('Using async sessions support is a experimental feature')
# Current proxy implementation requires `sock_connect`, and some # Current proxy implementation requires `sock_connect`, and some
# event loops lack this method. If the current loop is missing it, # event loops lack this method. If the current loop is missing it,
# bail out early and suggest an alternative. # bail out early and suggest an alternative.