mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Update to Telegram Bot Framework 2.0
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user