ConnectionString
All checks were successful
Local Deploy with Docker / build-and-deploy (push) Successful in 19s

This commit is contained in:
Dmitrii Prokudin 2024-12-25 21:37:15 +03:00
parent 0534e453a9
commit e1d843db03

View File

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