Skip to content

Commit

Permalink
Merge pull request #58 from kastaid/dev
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
illvart authored Oct 7, 2023
2 parents 99eaafc + 7caca51 commit 80cefae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions getter/core/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
AccessTokenExpiredError,
AccessTokenInvalidError,
)
from telethon.network.connection.tcpfull import ConnectionTcpFull
from telethon.network.connection.tcpabridged import ConnectionTcpAbridged
from telethon.sessions.abstract import Session
from telethon.sessions.string import CURRENT_VERSION, StringSession
from telethon.tl import functions as fun, types as typ
Expand Down Expand Up @@ -62,7 +62,7 @@ def __init__(
kwargs["api_id"] = api_id
kwargs["api_hash"] = api_hash
kwargs["base_logger"] = TelethonLogger
kwargs["connection"] = ConnectionTcpFull
kwargs["connection"] = ConnectionTcpAbridged
kwargs["connection_retries"] = None
kwargs["auto_reconnect"] = True
super().__init__(session, **kwargs)
Expand Down
2 changes: 2 additions & 0 deletions getter/core/patched/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ async def eor(
link_preview=link_preview,
**args,
)
if self.fwd_from or not self.out or not self._client:
return None
except MessageIdInvalidError: # keep functions running
return None
except MessageNotModifiedError:
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
loguru==0.7.0
loguru==0.7.2
python-dotenv==1.0.0
git+https://github.com/kastaid/Telethon@main
cryptg==0.4.0
pytz==2022.7
psutil==5.9.5
heroku3==5.2.1
GitPython==3.1.32
GitPython==3.1.37
psycopg2-binary==2.9.6
SQLAlchemy==1.4.48
sqlalchemy-json==0.5.0
cachetools==5.3.1
asyncache==0.3.1
aiofiles==23.2.1
aiocsv==1.2.4
async-timeout==4.0.2
async-timeout==4.0.3
aiohttp[speedups]==3.8.5
Markdown==3.4.4
Markdown==3.5
beautifulsoup4==4.12.2
emoji==2.7.0
validators==0.20.0
emoji==2.8.0
validators==0.22.0
telegraph==2.2.0
requests==2.31.0
lottie==0.7.0
Expand Down

0 comments on commit 80cefae

Please sign in to comment.