Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
base repository: LonamiWebs/Telethon
Choose a Base Repository
LonamiWebs/Telethon
2012mjm/Telethon
3bl3gamer/Telethon
3vixan/Telethon
88ee55/Telethon
AlexMuller666/Telethon
AlexTaran/Telethon
BenDerPan/Telethon
BigNoseRebort/Telethon
Chemtek/Telethon
DannyDevil0/Telethon
DeeAjayi/Telethon
Favouroked/Telethon
Fedor-Tsyganov/Telethon
Fillll/Telethon
Foolre/Telethon
Goblenus/Telethon
Humans-Huddle/Telethon
JMIdeaMaker/Telethon
Jealrock/Telethon
JosXa/Telethon
JrooTJunior/Telethon
Kosat/Telethon
Kylmakalle/Telethon
Linkzod/Telethon
Lordemax/Telethon
Nick80835/Telethon
NidzaKornjaca/Telethon
Pantja/Telethon
PerU-MoNsteR/Telethon
Qwerty-Space/Telethon
Rajat--Gupta/Telethon
RezaJF/Telethon
Schoordinger/Telethon
Shrikantpaliwal/Telethon
SlavikMIPT/Telethon
SmartManoj/Telethon
StarkGang/Telethon
StarkGangs/Telethon
StetHD/Telethon
StigP1337/Telethon
Surendra-Patil/Telethon
TelegramTools/Telethon
TonyRoomZ/Telethon
Visionario/Telethon
Yilong94/Telethon
Ziusking/Telethon
abuisa/Telethon
agarwalvipin/Telethon
aivel/Telethon
akipham15/Telethon
alexneo2003/Telethon
alexvelickiy/Telethon
ali101110/Telethon
aliakbarRashidi/Telethon
alihossein/Telethon
alimp5/Telethon
andr-04/Telethon
andreif/Telethon
anhlt309/Telethon
appatsekhar/Telethon
arashdn/Telethon
arkashashitov/Telethon
arkhsha/Telethon
arsentyev/Telethon
asavt92/Telethon
asemonize/Telethon
basnijholt/Telethon
beecoelho/Telethon
behrooz-fard/Telethon
belegnar/Telethon
benshu/Telethon
brykj/Telethon
chemiron/Telethon
chiewxia/Telethon
chiva/Telethon
chrizrobert/Telethon
csabahenk/Telethon
cuiwm/Telethon
devll/Telethon
dmassandy/Telethon
duydcoco/Telethon
ekapujiw2002/Telethon
elmcrest/Telethon
erfan-gh/Telethon
exceloo/Telethon
expectocode/Telethon
exzhawk/Telethon
ezdev128/Telethon-ng
frizzlywitch/Telethon
funnydman/Telethon
fwolf/Telethon
ghostlyman/Telethon
gogoing1092/Telethon
gr8linux/Telethon
gsahbi/Telethon
gtavasoli/Telethon
haiiev/Telethon
hanxuntx/Telethon
heffcodex/Telethon
hi-noikiy/Telethon
hiway/Telethon
hmnd/Telethon
huangdehui2013/Telethon
huanyige111/Telethon
iSasuke7/Garry
ibrmora/Telethon
idoall/Telethon
igor-zmitrovich/Telethon
imdoneok/Telethon
imkaka/Telethon
imorteza/Telethon
indrajithbandara/Telethon
ishank011/Telethon
iskrav96/Telethon
jeffffc/Telethon
jianggau/Telethon
josephbiko/Telethon
jowrjowr/Telethon
jsimnz/Telethon
justinjohnymathew/Telethon
karones/Telethon
kay0822/Telethon
kehboard/Telethon
kingfish60/Telethon
kingjan123/Telethon
korahnchild/Telethon
kyasabu/Telethon
lfkopp/Telethon
lingdonge/Telethon
lzkkk/Telethon
madcat1991/Telethon
magum/Telethon
mattk7/Telethon
maxim-smirnov/Telethon
mercuree/Telethon
ming86/Telethon
mnvx/Telethon
moasakthi/Telethon
mohammad2611373/Telethon
mojtabaebadi/Telethon
morteza205/Telethon
mpvyard/Telethon
mrt-kousha/Telethon
mrwersa/Telethon
mustang2247/Telethon
naikdij88/Telethon
ncovercash/Telethon
ndtretyak/Telethon
nonomal/Telethon
noxasch/Telethon
obdabobda/Telethon
ohyeah521/Telethon-1
ov7a/Telethon
petrucci89/Telethon
peynman/Telethon
phuonglm/Telethon
pmbi/Telethon
priyankaNav/Telethon
pshanoop/Telethon
qd452/Telethon
rezam90/Telethon
rishsharma1/Telethon
romankl1m/Telethon
saahmad1996/Telethon
saksham2410/Telethon
sallydelcasarkim/Telethon
santilos/Telethon
sbese/Telethon
scambria/Telethon
shafaypro/Telethon
shashidharsp19/Telethon
singer/Telethon
sinkingsugar/Telethon
soermejo/Telethon
spankders/Telethon
srazi/Telethon
srozov/Telethon
strayge/Telethon
sulthonzh/Telethon
tchklovski/Telethon
tgonzales/Telethon
theSinner/Telethon
tiagoad/Telethon
tsujp/Telethon
tuian/Telethon
unkvuzutop/Telethon
vassilit/Telethon
vzts/Telethon
wathiq-iq/Telethon
x0rzkov/Telethon
xdass/Telethon
xiaoganghan/Telethon
y1n0/Telethon
yiiworld/Telethon
ypankovych/Telethon
yt2/Telethon
yuna-98/Telethon
zbww/Telethon
zed/Telethon
Nothing to show
base: v1.16.0
head repository: LonamiWebs/Telethon
Choose a Head Repository
LonamiWebs/Telethon
2012mjm/Telethon
3bl3gamer/Telethon
3vixan/Telethon
88ee55/Telethon
AlexMuller666/Telethon
AlexTaran/Telethon
BenDerPan/Telethon
BigNoseRebort/Telethon
Chemtek/Telethon
DannyDevil0/Telethon
DeeAjayi/Telethon
Favouroked/Telethon
Fedor-Tsyganov/Telethon
Fillll/Telethon
Foolre/Telethon
Goblenus/Telethon
Humans-Huddle/Telethon
JMIdeaMaker/Telethon
Jealrock/Telethon
JosXa/Telethon
JrooTJunior/Telethon
Kosat/Telethon
Kylmakalle/Telethon
Linkzod/Telethon
Lordemax/Telethon
Nick80835/Telethon
NidzaKornjaca/Telethon
Pantja/Telethon
PerU-MoNsteR/Telethon
Qwerty-Space/Telethon
Rajat--Gupta/Telethon
RezaJF/Telethon
Schoordinger/Telethon
Shrikantpaliwal/Telethon
SlavikMIPT/Telethon
SmartManoj/Telethon
StarkGang/Telethon
StarkGangs/Telethon
StetHD/Telethon
StigP1337/Telethon
Surendra-Patil/Telethon
TelegramTools/Telethon
TonyRoomZ/Telethon
Visionario/Telethon
Yilong94/Telethon
Ziusking/Telethon
abuisa/Telethon
agarwalvipin/Telethon
aivel/Telethon
akipham15/Telethon
alexneo2003/Telethon
alexvelickiy/Telethon
ali101110/Telethon
aliakbarRashidi/Telethon
alihossein/Telethon
alimp5/Telethon
andr-04/Telethon
andreif/Telethon
anhlt309/Telethon
appatsekhar/Telethon
arashdn/Telethon
arkashashitov/Telethon
arkhsha/Telethon
arsentyev/Telethon
asavt92/Telethon
asemonize/Telethon
basnijholt/Telethon
beecoelho/Telethon
behrooz-fard/Telethon
belegnar/Telethon
benshu/Telethon
brykj/Telethon
chemiron/Telethon
chiewxia/Telethon
chiva/Telethon
chrizrobert/Telethon
csabahenk/Telethon
cuiwm/Telethon
devll/Telethon
dmassandy/Telethon
duydcoco/Telethon
ekapujiw2002/Telethon
elmcrest/Telethon
erfan-gh/Telethon
exceloo/Telethon
expectocode/Telethon
exzhawk/Telethon
ezdev128/Telethon-ng
frizzlywitch/Telethon
funnydman/Telethon
fwolf/Telethon
ghostlyman/Telethon
gogoing1092/Telethon
gr8linux/Telethon
gsahbi/Telethon
gtavasoli/Telethon
haiiev/Telethon
hanxuntx/Telethon
heffcodex/Telethon
hi-noikiy/Telethon
hiway/Telethon
hmnd/Telethon
huangdehui2013/Telethon
huanyige111/Telethon
iSasuke7/Garry
ibrmora/Telethon
idoall/Telethon
igor-zmitrovich/Telethon
imdoneok/Telethon
imkaka/Telethon
imorteza/Telethon
indrajithbandara/Telethon
ishank011/Telethon
iskrav96/Telethon
jeffffc/Telethon
jianggau/Telethon
josephbiko/Telethon
jowrjowr/Telethon
jsimnz/Telethon
justinjohnymathew/Telethon
karones/Telethon
kay0822/Telethon
kehboard/Telethon
kingfish60/Telethon
kingjan123/Telethon
korahnchild/Telethon
kyasabu/Telethon
lfkopp/Telethon
lingdonge/Telethon
lzkkk/Telethon
madcat1991/Telethon
magum/Telethon
mattk7/Telethon
maxim-smirnov/Telethon
mercuree/Telethon
ming86/Telethon
mnvx/Telethon
moasakthi/Telethon
mohammad2611373/Telethon
mojtabaebadi/Telethon
morteza205/Telethon
mpvyard/Telethon
mrt-kousha/Telethon
mrwersa/Telethon
mustang2247/Telethon
naikdij88/Telethon
ncovercash/Telethon
ndtretyak/Telethon
nonomal/Telethon
noxasch/Telethon
obdabobda/Telethon
ohyeah521/Telethon-1
ov7a/Telethon
petrucci89/Telethon
peynman/Telethon
phuonglm/Telethon
pmbi/Telethon
priyankaNav/Telethon
pshanoop/Telethon
qd452/Telethon
rezam90/Telethon
rishsharma1/Telethon
romankl1m/Telethon
saahmad1996/Telethon
saksham2410/Telethon
sallydelcasarkim/Telethon
santilos/Telethon
sbese/Telethon
scambria/Telethon
shafaypro/Telethon
shashidharsp19/Telethon
singer/Telethon
sinkingsugar/Telethon
soermejo/Telethon
spankders/Telethon
srazi/Telethon
srozov/Telethon
strayge/Telethon
sulthonzh/Telethon
tchklovski/Telethon
tgonzales/Telethon
theSinner/Telethon
tiagoad/Telethon
tsujp/Telethon
tuian/Telethon
unkvuzutop/Telethon
vassilit/Telethon
vzts/Telethon
wathiq-iq/Telethon
x0rzkov/Telethon
xdass/Telethon
xiaoganghan/Telethon
y1n0/Telethon
yiiworld/Telethon
ypankovych/Telethon
yt2/Telethon
yuna-98/Telethon
zbww/Telethon
zed/Telethon
Nothing to show
compare: v1.19.0
Commits on Jul 28, 2020
Commits on Aug 03, 2020
Commits on Aug 07, 2020
Commits on Aug 08, 2020
Closes #1172, and also fixed a typo.
Commits on Aug 10, 2020
Otherwise, Telegram won't analyze the image and won't add it the
DocumentAttributeImageSize, causing some bots like t.me/Stickers
to break.

