freetravel/openspec/specs/telegram-link/spec.md

20 lines
1001 B
Markdown
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.

# telegram-link Specification
## Purpose
TBD - created by archiving change frtvl-10-link-label-mobile. Update Purpose after archive.
## Requirements
### Requirement: Понятный блок привязки
Блок привязки SHALL показывать подписи «Бот:» и «Код привязки:» и кнопки в порядке привязки.
#### Scenario: Подписи после привязки
- **GIVEN** нажата «Привязать Телеграм» и получен код «abc» для бота «peppa_bot»
- **WHEN** открыт блок привязки
- **THEN** видны «Бот: @peppa_bot» и «Код привязки: abc» без пробела перед двоеточием
#### Scenario: Бот не настроен
- **GIVEN** логин бота неизвестен
- **WHEN** открыт блок привязки
- **THEN** строка «Бот:» содержит пояснение, а не пустое место