-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
59 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Console.Advanced; | ||
|
||
public class BotConfiguration | ||
{ | ||
public string BotToken { get; init; } = default!; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
using Telegram.Bot.Abstract; | ||
using Console.Advanced.Abstract; | ||
|
||
namespace Telegram.Bot.Services; | ||
namespace Console.Advanced.Services; | ||
|
||
// Compose Polling and ReceiverService implementations | ||
public class PollingService : PollingServiceBase<ReceiverService> | ||
{ | ||
public PollingService(IServiceProvider serviceProvider, ILogger<PollingService> logger) | ||
: base(serviceProvider, logger) | ||
{ | ||
} | ||
} | ||
public class PollingService(IServiceProvider serviceProvider, ILogger<PollingService> logger) | ||
: PollingServiceBase<ReceiverService>(serviceProvider, logger); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
using Telegram.Bot.Abstract; | ||
using Console.Advanced.Abstract; | ||
using Telegram.Bot; | ||
|
||
namespace Telegram.Bot.Services; | ||
namespace Console.Advanced.Services; | ||
|
||
// Compose Receiver and UpdateHandler implementation | ||
public class ReceiverService : ReceiverServiceBase<UpdateHandler> | ||
{ | ||
public ReceiverService( | ||
ITelegramBotClient botClient, | ||
UpdateHandler updateHandler, | ||
ILogger<ReceiverServiceBase<UpdateHandler>> logger) | ||
: base(botClient, updateHandler, logger) | ||
{ | ||
} | ||
} | ||
public class ReceiverService(ITelegramBotClient botClient, UpdateHandler updateHandler, ILogger<ReceiverServiceBase<UpdateHandler>> logger) | ||
: ReceiverServiceBase<UpdateHandler>(botClient, updateHandler, logger); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using Telegram.Bot; | ||
using Webhook.Controllers; | ||
|
||
var builder = WebApplication.CreateBuilder(args); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters