Skip to content

Commit d9da330

Browse files
Laky-64CalledLuca
andcommitted
Corrects return type and updates example code
Co-Authored-By: CalledLuca <58666938+CalledLuca@users.noreply.github.com>
1 parent ddb20fd commit d9da330

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

PyTgCalls/Client.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
<category>
3636
<pg-title>STATIC METHODS</pg-title>
3737
<subtext>
38-
<category-title><shi>async</shi> <ref><sb>calls</sb></ref> <shi>-> dict</shi>[<shi>str</shi>, <docs-ref link="/PyTgCalls/Advanced Types/Call">Call</docs-ref>]</category-title>
38+
<category-title><shi>async</shi> <ref><sb>calls</sb></ref> <shi>-> dict</shi>[<shi>int</shi>, <docs-ref link="/PyTgCalls/Advanced Types/Call">Call</docs-ref>]</category-title>
3939
<config id="LIST_CALLS_DESC"/>
4040

41-
<category-title><shi>async</shi> <ref><sb>group_calls</sb></ref> <shi>-> dict</shi>[<shi>str</shi>, <docs-ref link="/PyTgCalls/Advanced Types/Call">Call</docs-ref>]</category-title>
41+
<category-title><shi>async</shi> <ref><sb>group_calls</sb></ref> <shi>-> dict</shi>[<shi>int</shi>, <docs-ref link="/PyTgCalls/Advanced Types/Call">Call</docs-ref>]</category-title>
4242
<subtext><text>Get all group calls</text></subtext>
4343

44-
<category-title><shi>async</shi> <ref><sb>private_calls</sb></ref> <shi>-> dict</shi>[<shi>str</shi>, <docs-ref link="/PyTgCalls/Advanced Types/Call">Call</docs-ref>]</category-title>
44+
<category-title><shi>async</shi> <ref><sb>private_calls</sb></ref> <shi>-> dict</shi>[<shi>int</shi>, <docs-ref link="/PyTgCalls/Advanced Types/Call">Call</docs-ref>]</category-title>
4545
<subtext><text>Get all private calls</text></subtext>
4646

4747
<category-title><ref><sb>cache_peer</sb></ref> <shi>-></shi> <config id="ARG_UNION_PEER"/></category-title>

PyTgCalls/Using Filters.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from pytgcalls import filters
2020
from pytgcalls.types import ChatUpdate
2121
...
22-
@pytgcalls.on_update(filters.chat_update(ChatUpdate.Status.INCOMING_CALL))
22+
@app.on_update(filters.chat_update(ChatUpdate.Status.INCOMING_CALL))
2323
def on_incoming_call(client, update):
2424
print("Incoming call!", update)
2525
</syntax-highlight>
@@ -61,7 +61,7 @@
6161
from pytgcalls import filters
6262
from pytgcalls.types import ChatUpdate
6363
...
64-
@pytgcalls.on_update(~filters.chat_update(ChatUpdate.Status.LEFT_GROUP) &amp; filters.chat(1234567890))
64+
@app.on_update(~filters.chat_update(ChatUpdate.Status.LEFT_GROUP) &amp; filters.chat(1234567890))
6565
def on_incoming_voice_call(client, update):
6666
print("Left chat!", update)
6767
</syntax-highlight>
@@ -74,7 +74,7 @@
7474
from pytgcalls import filters
7575
from pytgcalls.types import ChatUpdate
7676
...
77-
@pytgcalls.on_update(filters.chat(1234567890) &amp; (filters.chat_update(ChatUpdate.Status.LEFT_GROUP) | filters.chat_update(ChatUpdate.Status.INCOMING_CALL)))
77+
@app.on_update(filters.chat(1234567890) &amp; (filters.chat_update(ChatUpdate.Status.LEFT_GROUP) | filters.chat_update(ChatUpdate.Status.INCOMING_CALL)))
7878
def on_incoming_voice_call(client, update):
7979
print("Incoming voice call or left chat!", update)
8080
</syntax-highlight>

0 commit comments

Comments
 (0)