Example #1
0
        private void BotOnMessageReceived(object sender, MessageEventArgs messageEventArgs)
        {
            var message = messageEventArgs.Message;

            switch (message?.Type)
            {
            case MessageType.Text:
                executor.ExecuteCommandMessage(message);
                break;

            case MessageType.Photo:
                executor.ExecutePhoto(message);
                break;
            }
        }