mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
Formatting
This commit is contained in:
parent
878eef6485
commit
73e1802cb4
@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Extensions.Options;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Dapper;
|
||||
@ -51,7 +51,7 @@ namespace JetHerald
|
||||
" FROM topic t " +
|
||||
" LEFT JOIN topic_chat tc ON t.TopicId = tc.TopicId AND tc.ChatId = @chatId " +
|
||||
" WHERE ReadToken = @token",
|
||||
new { token, chatId});
|
||||
new { token, chatId });
|
||||
}
|
||||
|
||||
public async Task<Topic> CreateTopic(long userId, string name, string descr)
|
||||
|
||||
@ -33,7 +33,7 @@ namespace JetHerald
|
||||
if (Config.UseProxy)
|
||||
{
|
||||
var httpProxy = new WebProxy(Config.ProxyUrl)
|
||||
{ Credentials = new NetworkCredential(Config.ProxyLogin, Config.ProxyPassword) };
|
||||
{ Credentials = new NetworkCredential(Config.ProxyLogin, Config.ProxyPassword) };
|
||||
Client = new TelegramBotClient(Config.ApiKey, httpProxy);
|
||||
}
|
||||
else
|
||||
@ -78,7 +78,7 @@ namespace JetHerald
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.LogError(e, "Exception occured during handling of command: "+ msg.Text);
|
||||
Log.LogError(e, "Exception occured during handling of command: " + msg.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user