1
0
Fork 0
dit-spec/one.schema.yaml
2023-09-10 22:27:36 +03:00

53 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$id: https://zba.su/ditbot
$schemma: https://json-schema.org/draft/2020-12/schema
title: "Группы и их списки обсулиживания каналов"
description:
Cхема главной базы данных бота для Telegramа,
реализующего комментирование сообщений канала в группе с топиками.
CC-BY-SA 4.0 © Зажигин Богдан, 2023
type: array
minItems: 1
uniqueItems: true
items:
title: "Каналы привязанные к группе с топиками"
type: object
required:
- group_id
- whitelist
properties:
group_id:
title: "Идентификатор группы"
description: "Согласно строке «id» из core.telegram.org/bots/api#chat."
type: integer
examples:
- -1001969731405
- -1001559352883
whitelist:
type: array
minItems: 1
items:
type: object
required:
- channel_id
dependentRequired:
active:
- channel_id
properties:
channel_id:
title: "Идентификатор канала"
description: "Согласно строке «id» из core.telegram.org/bots/api#chat."
type: integer
examples:
- -1001973121320
- -1001523889521
active:
title: "Обслуживание"
description: "Каналы сначала добавляются к группе, как возможные для привязки к топику, и только потом могут быть активированы."
type: boolean
examples:
- true
- false