Connection string
All checks were successful
Local Deploy with Docker / build-and-deploy (push) Successful in 28s

This commit is contained in:
Dmitrii Prokudin 2024-12-25 21:39:36 +03:00
parent e1d843db03
commit 424dd5fb8f

View File

@ -11,7 +11,7 @@ using Npgsql;
class Program
{
private static string botToken = "7814259349:AAEasTnDpX5s5PrQcR5ihI9pOsmp2Ocv-m0"; // Укажите токен вашего бота
private static string connectionString = "Host=127.0.0.1;Port=5432;Database=telegram_bot;Username=postgres;Password=postgres";
private static string connectionString = "Host=host.docker.internal;Port=5432;Database=telegram_bot;Username=postgres;Password=postgres";
private static readonly TelegramBotClient botClient = new TelegramBotClient(botToken);