Add Arch package and prebuilt TDLib support

This commit is contained in:
2026-04-24 13:49:16 +03:00
parent 4910fb5e8e
commit 89772e74b1
5 changed files with 125 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
#include <curses.h>
#include "build_config.h"
#include "util.h"
namespace telegram_tui {
@@ -19,6 +20,12 @@ App::App() {
const StoredConfig config = load_app_config();
api_id_ = get_env("TELEGRAM_API_ID");
api_hash_ = get_env("TELEGRAM_API_HASH");
if (api_id_.empty()) {
api_id_ = TELEGRAM_TUI_BUILD_API_ID;
}
if (api_hash_.empty()) {
api_hash_ = TELEGRAM_TUI_BUILD_API_HASH;
}
if (api_id_.empty()) {
api_id_ = config.api_id;
}