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

  • 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
├── peerInputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint (optional)
├── button_idint (optional)
├── urlstring (optional)
└── in_app_originstring (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",
    )
)