Skip to main content
POST
Answer Bot Question

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chat_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
question_id
string
required
Required string length: 1 - 200

Body

application/json
answer
string

The answer in words. For a question with options, send one of them exactly.

Maximum string length: 8000
answers
string[]

When the bot asked several questions at once: one answer each, in order.

Required array length: 1 - 10 elements
Maximum string length: 8000

Response

The answer was delivered.

chat_id
string
required
title
string
required
message_id
integer | null
required

The message just sent. Null when a chat was opened without one.

Required range: -9007199254740991 <= x <= 9007199254740991
cursor
string
required

Pass to GET /bots/chats/{chat_id}/messages.

bots
object[]
required
url
string
required