# Nakordoni + Telegram

Заборони для вантажівок, святкові й літні заборони як готові пости у вашому Telegram-каналі. Додайте нашого бота адміністратором і виберіть країни, мову й час. Без API-ключа, без коду.

Безкоштовний план: 1 канал, 3 пости на день, атрибуція обов’язкова (стиль вибираєте ви). Платні плани: більше каналів і постів, атрибуцію можна вимкнути.

## Which bot posts

- Your own bot (available now): create a bot in @BotFather, paste its Bot Token in the dashboard, add the bot to your channel as an admin with only the «Post messages» right. Posts appear under your bot name. https://nakordoni.eu/uk/developers/dashboard#tg-bot-token
- Shared Nakordoni bot: add our bot to your channel, no token needed.

## Готові шаблони

- **Коли:** Щоп’ятниці о 18:00 → публікувати заборони на вихідні для вибраних країн (`weekend_bans`)

- **Коли:** На моєму маршруті з’являється нове перекриття дороги → публікувати його в канал (Скоро) (`closure_new`)

- **Коли:** Черга на кордоні довша за N годин → публікувати попередження (Скоро) (`border_queue`)

- **Коли:** Завтра день літньої заборони (наприклад, Німеччина, суботи в липні й серпні) → публікувати нагадування (`season_bans`)

- **Коли:** Завтра святкова заборона для вантажівок → публікувати заборони (`holiday_tomorrow`)

- **Коли:** Щодня у ваш час → публікувати заборони на сьогодні й завтра (`daily_digest`)

- **Коли:** На моєму маршруті падає ціна пального → публікувати нову ціну (Скоро) (`fuel_drop`)

## Image cards (8 types)

Picture posts made by our Media Generator, with a short caption. Same image sizes, themes and 25 languages as /media. Set them up in the bot: /settings → Image cards → type → parameters → language → trigger → Draft or Auto.

| Card | Family | What it shows |
|---|---|---|
| `crossing` | Border queue | Live queue at one crossing, with the typical queue for this hour. |
| `corridor` | Border queue | Queue table for one direction: every crossing, longest wait first. |
| `forecast` | Border queue | Queue forecast for one crossing: next 6 h, 24 h or 7 days, with peak and lowest. |
| `whentogo` | Border queue | Best time to cross: typical queue by weekday and hour. |
| `ban_country` | Truck bans | One country: truck ban windows today, tomorrow and at the weekend, with the holiday reason. |
| `ban_weekend` | Truck bans | Several countries (you pick them): truck bans for the coming weekend in one table. |
| `ban_holiday` | Truck bans | Truck bans on public holidays in the next 7 or 14 days. |
| `ban_summer_de` | Truck bans | Germany: summer Saturday truck bans for the season dates. |

### Image card triggers

- `schedule` — every day, on one weekday, or every 2 hours, at the time you set (channel time zone). All cards.
- `level_change` — when the queue level at the crossing changes (free / busy / heavy / closed). Queue cards only. The first reading is the baseline; a minimum interval per plan applies.
- `ban_tomorrow` — the day before a truck ban, at the time you set; once per channel and date. Ban cards only.
- Draft mode sends the card to you first (Publish / Edit / Skip); Auto mode posts it to the channel.

## Підключення крок за кроком

1. **Обліковий запис** — Щоб підключити канал, зареєструйтеся або увійдіть. Достатньо безкоштовного акаунта розробника. https://nakordoni.eu/uk/developers/signup?next=integrations-telegram

2. **Підключіть застосунок** — Найшвидший спосіб: додайте нашого бота у свій канал. Пости надходять від вашого власного бота. Створіть його в @BotFather і вставте токен.

3. **Канал** — Telegram відкриє нашого бота. Натисніть Start, потім «Додати в мій канал», виберіть канал і дайте боту лише право «Публікувати повідомлення».

4. **Налаштування** — У боті виберіть країни, теми, мову, час і стиль атрибуції (/settings).

5. **Тест** — Надішліть собі тестовий пост: він прийде як чернетка лише вам.

6. **Увімкнено** — Залиште режим «Чернетка», щоб схвалювати кожен пост (Опублікувати / Редагувати / Пропустити), або перейдіть на «Авто». /pause і /resume працюють будь-коли.

## Тригери · Дії

