Пример #1
0
        private async Task ProcessDirectMessageAsync(Message message)
        {
            var messageToClient = message.Type == MessageType.Text
                ? _settings.Messages.DirectPhrases.GetRandom()
                : _settings.Messages.NonTextDirectMessage;

            Notificator.DirectTextMessage(message, messageToClient);

            await _client.SendTextMessageAsync(message.Chat.Id, messageToClient);
        }