예제 #1
0
        public void ReplyEcho(string str, EchoOptions echoOptions = null)
        {
            switch (Update.Type)
            {
            case UpdateType.MessageUpdate:
                Echo(str, Update.Message.MessageId, echoOptions);
                break;

            case UpdateType.CallbackQueryUpdate:
                _apiChat.ReplyQuery(str, Update.CallbackQuery.Id);
                //Update.CallbackQuery.Id
                break;

            default:
                throw new InvalidOperationException("Message you are trying to reply to unsupported message");
            }
        }