Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Changes #23

Open
wants to merge 133 commits into
base: ultroid
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 102 commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
6acc39a
Change bug report template to an issue form
9ary May 29, 2023
9751b35
Change feature request template to an issue form
9ary May 29, 2023
ed825a2
Add dedicated form for documentation issues
9ary May 29, 2023
c89644e
Update some fields in the GH issue template
Lonami May 30, 2023
0f0ca6b
Upgrade issue templates to issue forms (#4118)
Lonami May 30, 2023
aab8009
Fix comment_to for a group of messages (#4120)
iamilya May 31, 2023
c3ec775
Clarify OS field in bug report template
9ary Jun 2, 2023
4ff7ac6
Handle CancelledError inside mtprotosender recv loop
Lonami Jun 2, 2023
c3bddf9
Add missing formatting arg in logging call
Lonami Jun 2, 2023
65407fc
Document more RPC errors (#4127)
New-dev0 Jun 6, 2023
2826c94
Support most usernames in VALID_USERNAME_RE
Lonami Jun 9, 2023
1e63de9
Fix lack of support for anon channel restrictions (#4130)
rozha Jun 9, 2023
9267917
Improve error message when trying to delete inline messages
Lonami Jun 9, 2023
16ed961
Change html.unparse logic to mimic markdown's
Lonami Jun 17, 2023
75ed58a
Update to layer 160
Lonami Jul 21, 2023
164d356
Fix reply_to can be optional
Lonami Jul 21, 2023
816b0bd
Fix _get_thumb failed when document had no thumbs
Lonami Jul 21, 2023
a0cda0c
Remove client-side checks when editing permissions
Lonami Jul 21, 2023
4eef9b5
Handle sqlite3.OperationalError in update loop
Lonami Jul 21, 2023
438aff3
Handle FloodWaitError in update loop
Lonami Jul 21, 2023
131f021
Don't attempt thumb download if there is no thumb
Lonami Jul 22, 2023
9cf4cd7
Disable blank issues in GitHub (#4157)
9ary Jul 23, 2023
413a2bb
Bump to v1.29.0
Lonami Jul 23, 2023
ce010e9
Fix handling of UpdateShortSentMessage
Lonami Jul 23, 2023
694c78c
Improve image compression heuristics and algorithm used (#4158)
Nick80835 Jul 23, 2023
211238f
Fix reply_to when sending albums
Lonami Jul 24, 2023
6ded164
Sort tlobjects before generating their listing (#4163)
bmwiedemann Aug 1, 2023
128b707
Don't treat asyncio.IncompleteReadError as unhandled
Lonami Aug 3, 2023
b0f9fd1
Except all types of timeout error
Lonami Aug 18, 2023
e617b59
Return marked ID from MemorySession.get_entity_rows_by_id (#4177)
Kacnep89 Aug 23, 2023
0cc9ca9
Fix `is_inline` check for `KeyboardButtonWebView` (#4183)
misuzu Aug 28, 2023
2011a32
Make MessageBox trace logs more useful
Lonami Aug 29, 2023
574e887
Fix getting_diff_for with empty set was being spammed
Lonami Aug 29, 2023
d40aae7
Further improve MessageBox trace logging
Lonami Aug 29, 2023
ac483e6
Only update seq if pts changed
Lonami Aug 29, 2023
33f3e27
Change apply_deadlines_reset micro-optimization
Lonami Aug 29, 2023
72f16ef
Update to layer 161
Lonami Aug 29, 2023
9b1d9aa
Fix incorrect param type in apply_channel_difference (#4185)
kshubham506 Aug 29, 2023
e928fbd
Fix date empty (#4191)
Kacnep89 Sep 6, 2023
72faa89
Remove client-side check in message.edit (#4195)
NotStatilko Sep 8, 2023
ba99b8b
Update to layer 162
Lonami Sep 10, 2023
2cef715
Bump to v1.30
Lonami Sep 10, 2023
5ba3125
Fix generator for pypy (#4198)
gumblex Sep 12, 2023
7ce0b2f
Fix invalid date type in UpdateShort
Lonami Sep 12, 2023
7325718
Fix date empty when getting difference
Lonami Sep 13, 2023
ad19987
Fixed sorting of markup entities with the same offsets (#4201)
alexgoryushkin Sep 14, 2023
bd11564
Remove uses of imghdr
Lonami Sep 20, 2023
6a36066
Update to layer 164
Lonami Sep 22, 2023
7d7dbdf
Update to layer 165
Lonami Sep 29, 2023
eb67ef1
Update to v1.31
Lonami Oct 12, 2023
fda6840
Fix file name could be lost when uploading files
Lonami Oct 17, 2023
046dbb5
Update to layer 166
Lonami Oct 29, 2023
b17e10a
Fix init of custom Draft after layer update
Lonami Oct 29, 2023
6ccd6b0
Bump to v1.32
Lonami Oct 31, 2023
308f8e8
Add PR template mentioning v1 is feature-frozen
Lonami Nov 9, 2023
ddc9bef
Force filename with JPG extension after resizing
Lonami Nov 12, 2023
cf3bc71
Retry on TimedOutError (#4255)
mario-ttide Nov 19, 2023
584735a
Conditional webbrowser import (#4261)
balika011 Nov 27, 2023
1ef6689
Update to layer 167
Lonami Dec 1, 2023
985d12e
Bump to v1.33
Lonami Dec 1, 2023
abeb8c4
Prioritise closing tags when sorting tags
udf Dec 7, 2023
3b428f9
Fix ordering of nested entities
udf Dec 7, 2023
3d58dc3
Fix ordering of closing tags of sequential entities (#4268)
Lonami Dec 8, 2023
6cf1be9
Bump to v1.33.1
Lonami Dec 8, 2023
2082a0e
Fix typo in documentation example (#4277)
calderwoodra Dec 18, 2023
b882348
Fix restriction_reason type hint (#4282)
Jahongir-Qurbonov Dec 25, 2023
1241671
Update to layer 169
Lonami Dec 26, 2023
c445684
Update to layer 170
Lonami Jan 1, 2024
9dbe9a7
Add missing saved_peer_id parameter to Message
Lonami Jan 4, 2024
a97a7a5
Add new config file for readthedocs
Lonami Jan 14, 2024
32a4cb8
Update to layer 171
Lonami Jan 17, 2024
6ee2fff
Add reply_to_chat and reply_to_sender in Message (#4300)
exovoq Jan 18, 2024
6187ff7
Update to layer 172
Lonami Jan 18, 2024
63d9b26
Fix unparsing of message.text (#4301)
prashantsengar Jan 20, 2024
70201a9
Fix Message finish init for reply_to stories
Lonami Jan 31, 2024
41eb665
Fix custom parse_mode instances (#4304)
Just-a-xD Feb 2, 2024
d76f3b7
Update to layer 173
Lonami Feb 2, 2024
65c27c5
Bump to v1.34
Lonami Feb 2, 2024
39fc5c5
Update changelog
Lonami Feb 2, 2024
2b99ff6
Support pathlib.Path as session again
Lonami Feb 13, 2024
22bf0b4
Add custom secret support to TcpMTProxy (#4309)
aDarkDev Feb 16, 2024
319db57
Update to layer 174
Lonami Feb 16, 2024
d1518f0
Fix custom Message lacking parameter
Lonami Feb 21, 2024
d90d0dc
message parameter must be optional
Lonami Feb 23, 2024
47178df
Update to layer 176
Lonami Mar 8, 2024
7ceb2e0
Add missing quick_reply_shortcut_id
Lonami Mar 10, 2024
4d34243
Add drop_author param to forward_messages (#4329)
bezustally Mar 18, 2024
75d609a
Fix type hint in start (#4332)
jordan-gillard Mar 26, 2024
9f3e7e4
Fix TelegramClient init with None session (#4339)
lindsayzhou Mar 30, 2024
26aa178
Handle FileReferenceExpiredError during download
Lonami Apr 2, 2024
723fbd5
Update to layer 177
Lonami Apr 5, 2024
49a8f11
Add missing attributes to Message (#4346)
ToxygenX Apr 8, 2024
d3a201a
Fix regression on supported Python version (#4347)
kshubham506 Apr 12, 2024
3625bf8
Fix get_entity type hint (#4352)
Darskiy Apr 18, 2024
3ac11e1
Fix get_messages type hint (#4357)
Darskiy Apr 23, 2024
10a6d16
Update to layer 178
Lonami Apr 24, 2024
8137b12
Fix readthedocs requirements
Lonami Apr 24, 2024
d77ac18
Bump to v1.35
Lonami Apr 24, 2024
0f6dd59
Add readthedocs dependency on sphinx-rtd-theme
Lonami Apr 24, 2024
881bfaa
Update to layer 179
Lonami Apr 27, 2024
1974b66
Add missing type to _store_own_updates
Lonami Apr 28, 2024
4767368
Update to layer 179
Lonami May 1, 2024
b3e210a
Update to layer 181
Lonami Jun 1, 2024
3def943
qts_count is always assumed to be 1
Lonami Jun 4, 2024
04aea46
Update to v1.36
Lonami Jun 11, 2024
cfebb9d
Remove unused imports (#4397)
z44d Jun 20, 2024
a5c98ae
Update to layer 183
Lonami Jul 6, 2024
087191e
Update API Scheme to Layer 184 (#4413)
SpEcHiDe Jul 19, 2024
946f803
Handle FloodPremiumWaitError
Lonami Jul 24, 2024
7540848
Support CDN downloads (#4420)
HBcao233 Aug 7, 2024
90f1e5b
Update to layer 186
Lonami Aug 25, 2024
46854a7
Fix ConnectionError() takes no keyword arguments with proxies (#4440)
delobanov Aug 28, 2024
aec957d
Add error message back to proxy errors (#4443)
delobanov Aug 29, 2024
b01d3d7
Fix edge case on get_messages when reverse=True (#4455)
kristal374 Sep 5, 2024
d37b0f8
Update to layer 187 (#4457)
New-dev0 Sep 7, 2024
a9442ef
Remove right-adjust from logging example docs (#4461)
MohsenHNSJ Sep 11, 2024
693c73e
Update to layer 188
Lonami Sep 23, 2024
f652f3f
Bump to v1.37
Lonami Sep 23, 2024
4553f04
Fix formatting_entities not working for albums (#4475)
EntireMusic Oct 5, 2024
a0e42c1
Update to layer 189 (#4476)
New-dev0 Oct 5, 2024
8138be2
Update to layer 190
Lonami Oct 15, 2024
3f589b2
Fix parse_mode with albums (#4494)
EntireMusic Oct 20, 2024
85c4a91
Fix typos in FAQ section (#4498)
MohsenHNSJ Oct 24, 2024
a77835a
Fix reuse of captions during send msg with file (#4500)
GregEremeev Oct 25, 2024
f03e4b1
Update to Layer 192 (#4503)
New-dev0 Oct 31, 2024
769b65e
Exclude sign_up from test_all_methods_present
cjwatson Nov 6, 2024
70098c5
Fix test broken by removal of imghdr
cjwatson Nov 6, 2024
c9cce8a
Update to layer 193
Lonami Nov 17, 2024
63d55bb
Bump to v1.38
Lonami Nov 17, 2024
9ca3b59
Fix Python 3.6 compatibility
Lonami Nov 18, 2024
225ea9c
fix(session): persist session after `session.set_dc`
Danipulok Nov 20, 2024
b09c8c8
Update to layer 195
Lonami Dec 15, 2024
cfce68e
Avoid error when trying to reset deadline for no msgbox entries
Lonami Dec 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

96 changes: 96 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Bug Report
description: Create a report about a bug inside the library.
body:

- type: textarea
id: reproducing-example
attributes:
label: Code that causes the issue
description: Provide a code example that reproduces the problem. Try to keep it short without other dependencies.
placeholder: |
```python
from telethon.sync import TelegramClient
...

```
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: Explain what you should expect to happen. Include reproduction steps.
placeholder: |
"I was doing... I was expecting the following to happen..."
validations:
required: true

- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: Explain what actually happens.
placeholder: |
"This happened instead..."
validations:
required: true

- type: textarea
id: traceback
attributes:
label: Traceback
description: |
The traceback, if the problem is a crash.
placeholder: |
```
Traceback (most recent call last):
File "code.py", line 1, in <code>

```

- type: input
id: telethon-version
attributes:
label: Telethon version
description: The output of `python -c "import telethon; print(telethon.__version__)"`.
placeholder: "1.x"
validations:
required: true

- type: input
id: python-version
attributes:
label: Python version
description: The output of `python --version`.
placeholder: "3.x"
validations:
required: true

- type: input
id: os
attributes:
label: Operating system (including distribution name and version)
placeholder: Windows 11, macOS 13.4, Ubuntu 23.04...
validations:
required: true

- type: textarea
id: other-details
attributes:
label: Other details
placeholder: |
Additional details and attachments. Is it a server? Network condition?

- type: checkboxes
id: checklist
attributes:
label: Checklist
description: Read this carefully, we will close and ignore your issue if you skimmed through this.
options:
- label: The error is in the library's code, and not in my own.
required: true
- label: I have searched for this issue before posting it and there isn't an open duplicate.
required: true
- label: I ran `pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip` and triggered the bug in the latest version.
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
blank_issues_enabled: false
contact_links:
- name: Ask questions in StackOverflow
url: https://stackoverflow.com/questions/ask?tags=telethon
Expand Down
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Documentation Issue
description: Report a problem with the documentation.
labels: [documentation]
body:

- type: textarea
id: description
attributes:
label: Description
description: Describe the problem in detail.
placeholder: This part is unclear...

- type: checkboxes
id: checklist
attributes:
label: Checklist
description: Read this carefully, we will close and ignore your issue if you skimmed through this.
options:
- label: This is a documentation problem, not a question or a bug report.
required: true
- label: I have searched for this issue before posting it and there isn't a duplicate.
required: true
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Feature Request
description: Suggest ideas, changes or other enhancements for the library.
labels: [enhancement]
body:

- type: textarea
id: feature-description
attributes:
label: Describe your suggested feature
description: Please describe your idea. Would you like another friendly method? Renaming them to something more appropriate? Changing the way something works?
placeholder: "It should work like this..."
validations:
required: true

- type: checkboxes
id: checklist
attributes:
label: Checklist
description: Read this carefully, we will close and ignore your issue if you skimmed through this.
options:
- label: I have searched for this issue before posting it and there isn't a duplicate.
required: true
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--
Thanks for the PR! Please keep in mind that v1 is *feature frozen*.
New features very likely won't be merged, although fixes can be sent.
All new development should happen in v2. Thanks!
-->
18 changes: 18 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: readthedocs/conf.py

formats:
- pdf
- epub

python:
install:
- requirements: readthedocs/requirements.txt
2 changes: 1 addition & 1 deletion readthedocs/concepts/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ That means you can do this:
.. code-block:: python

message.user_id
await message.get_input_user()
await message.get_input_sender()
message.user
# ...etc

Expand Down
Loading