Commit Graph

4159 Commits

Author SHA1 Message Date
Dan
dd4e41f63f Make the use of proxies an optional dependency 2022-12-26 16:28:06 +01:00
Dan
6aae3a9c77 Always use non-blocking sockets 2022-12-26 16:25:22 +01:00
Dan
9ee1807e42 Don't raise write() and close() exceptions 2022-12-26 16:23:57 +01:00
Dan
7e5d593544 Keep lang_code lowercase 2022-12-26 16:19:26 +01:00
Dan
9eaaf105c1 Update requirements.txt 2022-12-26 16:18:41 +01:00
Dan
3d5e9d841f Update Pyrogram to v2.0.79 2022-12-25 15:28:26 +01:00
Dan
ce8c242eb4 Revert to triggering a reconnection when skipping invalid packets 2022-12-25 15:14:12 +01:00
Dan
b23e34494e Add messages for mismatched checks 2022-12-25 15:08:02 +01:00
Dan
ae028ab4b6 Switch back to local system time synchronization
perf_counter will stop counting when the system goes to sleep, causing
the generation of invalid message ids after waking up which in turn put
the client into a never ending reconnecting loop due to check mismatches
caused by the time not being synced anymore. It's also unclear whether
perf_counter stays in sync during long runs.
2022-12-25 14:55:40 +01:00
Dan
13094f1d8b Update Pyrogram to v2.0.78 2022-12-25 10:31:40 +01:00
Dan
4c32a15cfd Remove unneeded threading.Lock 2022-12-25 10:30:56 +01:00
Dan
87ae79e0e2 Remove special cases for older Python versions 2022-12-25 10:29:00 +01:00
Dan
dbf2e471b5 Fix usages of removed attributes 2022-12-25 10:26:30 +01:00
Dan
b3825c209e Update Pyrogram to v2.0.77 2022-12-24 17:53:49 +01:00
Dan
c7d362990f Add back a reference to the loop 2022-12-24 17:53:24 +01:00
Dan
13e8c41991 Update Pyrogram to v2.0.76 2022-12-24 17:32:02 +01:00
Dan
f12005b5d0 Use Python's standard sockets in case of no proxy 2022-12-24 17:30:23 +01:00
Dan
deb560a051 Remove unused variables 2022-12-24 17:27:06 +01:00
Dan
91160bf834 Update Pyrogram to v2.0.75 2022-12-24 17:15:23 +01:00
Dan
1cb17152f8 Keep a timeout while connecting and set non-blocking afterwards
Also fix an await to None value
2022-12-24 17:15:10 +01:00
Dan
f30510ab7d Update Pyrogram to v2.0.74 2022-12-24 16:15:37 +01:00
Dan
84d60b56b3 Switch to non-blocking sockets & use a send queue 2022-12-24 16:15:07 +01:00
Dan
f350691c69 Update Pyrogram to v2.0.73 2022-12-23 20:41:31 +01:00
KyMaP13
265f5fc72e
Add VOICE_MESSAGES_FORBIDDEN (#1151)
* add VOICE_MESSAGES_FORBIDDEN

* Update 400_BAD_REQUEST.tsv

Co-authored-by: onefedov <onefedov@yandex-team.ru>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-12-23 20:40:31 +01:00
omg-xtao
c4a47b99ae
Add support for Fragment SMS codes (#1170) 2022-12-23 20:36:00 +01:00
Dan
8afd4597fa Update Pyrogram to v2.0.72 2022-12-23 20:20:44 +01:00
Dan
81573bce76 Remove threading.Lock usages 2022-12-23 20:20:27 +01:00
Dan
ccb58f503c Update Pyrogram to v2.0.71 2022-12-23 15:41:34 +01:00
Dan
a9e7d15bf6 Add a watchdog for incoming updates 2022-12-23 15:40:56 +01:00
Dan
aeea07f83d Update Pyrogram to v2.0.70 2022-12-12 21:54:07 +01:00
Anton Kovalevich
a76269ddaf
Handle all given updates, avoid short circuit (#1162) 2022-12-12 21:53:09 +01:00
Dan
73554b9d38 Update Pyrogram to v2.0.69 2022-12-06 21:34:09 +01:00
Dan
217bcb1dfb Fix HTML unparsing when there's no entities 2022-12-06 21:33:46 +01:00
Dan
86515bb9d1 Update Pyrogram to v2.0.68 2022-12-06 20:12:46 +01:00
Dan
7090dcba68 Add more tests for HTML.unparse 2022-12-06 20:12:27 +01:00
Andrea Princic
669b39927b
Escape text inside entity when building unparsed text (#1156) 2022-12-06 20:09:31 +01:00
Dan
fd2819ca7f Update Pyrogram to v2.0.67 2022-12-06 19:11:47 +01:00
Dan
db6bc2df19 Add tests for HTML.unparse 2022-12-06 19:11:23 +01:00
Dan
38e9745a80 Update Pyrogram to v2.0.66 2022-12-06 18:50:43 +01:00
Andrea Princic
2ed000381d
Update the HTML logic to output well-formed elements (#1155)
* unparsing html entities with deque

* unparsing using a stack (recursive)
2022-12-06 18:29:27 +01:00
Dan
ad773455a7 Update Pyrogram to v2.0.65 2022-12-06 18:10:36 +01:00
Dan
3cf1ac7d92 Update the order in which media messages are parsed 2022-12-06 18:09:42 +01:00
Dan
d734fbb180 Fix User.emoji_status type hint 2022-12-06 18:08:38 +01:00
Dan
fb85a14277 Update Pyrogram to v2.0.64 2022-12-06 14:15:46 +01:00
Dan
1d7852a44b Update API schema to Layer 150 2022-12-06 13:59:06 +01:00
Dan
70b6738908 Update Pyrogram to v2.0.63 2022-11-25 22:11:57 +01:00
Dan
b81c379548 Update API schema to Layer 149 2022-11-25 22:11:35 +01:00
Dan
9b6cb070b9 Update Pyrogram to v2.0.62 2022-11-18 12:14:49 +01:00
Dan
2aae10193e Add tag command to Makefile 2022-11-18 12:14:31 +01:00
Dan
e3e9731973 Update Pyrogram to v2.0.61 2022-11-15 11:15:05 +01:00