mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Update examples
This commit is contained in:
parent
2f82e753d6
commit
4b6f29bb76
@ -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 New Issue
Block a user