using Microsoft.Extensions.Localization; using System.Collections.Generic; using System.Threading.Tasks; using Telegram.Bot.Types; using Telegrator.Handlers; namespace Telegrator.Localized { public static class LocalizedMessageHandlerExtensions { public static async Task ResponseLocalized(this ILocalizedHandler localizedHandler, string localizedReplyIdentifier, params IEnumerable formatArgs) { LocalizedString localizedString = localizedHandler.LocalizationProvider[localizedReplyIdentifier]; localizedHandler.Container.Response(); } } }