- Щоп’ятниці о 18:00
- На моєму маршруті з’являється нове перекриття дороги
- Черга на кордоні довша за N годин
- Завтра день літньої заборони (наприклад, Німеччина, суботи в липні й серпні)
- Завтра святкова заборона для вантажівок
- Щодня у ваш час
- На моєму маршруті падає ціна пального

- Публікувати у ваш Telegram-канал
- Спочатку надсилати вам чернетку на схвалення (Опублікувати / Змінити / Пропустити)
- Публікувати від імені вашого бота (токен від @BotFather)

## Plan limits

| | Explorer | Student | Starter | Business | Other paid plans |
|---|---|---|---|---|---|
| Channels | 1 | 1 | 3 | 50 | 10 |
| Text posts per channel per day | 3 | 3 | 12 | 48 | 24 |
| Own bots | 1 | 1 | 1 | 10 | 3 |
| Attribution can be off | no | no | yes | yes | yes |
| Image cards per channel per day | 4 | 4 | 8 | 48 | 24 |
| Image cards per account per day | 4 | 6 | 24 | 600 | 120 |
| Queue-level card: minimum interval (min) | 60 | 60 | 30 | 15 | 20 |
| Queue-level cards per channel per day | 2 | 2 | 4 | 16 | 8 |

Image cards are counted separately from text posts. Free plans: Explorer and Student.

## Атрибуція

Кожен пост містить одне видиме посилання на відповідну сторінку Nakordoni у вибраному вами стилі: A1 посилання внизу, A2 кнопка під постом, A3 мітка джерела, A4 водяний знак на зображеннях мапи, A5 ваш текст зі словом «nakordoni», A6 згадка в описі каналу або закріпленому пості.

| Style | What the post shows |
|---|---|
| A1 | Footer line «Data: nakordoni.eu» with a link (top or bottom). Default. |
| A2 | Inline button under the post that opens the Nakordoni map page. |
| A3 | Source tag «nakordoni ·» with a link before or after the text. |
| A4 | Watermark on our image card. Only for posts with our image; text posts fall back to A1. |
| A5 | Your own short text (up to 60 characters) that contains «nakordoni», linked to our page. Invalid text falls back to A1. |
| A6 | Channel-level credit: a nakordoni.eu link in the channel description or a pinned post; posts stay clean. |

Free plan: attribution is required (you choose the style). Paid plans may choose «none». Position (top / bottom) is selectable for A1, A3 and A5.

### Where the link goes

The link goes to our matching topic page in the post language, never the home page. UTM: utm_source=telegram, utm_medium=<product>, utm_campaign=<account>. If the page does not exist in that language, the English page is used.

- Truck bans (several countries): `https://nakordoni.eu/{lang}/for_truck_drivers/traffic_bans`
- Truck bans, one country: `https://nakordoni.eu/{lang}/for_truck_drivers/traffic_bans/{country}` (germany, czech-republic, …)
- Germany summer Saturday bans: `https://nakordoni.eu/{lang}/for_truck_drivers/summer_bans_germany`
- Border queue cards: the public page of that crossing or direction.

## Logo on image cards (paid plans)

- Nakordoni logo: default, and the only option on the free plan.
- Your own logo (paid plans): upload PNG, JPEG or WebP in the dashboard (no SVG, up to 1 MB); we re-encode it on our server.
- No logo (paid plans).
- On the Media Generator page, «Own logo» and «No logo» are for downloads only. Embed links always show the Nakordoni logo.
- The logo choice does not change the attribution rules above.

## While your country application is under review

Вашу заявку щодо країн розглядають. Ви вже можете працювати: використовуйте свій API-ключ, Sandbox, віджети, Home Assistant, Telegram або будь-яку інтеграцію. Поки ми розглядаємо заявку, додаткових обмежень немає — звичайні ліміти вашого тарифу залишаються такими самими.

## Свій бот

Хочете, щоб пости йшли від вашого бота? Створіть його в @BotFather і підключіть токен у кабінеті. https://nakordoni.eu/uk/developers/dashboard#tg-bot-token

## Links

- Page: https://nakordoni.eu/uk/developers/integrations/telegram
- Зареєструватися безкоштовно: https://nakordoni.eu/uk/developers/signup?next=integrations-telegram
- All integrations: https://nakordoni.eu/api/v1/integrations.md