Closes #1507.
Commits on Aug 11, 2020
Closes #1519.
Commits on Aug 13, 2020
Commits on Aug 15, 2020
Commits on Aug 23, 2020
Commits on Aug 24, 2020
This reverts commit 26ff92c.

Layer changes only go in minor releases, and the commit history is
linear, so temporarily revert to release a new patch version.
v1.16.3 was accidentally released without the intended bug-fixes.
Commits on Aug 29, 2020
Commits on Sep 07, 2020
This should enable more accurate uploads of in-memory files.
Commits on Sep 10, 2020
Commits on Sep 13, 2020
This means that a value of 0 retries will no longer try to reconnect.
Commits on Sep 14, 2020
Makes upload_file cleaner (context manager instead of try-finally)
and helps keep the logic "we may own this stream and need to close
it or not" separated.

It can be overengineered to allow nesting the same instance in
context managers and also provide implementations for synchronous
context managers but it adds quite a bit of unnecessary complexity
for the time being. YAGNI.
Commits on Sep 17, 2020
The assistant example will now simply be the "core" that initializes
the rest of plugins, allowing for more updates to the *bot* without
cluttering Telethon's git history.
Commits on Sep 22, 2020
Commits on Sep 24, 2020
Commits on Sep 29, 2020
Commits on Oct 01, 2020
This should prevent accidentally comitting docs in master
Closes #1552.
Commits on Oct 02, 2020
Commits on Oct 03, 2020
Closes #1574.
Commits on Oct 05, 2020
This seems to occur whe the Telegram servers are dying and logging
everyone out.
This error is "auth key not found", and the authorization key should
probably not be reset on other error codes. This might address #1457.
Commits on Oct 07, 2020
Commits on Oct 09, 2020
Commits on Oct 11, 2020
Some bots, such as @Gamee, use this to determine the type of results
to return (and "disable" themselves in channels).
Commits on Oct 13, 2020
Commits on Oct 16, 2020
It doesn't make sense to track what happens to Telegram's ecosystem
in the repository of a specific library. The wiki is better suited
for this and can be trivially updated by anyone, allowing it to better
evolve.
Commits on Oct 18, 2020
Keeping them in order is important to easily change them when new
things are added so that we don't miss them again on another update.
Commits on Oct 19, 2020
Commits on Oct 21, 2020
Commits on Oct 22, 2020
Bug introduced by #1587.
Commits on Oct 23, 2020
Never make commits in a rush from your phone.
Commits on Oct 27, 2020
Commits on Oct 30, 2020
Commits on Nov 04, 2020
Closes #1616.
Commits on Nov 05, 2020
Commits on Nov 07, 2020
Helps with #1613.
Commits on Nov 10, 2020
Commits on Nov 12, 2020
Closes #1629.
Commits on Nov 13, 2020
Should properly fix #1618.
Commits on Nov 14, 2020
Commits on Nov 28, 2020
Relying on Python 3.6 or above to be installed to unconditionally
use this library would break user's code, because this is a new
optional dependency that users may not have installed.

