Skip to content

Commit

Permalink
Публикация
Browse files Browse the repository at this point in the history
  • Loading branch information
hoplik committed Jun 23, 2024
1 parent 3b9c13e commit 65e5741
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Bot_Funcs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ namespace FirehoseFinder
class Bot_Funcs
{
internal readonly long channel = -1001227261414;
internal static ITelegramBotClient _botClient;
internal static ITelegramBotClient _botClient = new TelegramBotClient(Resources.bot);
// Это объект с настройками работы бота. Здесь мы будем указывать, какие типы Update мы будем получать, Timeout бота и так далее.
private static ReceiverOptions _receiverOptions;
internal static async Task BotWork()
{
_botClient = new TelegramBotClient(Resources.bot);
_receiverOptions = new ReceiverOptions
{
AllowedUpdates = new[] // Тут указываем типы получаемых Update`ов, о них подробнее расказано тут https://core.telegram.org/bots/api#update
Expand Down
2 changes: 1 addition & 1 deletion FirehoseFinder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<AutorunEnabled>true</AutorunEnabled>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>24.6.19.0</ApplicationVersion>
<ApplicationVersion>24.6.24.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("24.6.19.0")]
[assembly: AssemblyFileVersion("24.6.19.0")]
[assembly: AssemblyVersion("24.6.24.0")]
[assembly: AssemblyFileVersion("24.6.24.0")]
[assembly: NeutralResourcesLanguage("ru-RU")]

0 comments on commit 65e5741

Please sign in to comment.