Глава 14Chapter 14

Telegram-бот и техподдержкаTelegram bot and support

Свой Telegram-бот присылает уведомления и отчёт за день, показывает позиции и результаты и предупреждает, если Феникс перестал отвечать. Техподдержка — прямо из программы.Your own Telegram bot sends notifications and a daily report, shows positions and results and warns you if Phoenix stopped responding. Support — right from the program.

Telegram-ботTelegram bot

Где:Where: Настройки → Программа → Telegram-ботSettings → Program → Telegram bot
Telegram-бот
Рис. 14.1. Telegram-бот подключён (имя бота, аккаунт и названия прокси — для примера).Fig. 14.1. The Telegram bot is connected (bot name, account and proxy names are examples).

Как создать и подключить ботаHow to create and connect the bot

  1. В Telegram найдите @BotFather (с синей галочкой) и нажмите «Запустить».In Telegram find @BotFather (with a blue tick) and press “Start”.
  2. Отправьте ему /newbot. Имя — любое, например «Мой Феникс». Адрес — латиницей, в конце «bot», например my_phoenix_123_bot.Send it /newbot. Any name, e.g. “My Phoenix”. The address — in Latin letters ending with “bot”, e.g. my_phoenix_123_bot.
  3. BotFather пришлёт токен — строку вида 123456789:AAH… Скопируйте её целиком.BotFather sends a token — a string like 123456789:AAH… Copy all of it.
  4. В Фениксе в карточке «Telegram-бот» нажмите «Вставить». «Бот включён» отметится сам, «Состояние» должно стать «работает».In Phoenix, in the “Telegram bot” card press “Paste”. “Bot on” ticks by itself, “State” should become “working”.
  5. «Привязка аккаунта» → «Получить код»: появятся 6 цифр на 10 минут. Откройте своего бота, нажмите Start и отправьте ему эти цифры. Бот ответит «Привязано» — теперь он отвечает только вам.“Account link” → “Get code”: 6 digits appear for 10 minutes. Open your bot, press Start and send it these digits. The bot replies “Linked” — now it answers only you.
  6. Задайте PIN (4–8 цифр): без него бот не включает и не выключает алгоритмы и не меняет пресеты. 5 ошибок — блокировка на 15 минут.Set a PIN (4–8 digits): without it the bot does not turn algorithms on or off and does not change presets. 5 mistakes — a 15-minute block.
  7. Выберите уведомления и время отчёта. Кнопки бота — внизу чата: Алгоритмы EMBER, Результаты, Позиции, Скрин, Ретро, Уведомления.Choose notifications and the report time. The bot's buttons are at the bottom of the chat: Algorithms EMBER, Results, Positions, Screenshot, Retro, Notifications.
  • Связь с Telegram — «авто» (если Telegram не открывается напрямую, программа сама пробует ваши прокси), напрямую или через выбранный прокси.Connection to Telegram — “auto” (if Telegram does not open directly, the program tries your proxies itself), direct or through a chosen proxy.
  • Уведомления: алгоритм выключился (и почему), исполнения заявок, ошибки ключей и бирж, обрывы связи, отчёт за день в заданное время (PnL алгоритмов, работающие алгоритмы, счета); «Отчёт сейчас».Notifications: an algorithm stopped (and why), order fills, key and exchange errors, connection drops, a daily report at the set time (algorithm PnL, running algorithms, accounts); “Report now”.
  • Феникс не отвечает — программа каждую минуту шлёт серверу Феникса «жив». Если сигнал пропал (компьютер выключился, завис, пропал интернет), сервер пишет в ваш чат через вашего бота через 3, 5, 10 или 30 минут. Для этого серверу уходят токен бота и ваш chat id; ключи бирж — нет. Обычное закрытие программы — без тревоги.Phoenix not responding — every minute the program sends the Phoenix server “alive”. If the signal stops (computer off, frozen, internet lost), the server writes to your chat via your bot after 3, 5, 10 or 30 minutes. For this the server receives the bot token and your chat id; exchange keys — no. A normal program exit — no alarm.
БезопасностьSecurityТокен хранится только на этом компьютере (зашифрован Windows), ключи бирж в Telegram не уходят. Токен никому не показывайте; если он утёк — в @BotFather отправьте /revoke и вставьте новый. Один бот — на один компьютер.The token is kept only on this computer (encrypted by Windows), exchange keys never go to Telegram. Never show the token; if it leaks — send /revoke to @BotFather and paste the new one. One bot — one computer.

ТехподдержкаSupport

Меню «Техподдержка» — написать разработчику прямо из программы. Ответ придёт в это же окно, а на пункте меню появится красная цифра.The “Support” menu — write to the developer right from the program. The reply comes into the same window, and a red number appears on the menu item.

Техподдержка
Рис. 14.2. Новое обращение в техподдержку (аккаунт Telegram — для примера).Fig. 14.2. A new support request (the Telegram account is an example).
  1. Обращение — «Новое обращение» или одно из прежних (там видна переписка).Request — “New request” or one of the earlier ones (with the conversation).
  2. Опишите, что произошло: что делали, что ожидали, что получилось и примерно когда. Если касается биржи или монеты — укажите их.Describe what happened: what you did, what you expected, what you got and roughly when. If it concerns an exchange or a coin — name them.
  3. Журнал — за какое время приложить журнал программы. В журнале нет ключей и паролей.Log — for what period to attach the program log. The log contains no keys or passwords.
  4. Связь с сервером — напрямую или через ваш прокси. «Отправить» — окно закроется, ход отправки виден на пункте «Техподдержка».Connection to the server — direct or through your proxy. “Send” — the window closes, the sending progress shows on the “Support” item.
  5. Привязать Telegram — ответы поддержки будут приходить и в Telegram. Нажмите, откроется ссылка (действует 15 минут), нажмите «Старт» в Telegram. «Отвязать Telegram» — отменить.Link Telegram — support replies also come to Telegram. Press it, a link opens (valid 15 minutes), press “Start” in Telegram. “Unlink Telegram” — cancel.
ЕщёAlsoПочта поддержки — [email protected]. Официальный сайт — только phoenixsoftware.app; других сайтов, WhatsApp и продавцов у нас нет.Support email — [email protected]. The official site is only phoenixsoftware.app; we have no other sites, WhatsApp or resellers.