Instead, always use the new library when available, which should
work better than pysocks because it natively supports asyncio.
Commits on Dec 04, 2020
Commits on Dec 08, 2020
Commits on Dec 11, 2020
Borrowed senders are not disconnected immediately, but after a while.
If a borrow was used recently but the user requested the main client
to disconnect, those borrows "shouldn't" disconnect because they were
used recently. However, if the user requests a disconnect, they mean
that EVERYTHING should be disconnected, even if the borrows are recent.

This actually gets rid of warnings about send/recv tasks being destroyed,
which partially addresses #1634. That issue may still have more causes
though.
Closes #1645.
Closes #1646.
Commits on Dec 14, 2020
Commits on Dec 19, 2020
Closes #1655.
Includes the changes of #1654.
Commits on Dec 23, 2020
Commits on Jan 02, 2021
Commits on Jan 05, 2021
Showing with 2,592 additions and 2,773 deletions.
  1. +11 −99 .gitignore
  2. +1 −1 LICENSE
  3. +0 −4 MANIFEST.in
  4. +0 −126 default.nix
  5. +0 −59 nix/ci.nix
  6. +0 −86 nix/extended.nix
  7. +0 −18 nix/overlay.nix
  8. +0 −39 nix/telethon/1.10.nix
  9. +0 −56 nix/telethon/1.4.nix
  10. +0 −60 nix/telethon/1.5.nix
  11. +0 −50 nix/telethon/1.6.nix
  12. +0 −66 nix/telethon/1.7.nix
  13. +0 −35 nix/telethon/1.8.nix
  14. +0 −35 nix/telethon/1.9.nix
  15. +0 −60 nix/telethon/common.nix
  16. +0 −27 nix/telethon/devel.nix
  17. +0 −819 nix/telethon/generator-use-pathlib-to-1_4_3.patch
  18. +1 −0 optional-requirements.txt
  19. +12 −0 tox.ini → pyproject.toml
  20. +2 −2 readthedocs/basic/quick-start.rst
  21. +43 −4 readthedocs/basic/signing-in.rst
  22. +10 −11 readthedocs/concepts/asyncio.rst
  23. +3 −3 readthedocs/concepts/botapi-vs-mtproto.rst
  24. +3 −3 readthedocs/concepts/entities.rst
  25. +2 −2 readthedocs/concepts/strings.rst
  26. +9 −78 readthedocs/developing/telegram-api-in-other-languages.rst
  27. +274 −1 readthedocs/misc/changelog.rst
  28. +10 −1 readthedocs/modules/custom.rst
  29. +4 −1 readthedocs/quick-references/client-reference.rst
  30. +16 −6 setup.py
  31. +42 −2 telethon/client/auth.py
  32. +17 −2 telethon/client/bots.py
  33. +126 −14 telethon/client/chats.py
  34. +10 −4 telethon/client/dialogs.py
  35. +131 −13 telethon/client/downloads.py
  36. +11 −5 telethon/client/messageparse.py
  37. +139 −80 telethon/client/messages.py
  38. +101 −27 telethon/client/telegrambaseclient.py
  39. +19 −11 telethon/client/updates.py
  40. +58 −111 telethon/client/uploads.py
  41. +27 −3 telethon/client/users.py
  42. +2 −2 telethon/crypto/libssl.py
  43. +2 −2 telethon/entitycache.py
  44. +4 −5 telethon/events/album.py
  45. +48 −47 telethon/events/chataction.py
  46. +3 −0 telethon/events/inlinequery.py
  47. +11 −20 telethon/events/newmessage.py
  48. +1 −1 telethon/extensions/__init__.py
  49. +117 −3 telethon/helpers.py
  50. +176 −29 telethon/network/connection/connection.py
  51. +1 −1 telethon/network/connection/tcpmtproxy.py
  52. +61 −16 telethon/network/mtprotosender.py
  53. +32 −9 telethon/sessions/sqlite.py
  54. +6 −3 telethon/statecache.py
  55. +1 −0 telethon/tl/custom/__init__.py
  56. +61 −0 telethon/tl/custom/adminlogevent.py
  57. +40 −2 telethon/tl/custom/button.py
  58. +1 −1 telethon/tl/custom/chatgetter.py
  59. +8 −3 telethon/tl/custom/conversation.py
  60. +13 −10 telethon/tl/custom/forward.py
  61. +128 −18 telethon/tl/custom/inlinebuilder.py
  62. +14 −3 telethon/tl/custom/inlineresult.py
  63. +2 −2 telethon/tl/custom/inlineresults.py
  64. +157 −68 telethon/tl/custom/message.py
  65. +131 −0 telethon/tl/custom/participantpermissions.py
  66. +5 −1 telethon/tl/tlobject.py
  67. +213 −29 telethon/utils.py
  68. +1 −1 telethon/version.py
  69. +14 −8 telethon_examples/README.md
  70. +38 −368 telethon_examples/assistant.py
  71. +1 −1 telethon_examples/replier.py
  72. +129 −53 telethon_generator/data/api.tl
  73. +57 −24 telethon_generator/data/errors.csv
  74. +21 −17 telethon_generator/data/methods.csv
  75. +1 −0 telethon_generator/generators/tlobject.py
  76. +6 −0 telethon_generator/parsers/errors.py
  77. +3 −2 telethon_generator/parsers/tlobject/tlarg.py
  78. +1 −0 update-docs.sh
@@ -1,7 +1,3 @@
# Docs
/_build/
/docs/

# Generated code
/telethon/tl/functions/
/telethon/tl/types/
@@ -11,102 +7,18 @@

# User session
*.session
usermedia/

# Quick tests should live in this file
example.py
/usermedia/

# Byte-compiled / optimized / DLL files
# Builds and testing
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache
/dist/
/build/
/*.egg-info/
/readthedocs/_build/
/.tox/

# Scrapy stuff:
.scrapy

# Sphinx documentation
/docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject
# API reference docs
/docs/

# Nix build results
result
result-*
# File used to manually test new changes, contains sensitive data
/example.py
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2019 LonamiWebs
Copyright (c) 2016-2020 LonamiWebs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

This file was deleted.

This file was deleted.

This file was deleted.

Showing you all comments on commits in this comparison.

@nitanmarcel

This comment has been minimized.

Copy link

@nitanmarcel nitanmarcel commented on fc765f6 Oct 3, 2020

On the newer layer there's also a permission for sending Anonymous messages alongside the ones specified in the ParticipantPermissions class