mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 04:00:18 +03:00
Add experimental feature log
This commit is contained in:
parent
13913099db
commit
8c60d4af49
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user