contacts.AcceptContact

class pyrogram.raw.functions.contacts.AcceptContact

If the add contact action bar is active, add that user as contact

Details:
  • Layer: 223

  • ID: F831A20F

Parameters:

id (InputUser) – The user to add as contact

Returns:

Updates

TL Schema

contacts.acceptContact#f831a20f
id:InputUser

= Updates

Parameter Tree

AcceptContact
└── idInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

await app.invoke(
    AcceptContact(
        id=await app.resolve_user(chat_id),
    )
)