* Encapsulated "reply" and "respond" methods into extension methods for the container class

This commit is contained in:
2025-08-01 14:02:01 +04:00
parent 49310439e0
commit 6ea58b24da
2 changed files with 97 additions and 8 deletions
+8 -8
View File
@@ -57,8 +57,8 @@ namespace Telegrator.Handlers
string? businessConnectionId = null,
bool allowPaidBroadcast = false,
CancellationToken cancellationToken = default)
=> await Client.SendMessage(
Input.Chat, text, parseMode, Input,
=> await Container.Reply(
text, parseMode,
replyMarkup, linkPreviewOptions,
messageThreadId, entities,
disableNotification, protectContent,
@@ -96,8 +96,8 @@ namespace Telegrator.Handlers
string? businessConnectionId = null,
bool allowPaidBroadcast = false,
CancellationToken cancellationToken = default)
=> await Client.SendMessage(
Input.Chat, text, parseMode, replyParameters,
=> await Container.Responce(
text, parseMode, replyParameters,
replyMarkup, linkPreviewOptions,
messageThreadId, entities,
disableNotification, protectContent,
@@ -140,8 +140,8 @@ namespace Telegrator.Handlers
string? businessConnectionId = null,
bool allowPaidBroadcast = false,
CancellationToken cancellationToken = default)
=> await Client.SendMessage(
Input.Chat, text, parseMode, Input,
=> await Container.Reply(
text, parseMode,
replyMarkup, linkPreviewOptions,
messageThreadId, entities,
disableNotification, protectContent,
@@ -179,8 +179,8 @@ namespace Telegrator.Handlers
string? businessConnectionId = null,
bool allowPaidBroadcast = false,
CancellationToken cancellationToken = default)
=> await Client.SendMessage(
Input.Chat, text, parseMode, replyParameters,
=> await Container.Responce(
text, parseMode, replyParameters,
replyMarkup, linkPreviewOptions,
messageThreadId, entities,
disableNotification, protectContent,