messages.RequestUrlAuth

class pyrogram.raw.functions.messages.RequestUrlAuth

Get more info about a Seamless Telegram Login authorization request, for more info click here »

Details:
  • Layer: 227

  • ID: 894CC99C

Parameters:
  • peer (InputPeer, optional) – Peer where the message is located

  • msg_id (int 32-bit, optional) – The message

  • button_id (int 32-bit, optional) – The ID of the button with the authorization request

  • url (str, optional) – URL used for link URL authorization, click here for more info »

  • in_app_origin (str, optional) – N/A

Returns:

UrlAuthResult

TL Schema

messages.requestUrlAuth#894cc99c
flags:#
peer:flags.1?InputPeer
msg_id:flags.1?int
button_id:flags.1?int
url:flags.2?string
in_app_origin:flags.3?string

= UrlAuthResult

Parameter Tree

RequestUrlAuth
├── peer → InputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int (optional)
├── button_id → int (optional)
├── url → string (optional)
└── in_app_origin → string (optional)

Example

await app.invoke(
    RequestUrlAuth(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        button_id=0,
        url="https://google.com",
        in_app_origin="text",
    )
)