Перейти к основному содержанию
POST
Create broadcast button

Авторизации

Authorization
string
header
обязательно

API token from the Zenedu dashboard

Параметры пути

bot
integer
обязательно

Bot ID

broadcast
integer
обязательно

Broadcast ID

Тело

application/json
type
enum<string>
обязательно

task is the submission button a task step gets automatically: it cannot be created by hand (422 on type) and is accepted only when updating that existing button.

Доступные опции:
link,
task,
action,
offer,
affiliate,
app
name
string
обязательно
Maximum string length: 250

Required when type is link; https or tg URL

Maximum string length: 250
offer_id
integer | null

Required when type is offer

actions
object[]

Required when type is action

settings
object

Button settings. For link buttons, an absent link_mode means tracked. When replacing a button, send all settings you want to retain; omitted settings are reset.

Ответ

Button created

data
object