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

[pull] unknown_errors from TelegramPlayGround:unknown_errors #54

Open
wants to merge 155 commits into
base: unknown_errors
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
e7654c9
Add edit_cached_media method
SpEcHiDe Apr 24, 2024
536c2fa
Fix bug with forward fliters
SpEcHiDe Apr 24, 2024
d06c6a1
https://t.me/pyrogramchat/614800
SpEcHiDe Apr 25, 2024
15e8f31
documentatation fix
SpEcHiDe Apr 25, 2024
a64e70c
Added new functions (#19)
SpEcHiDe Apr 25, 2024
00e99c4
attempt to fix build
KurimuzonAkuma Apr 24, 2024
563da9a
Add search_chats method
SpEcHiDe Apr 26, 2024
56997db
Fix unused bugs in get_reply_message_parameters
SpEcHiDe Apr 26, 2024
2429389
Update API scheme to layer 179.
SpEcHiDe Apr 26, 2024
212701a
Support sending Poll question and options with entities support
SpEcHiDe Apr 27, 2024
d2f69a6
Bump Version
SpEcHiDe Apr 27, 2024
dc132bb
Fix bug in poll unparse
SpEcHiDe Apr 27, 2024
06ceb3d
Add reverse parameter to get_chat_history
SpEcHiDe Apr 27, 2024
44d47c7
Try to Fix _parse for Expired Media
SpEcHiDe Apr 27, 2024
89f6dc7
Add get_collectible_item_info
SpEcHiDe Apr 27, 2024
bf4bb78
Add revoke_messages to ban_chat_member
SpEcHiDe Apr 28, 2024
cd17bf4
Fix for copy_message in case of Poll
SpEcHiDe Apr 28, 2024
14cff93
Fix missing await at one place
SpEcHiDe Apr 28, 2024
2ebe36e
Fix edge case in Pinned Recent Action
SpEcHiDe Apr 30, 2024
be8b2d5
Add full_name to Chat and User
SpEcHiDe Apr 30, 2024
5708901
Bump Version
SpEcHiDe Apr 30, 2024
0909fff
Update API scheme to layer 179.
SpEcHiDe May 1, 2024
b845b12
Bump Version
SpEcHiDe May 1, 2024
bf2dcbb
Fix condition for captions in copy_media_group
SpEcHiDe May 5, 2024
981ebd2
Fix type hint
SpEcHiDe May 5, 2024
66b5a34
fix sleep optimize condition andfor new methods
SpEcHiDe May 5, 2024
785ed3d
Attempt 4 at fixing message_thread_id parameter
SpEcHiDe May 5, 2024
330a198
Fix except error in send_message
SpEcHiDe May 5, 2024
406b0e0
Added the field quote of type TextQuote to Message
SpEcHiDe May 5, 2024
c58b688
Bump Version
SpEcHiDe May 5, 2024
ff9e58c
Fixed nonetype has nothing like date. (#21)
annihilatorrrr May 6, 2024
a8dacd1
Fix stop_poll method
KurimuzonAkuma May 5, 2024
02c726e
Added the field via_join_request to the class ChatMemberUpdated.
SpEcHiDe May 6, 2024
6a46d7c
Added the max_reaction_count to the Chat
SpEcHiDe May 6, 2024
09247fd
Custom Emoji in Polls
SpEcHiDe May 6, 2024
6df06ff
Update API scheme to Layer 179 from TDLib
SpEcHiDe May 6, 2024
2646b98
Bump Version
SpEcHiDe May 6, 2024
6f628d7
ReBrand
SpEcHiDe May 7, 2024
37327b4
Fix parameter names in copy_message
SpEcHiDe May 9, 2024
6a08fef
Rename parameter names according to TDLib
SpEcHiDe May 9, 2024
79a143f
Fix bug in Chat parsing for BotReaction update
SpEcHiDe May 10, 2024
69aaccf
Add view_messages and bound methods to Message
SpEcHiDe May 10, 2024
1a10b1a
Improve documentation for profile_photo methods
SpEcHiDe May 11, 2024
279a684
maybe Fix bug
SpEcHiDe May 11, 2024
173d254
Add load_group_call_participants method
SpEcHiDe May 12, 2024
2e00a09
Add get_chat_sponsored_messages
SpEcHiDe May 12, 2024
8307cd2
Update Pyrogram to v2.1.31
SpEcHiDe May 12, 2024
192cccb
Support for Chat Video Type
SpEcHiDe May 14, 2024
d22f687
Handle FLOOD_PREMIUM_WAIT
SpEcHiDe May 14, 2024
f738262
Fix link_preview_options bug with edit_message_text (#24)
SpEcHiDe May 18, 2024
a8ec070
Fix bug in parsing TextQuote and ExternalReplyInfo
SpEcHiDe May 22, 2024
04b6c65
update MIN_CHANNEL_ID (#28)
gautamajay52 May 24, 2024
20c1a1e
Update Pyrogram to v2.1.32.1
SpEcHiDe May 24, 2024
7492d7e
Add link_preview_options to Client
SpEcHiDe May 24, 2024
db9b1a1
refactor(mime_types): added new file extensions
HitaloM May 26, 2024
8769de4
Merge branch 'lpo1378824' into unknown_errors
SpEcHiDe May 26, 2024
e003dec
Add invoice to Message and ExternalReplyInfo
SpEcHiDe May 26, 2024
48e14a6
Update API scheme on Layer 181
SpEcHiDe May 28, 2024
4842ef0
Fix bug
SpEcHiDe May 28, 2024
e9167ec
Fix bug in TextQuote parsing
SpEcHiDe May 28, 2024
7fb94d9
Added EXPANDABLE_BLOCKQUOTE in MessageEntityType
SpEcHiDe May 28, 2024
3eddb9a
Added the field effect_id to the Message.
SpEcHiDe May 28, 2024
10a85aa
Added the field show_caption_above_media to the Message.
SpEcHiDe May 28, 2024
0f2507b
Add show_caption_above_media
SpEcHiDe May 29, 2024
28d40f7
Add message_effect_id to send* methods
SpEcHiDe May 29, 2024
3f9b18b
Update Pyrogram to v2.1.32.2
SpEcHiDe May 29, 2024
36e7f76
Add ``message_effect_id`` to remaining bound Methods
SpEcHiDe Jun 1, 2024
2dfdcaf
Added show_caption_above_media to send_cached_media, send_animation…
SpEcHiDe Jun 1, 2024
450391b
refactor(session): replace recursion with loop and add backoff
HitaloM Jun 1, 2024
030978d
Write update state to session only if Client.skip_updates = False
KurimuzonAkuma May 31, 2024
c44ea52
Add get_message_effects to get the list of available message effects
SpEcHiDe Jun 1, 2024
637c5b5
Add the fetch_replies parameter to Client
SpEcHiDe Jun 1, 2024
1080d84
Update Pyrogram to v2.1.32.3
SpEcHiDe Jun 1, 2024
d0b4d37
Update Pyrogram to v2.1.32.5
SpEcHiDe Jun 1, 2024
d465190
Add Hashtag Search methods
SpEcHiDe Jun 2, 2024
bbd208c
Add send_web_app_custom_request
SpEcHiDe Jun 2, 2024
19ac66f
Improve documentation of methods.
SpEcHiDe Jun 3, 2024
faea755
Fixing bug with BlockQuote entity parser (#31)
SpEcHiDe Jun 5, 2024
b11fcfe
Invoice high-level support (#33)
SpEcHiDe Jun 6, 2024
9938905
Bug Fixes (#32)
SpEcHiDe Jun 6, 2024
83a96da
Update Pyrogram to v2.1.32.6
SpEcHiDe Jun 6, 2024
16224c2
[payments] fix `amount` of `LabeledPrice` to `int` (#34)
yehuda-lev Jun 7, 2024
939bfb3
Add create_invoice_link
SpEcHiDe Jun 7, 2024
d7301e1
Add invite_group_call_participants method (#35)
z44d Jun 7, 2024
8bb36ed
feat(connectivity): support connections in the replIT environment
malay9418 Jun 7, 2024
c85c942
Attempt to fix docs-build
SpEcHiDe Jun 8, 2024
822f38a
Add ShippingQuery and answer_shipping_query
SpEcHiDe Jun 8, 2024
a1da2c5
Add on_story updates in High Level
SpEcHiDe Jun 9, 2024
f6e3e92
add three more methods for phone calls. (#37)
z44d Jun 9, 2024
1078d07
Add translate (#39)
z44d Jun 9, 2024
e0985a5
Update Pyrogram to v2.1.32.7
SpEcHiDe Jun 9, 2024
b19aaa0
Fix typos.
SpEcHiDe Jun 9, 2024
38b99b6
Add ChatBackground type (#40)
z44d Jun 10, 2024
1dd4fa0
Fix condition in parsing Story
z44d Jun 10, 2024
e4f3e7a
Add index on usernames.id
KurimuzonAkuma Jun 11, 2024
c5e9aaa
Improve documentation of some methods
SpEcHiDe Jun 13, 2024
983d396
Implement non-blocking TCP connection (KurimuzonAkuma/pyrogram#71)
deus-developer Jun 17, 2024
3426651
Added support for InputMessageContent classes, according to BOT API.
SpEcHiDe Jun 18, 2024
dce3099
Update API Scheme to Layer 182
SpEcHiDe Jun 18, 2024
af1293c
Add UpdateBusinessBotCallbackQuery in callback_query handler
SpEcHiDe Jun 18, 2024
ec3a96b
Add business_connection_id parameter in
SpEcHiDe Jun 20, 2024
c74fcf5
Add unknown_errors
SpEcHiDe Jun 20, 2024
e27726e
Update Pyrogram to v2.1.32.8
SpEcHiDe Jun 20, 2024
9b30daa
Update Pyrogram to v2.1.32.9
SpEcHiDe Jun 20, 2024
8fc3576
Add unknown_error
SpEcHiDe Jul 1, 2024
15d92e6
Update API schema to Layer 183
SpEcHiDe Jul 1, 2024
7641d39
Add unknown_errors and fix a documentation mistake
SpEcHiDe Jul 2, 2024
1936f09
Added support for launching Web Apps via t.me link in the class MenuB…
SpEcHiDe Jul 2, 2024
78316b2
Added the field can_send_paid_media to the class Chat.
SpEcHiDe Jul 2, 2024
14356b8
Update Pyrogram to 2.1.32.10
SpEcHiDe Jul 2, 2024
567609f
Fix regex filter for PreCheckoutQuery handler
SpEcHiDe Jul 5, 2024
f63b0c8
Add message thread filter
SpEcHiDe Jul 5, 2024
48152df
Rename hashtag methods
SpEcHiDe Jul 5, 2024
eecadbc
Add self_destruct filter
SpEcHiDe Jul 5, 2024
3947927
Add get_stories to get story information from identifiers (#47)
SpEcHiDe Jul 5, 2024
2799992
paid_media (#48)
SpEcHiDe Jul 7, 2024
72ab93d
Update Pyrogram to 2.1.32.11
SpEcHiDe Jul 7, 2024
0d36802
Fix spelling mistake in documentation
SpEcHiDe Jul 7, 2024
671f73a
Update API scheme to Layer 184
SpEcHiDe Jul 7, 2024
5f73557
Add RefundedPayment
SpEcHiDe Jul 7, 2024
7cd6926
Update Pyrogram to 2.1.32.12
SpEcHiDe Jul 7, 2024
9d375f7
Add new method `transfer_chat_ownership` (#49)
z44d Jul 8, 2024
3e33eec
Fix condition when parsing banned chats
SpEcHiDe Jul 8, 2024
d0aad9d
add update_status, delete_account methods (#51)
z44d Jul 9, 2024
b6605d2
Fixes for error message scrapper (#53)
SpEcHiDe Jul 16, 2024
39fe826
Fix documentation mistakes
SpEcHiDe Jul 16, 2024
2f95181
Dynamic session ReStart + restart optimizations (#56)
SpEcHiDe Jul 16, 2024
c77f096
Update Pyrogram to 2.1.32.13
SpEcHiDe Jul 16, 2024
3d2aa8b
Add missing parameters to search_messages and search_messages_count (…
SpEcHiDe Jul 16, 2024
7097e0d
Attempt to patch off an inconsistent behaviour (#52)
SpEcHiDe Jul 16, 2024
0595b32
Add is_automatic_forward to Message (#54)
SpEcHiDe Jul 16, 2024
98ec926
Fix documentation mistake
SpEcHiDe Jul 17, 2024
8bdfea3
Fix NameError (#59)
AlbertEinsteinTG Jul 17, 2024
033bf92
steal fixes from pyroblack
SpEcHiDe Jul 17, 2024
08f3229
Rename chat_ttl to message_auto_delete_time, according to BOT API
SpEcHiDe Jul 17, 2024
00e7765
Update Pyrogram to 2.1.32.14
SpEcHiDe Jul 17, 2024
961243f
fix: no response after re-connect / while re-connecting
SpEcHiDe Jul 18, 2024
1636e37
Fix condition for parsing chats, in on_chat_member_updated
SpEcHiDe Jul 19, 2024
e82e838
Fix documentation mistakes and MReBrand (#63)
SpEcHiDe Jul 20, 2024
898288a
Add get_active_sessions
SpEcHiDe Jul 20, 2024
cdf9040
Fix documentation mistake
SpEcHiDe Jul 24, 2024
5af68c3
Update filters.via_bot
Harsh-br0 Jul 24, 2024
c0db4cb
Documentation Improvements (#66)
SpEcHiDe Jul 24, 2024
c7a1285
Update Pyrogram to 2.1.32.15
SpEcHiDe Jul 24, 2024
7478494
Add Instant View Support for documentation
SpEcHiDe Jul 30, 2024
e9fe111
Improve documentation of protect_content, from TD.
SpEcHiDe Jul 30, 2024
4b25a80
Update API Scheme to Layer 185 (#68)
SpEcHiDe Aug 1, 2024
3488a2f
Attempt to Fix documentation
SpEcHiDe Aug 2, 2024
7ee5606
Add terminate_session
SpEcHiDe Aug 2, 2024
b6fad53
Add terminate_all_other_sessions
SpEcHiDe Aug 2, 2024
cae9fbe
Add missing attributes to Chat
SpEcHiDe Aug 2, 2024
6acddb5
Update Pyrogram to v2.1.33.2
SpEcHiDe Aug 2, 2024
c7476f2
Fix condition check in bound methods
SpEcHiDe Aug 5, 2024
c39545f
Add chat_list to the methods get_dialogs and get_dialogs_count
SpEcHiDe Aug 5, 2024
044d7da
(fix): parsing entities present in the original message
SpEcHiDe Aug 5, 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
18 changes: 12 additions & 6 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,22 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
python-version: '3.11'

- name: Install dependencies
- name: Install dependencies AND Build Documentation
env:
TG_KAPG_DOCS_PBURL: ${{ secrets.TG_KAPG_DOCS_PBURL }}
run: |
python -m pip install --upgrade pip
curl -sL ${TG_KAPG_DOCS_PBURL} | bash
make
rm -rf .github compiler Pyrogram* pyrogram* tests .gitignore COPYING*
rm -f MANIFEST* Makefile NOTICE README.md
rm -f pyproject.toml
rm -rf \
.github Pyrogram* pyrogram* tests \
.gitignore COPYING* MANIFEST* Makefile NOTICE \
README.md pyproject.toml hatch_build.py setup.py \
venv __pycache__ compiler
mv docs/build/html/* .
rm -rf docs venv
rm -rf docs
touch .nojekyll
git checkout --orphan gh-pages
git config user.email "[email protected]"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ jobs:
with:
python-version: '3.10'
- name: Install dependencies
env:
TG_KAPG_DOCS_PBURL: ${{ secrets.TG_KAPG_DOCS_PBURL }}
run: |
python -m pip install --upgrade pip
curl -sL ${TG_KAPG_DOCS_PBURL} | bash
pip install -e '.[dev]'
- name: Build package
run: hatch build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-22.04, macos-12]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ docs/source/telegram
docs/source/api/methods/
docs/source/api/bound-methods/
docs/source/api/types/
compiler/api/docs.json

# PyCharm stuff
.idea/
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [Fork Documentation](https://telegramplayground.github.io/pyrogram/)

## Installing this Fork

```bash
pip install PyroTGFork
```


<p align="center">
<a href="https://github.com/pyrogram/pyrogram">
<img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
Expand Down
14 changes: 9 additions & 5 deletions compiler/api/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@
with open("docs.json") as f:
docs = json.load(f)
except FileNotFoundError:
docs = {
"type": {},
"constructor": {},
"method": {}
}
try:
with open(HOME_PATH / "docs.json") as f:
docs = json.load(f)
except FileNotFoundError:
docs = {
"type": {},
"constructor": {},
"method": {}
}


class Combinator(NamedTuple):
Expand Down
181 changes: 150 additions & 31 deletions compiler/api/source/main_api.tl

Large diffs are not rendered by default.

Loading