bots.SendCustomRequest

class pyrogram.raw.functions.bots.SendCustomRequest

Sends a custom request; for bots only

Details:
  • Layer: 223

  • ID: AA2769ED

Parameters:
  • custom_method (str) – The method name

  • params (DataJSON) – JSON-serialized method parameters

Returns:

DataJSON

TL Schema

bots.sendCustomRequest#aa2769ed
custom_method:string
params:DataJSON

= DataJSON

Parameter Tree

SendCustomRequest
├── custom_methodstring
└── paramsDataJSON
└── DataJSON
└── datastring

Example

await app.invoke(
    SendCustomRequest(
        custom_method="text",
        params=DataJSON(data="text"),
    )
)