Skip to main content

approve

Method
This is a method of the PairingProtocol class in the protocols module.
Approve a pairing code, authorizing the channel.

Signature

Parameters

str
required
Type of channel
str
required
The pairing code to approve
str
default:"''"
User identifier (optional, defaults to empty string)
str
default:"''"
Human-readable username (optional, defaults to empty string)

Returns

bool
True if approval successful, False if code invalid/expired

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2176