Prepare an expiring owner-signed Telegram request
curl --request POST \
--url http://localhost:4100/v1/yield/telegram/challenge \
--header 'Content-Type: application/json' \
--data '
{
"account": "<string>",
"profileId": "<string>",
"vault": "<string>",
"owner": "<string>",
"action": "configure",
"botToken": "<string>",
"enabled": true
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account: '<string>',
profileId: '<string>',
vault: '<string>',
owner: '<string>',
action: 'configure',
botToken: '<string>',
enabled: true
})
};
fetch('http://localhost:4100/v1/yield/telegram/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"challengeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}Telegram
Prepare an expiring owner-signed Telegram request
Optional runtime, disabled unless durable storage and an external encryption key are configured. An owner signature is mandatory for all configuration access and mutation. Chat delivery requires private-chat start proof followed by owner-signed confirmation.
Prepare an expiring owner-signed Telegram request
curl --request POST \
--url http://localhost:4100/v1/yield/telegram/challenge \
--header 'Content-Type: application/json' \
--data '
{
"account": "<string>",
"profileId": "<string>",
"vault": "<string>",
"owner": "<string>",
"action": "configure",
"botToken": "<string>",
"enabled": true
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account: '<string>',
profileId: '<string>',
vault: '<string>',
owner: '<string>',
action: 'configure',
botToken: '<string>',
enabled: true
})
};
fetch('http://localhost:4100/v1/yield/telegram/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"challengeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4