mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 05:24:51 +00:00
Update examples
This commit is contained in:
parent
2f82e753d6
commit
4b6f29bb76
1 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ Here's some examples:
|
|||
from pyrogram.raw import functions
|
||||
|
||||
async with Client("my_account") as app:
|
||||
await app.send(
|
||||
await app.invoke(
|
||||
functions.account.UpdateProfile(
|
||||
first_name="First Name", last_name="Last Name",
|
||||
about="New bio text"
|
||||
|
|
@ -67,10 +67,10 @@ Here's some examples:
|
|||
|
||||
async with Client("my_account") as app:
|
||||
# Set online status
|
||||
await app.send(functions.account.UpdateStatus(offline=False))
|
||||
await app.invoke(functions.account.UpdateStatus(offline=False))
|
||||
|
||||
# Set offline status
|
||||
await app.send(functions.account.UpdateStatus(offline=True))
|
||||
await app.invoke(functions.account.UpdateStatus(offline=True))
|
||||
|
||||
- Get chat info:
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ Here's some examples:
|
|||
from pyrogram.raw import functions, types
|
||||
|
||||
async with Client("my_account") as app:
|
||||
r = await app.send(
|
||||
r = await app.invoke(
|
||||
functions.channels.GetFullChannel(
|
||||
channel=app.resolve_peer("username")
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue