Create Telegram Integration
Create Telegram integration
post
/v1/integration/telegram/create
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Request Body * Required
Request Body Schema: application/json
namestring
The associated name
descriptionstring
The associated description
metaobject
Meta data information
botTokenstring
The Telegram integration bot token
sessionDurationnumber
The session duration (in milliseconds)
attachmentsboolean
Weather the bot supports attachments
botIdstring
The ID of the bot this configuration is using
curl -X POST "https://api.chatbotkit.com/v1/integration/telegram/create" \-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \
-H "Content-Type: application/json" \
--data-binary @- << EOF {"name":"string","description":"string","meta":"object","botToken":"string","sessionDuration":"number","attachments":"boolean",} EOF"botId":"string"
{"id":"string"}
The Telegram integration was created successfully