Update to Telegram Bot Framework 2.0

This commit is contained in:
Andriy
2023-07-29 01:50:28 +03:00
parent 5d06529c92
commit 0677060429
24 changed files with 86 additions and 47 deletions
+5 -3
View File
@@ -27,8 +27,9 @@ namespace UserGroupTag
_db = db;
_userCache = userCache;
}
[ParametrizedCommand(InChat.Public, "add_group", CommandParseMode.Both)]
[InChat(InChat.Public)]
[ParametrizedCommand("add_group", CommandParseMode.Both)]
public async Task HandleAddGroup(string groupName)
{
// var groupName = group.Text;
@@ -63,7 +64,8 @@ namespace UserGroupTag
parseMode: ParseMode.Html);
}
[ParametrizedCommand(InChat.Public, "tag_group", CommandParseMode.Both)]
[InChat(InChat.Public)]
[ParametrizedCommand("tag_group", CommandParseMode.Both)]
public async Task HandleTagGroup(string groupName)
{
if (string.IsNullOrEmpty(groupName))