bots.InvokeWebViewCustomMethod
- class pyrogram.raw.functions.bots.InvokeWebViewCustomMethod
Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ».
- Details:
Layer:
223ID:
87FC5E7
TL Schema
bots.invokeWebViewCustomMethod#87fc5e7
bot:InputUser
custom_method:string
params:DataJSON
= DataJSON
Parameter Tree
InvokeWebViewCustomMethod
├── bot →
InputUser│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ └──
InputUserFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long├── custom_method →
string└── params →
DataJSON└──
DataJSON└── data →
stringExample
await app.invoke(
InvokeWebViewCustomMethod(
bot=await app.resolve_user(chat_id),
custom_method="text",
params=DataJSON(data="text"),
)
)