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: 223

  • ID: 87FC5E7

Parameters:
  • bot (InputUser) – Identifier of the bot associated to the mini bot app

  • custom_method (str) – Identifier of the custom method to invoke

  • params (DataJSON) – Method parameters

Returns:

DataJSON

TL Schema

bots.invokeWebViewCustomMethod#87fc5e7
bot:InputUser
custom_method:string
params:DataJSON

= DataJSON

Parameter Tree

InvokeWebViewCustomMethod
├── botInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── custom_methodstring
└── paramsDataJSON
└── DataJSON
└── datastring

Example

await app.invoke(
    InvokeWebViewCustomMethod(
        bot=await app.resolve_user(chat_id),
        custom_method="text",
        params=DataJSON(data="text"),
    )
)