messages.AcceptUrlAuth

class pyrogram.raw.functions.messages.AcceptUrlAuth

Use this to accept a Seamless Telegram Login authorization request, for more info click here »

Details:
  • Layer: 223

  • ID: 67A3F0DE

Parameters:
  • write_allowed (bool, optional) – Set this flag to allow the bot to send messages to you (if requested)

  • share_phone_number (bool, optional)

  • peer (InputPeer, optional) – The location of the message

  • msg_id (int 32-bit, optional) – Message ID of the message with the login button

  • button_id (int 32-bit, optional) – ID of the login button

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

  • match_code (str, optional) – N/A

Returns:

UrlAuthResult

TL Schema

messages.acceptUrlAuth#67a3f0de
flags:#
write_allowed:flags.0?true
share_phone_number:flags.3?true
peer:flags.1?InputPeer
msg_id:flags.1?int
button_id:flags.1?int
url:flags.2?string
match_code:flags.4?string

= UrlAuthResult

Parameter Tree

AcceptUrlAuth
├── write_allowedtrue (optional)
├── share_phone_numbertrue (optional)
├── 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)
└── match_codestring (optional)

Example

await app.invoke(
    AcceptUrlAuth(
        write_allowed=None,
        share_phone_number=None,
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        button_id=0,
        url="https://google.com",
        match_code="text",
    )
)