account.GetAuthorizationForm

class pyrogram.raw.functions.account.GetAuthorizationForm

Returns a Telegram Passport authorization form for sharing data with a service

Details:
  • Layer: 223

  • ID: A929597A

Parameters:
  • bot_id (int 64-bit) – User identifier of the service’s bot

  • scope (str) – Telegram Passport element types requested by the service

  • public_key (str) – Service’s public key

Returns:

account.AuthorizationForm

TL Schema

account.getAuthorizationForm#a929597a
bot_id:long
scope:string
public_key:string

= account.AuthorizationForm

Parameter Tree

GetAuthorizationForm
├── bot_idlong
├── scopestring
└── public_keystring

Example

await app.invoke(
    GetAuthorizationForm(
        bot_id=0,
        scope="text",
        public_key="text",
    )
)