Skip to content

Commit

Permalink
feat(Menu): add a new function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenonEl committed Jan 18, 2025
1 parent bb64c26 commit 6ff95f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TelegramBot/Menu/Contacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ public static async Task AddContact(ITelegramBotClient botClient, Update update,
await Utils.Utils.SendMessage(botClient, update, KeyboardUtils.GetReturnButtonMarkup(), cancellationToken, Config.GetResourceString("SpecifyContactLink"));
}

public static async Task DeleteContact(ITelegramBotClient botClient, Update update, long chatId)
{
Message statusMessage = await botClient.SendMessage(update.CallbackQuery!.Message!.Chat.Id, "Укажите айди контактов для удаления:", cancellationToken: cancellationToken);
TelegramBot.userStates[chatId] = new ProcessRemoveUser(statusMessage);
}

public static async Task MuteUserContact(ITelegramBotClient botClient, Update update, long chatId)
{
await botClient.SendMessage(update.CallbackQuery!.Message!.Chat.Id, Config.GetResourceString("MuteUserInstructions"), cancellationToken: cancellationToken);
Expand Down

0 comments on commit 6ff95f2

Please sign in to comment.