public void Parse(HttpData httpData, string key)
 {
     httpData.Parameters.Add(key, Json.Encode(new
     {
         hide_keyboard = HideKeyboard,
         selective = Selective
     }));
 }
 public void Parse(HttpData httpData, string key)
 {
     httpData.Parameters.Add(key, Json.Encode(new
     {
         force_reply = ForceReply,
         selective = Selective
     }));
 }
 public void Parse(HttpData httpData, string key)
 {
     httpData.Parameters.Add(key, Json.Encode(new
     {
         keyboard = Keyboard,
         resize_keyboard = ResizeKeyboard,
         one_time_keyboard = OneTimeKeyboard,
         selective = Selective
     }));
 }
        public void Parse(HttpData httpData, string key)
        {
            switch (InputFileType)
            {
                case InputFileTypes.String:
                    httpData.Parameters.Add(key, FileId);
                    break;

                case InputFileTypes.File:
                    httpData.Files.Add(key, FileExtension, File);
                    break;
            }
        }
        public void Parse(HttpData httpData, string key)
        {
            switch (ReplyMarkupType)
            {
                case ReplyMarkupTypes.ReplyKeyboardMarkup:
                    ReplyMarkupReplyKeyboardMarkup.Parse(httpData, key);
                    break;

                case ReplyMarkupTypes.ReplyKeyboardHide:
                    ReplyMarkupReplyKeyboardHide.Parse(httpData, key);
                    break;

                case ReplyMarkupTypes.ForceReply:
                    ReplyMarkupForceReply.Parse(httpData, key);
                    break;
            }
        }
        public HttpData Parse()
        {
            var httpData = new HttpData
            {
                Parameters = new HttpParameterList
                {
                    {"chat_id", ChatId}
                }
            };

            if (Action != null)
            {
                Action.Parse(httpData, "action");
            }

            return httpData;
        }
        public HttpData Parse()
        {
            var httpData = new HttpData
            {
                Parameters = new HttpParameterList
                {
                    {"chat_id", ChatId},
                    {"latitude", Latitude},
                    {"longitude", Longitude},
                    {"reply_to_message_id", ReplyToMessageId}
                }
            };

            if (ReplyMarkup != null)
            {
                ReplyMarkup.Parse(httpData, "reply_markup");
            }

            return httpData;
        }
        public HttpData Parse()
        {
            var httpData = new HttpData
            {
                Parameters = new HttpParameterList
                {
                    {"chat_id", ChatId},
                    {"text", Text},
                    {"disable_web_page_preview", DisableWebPagePreview},
                    {"reply_to_message_id", ReplyToMessageId}
                }
            };

            if (ReplyMarkup != null)
            {
                ReplyMarkup.Parse(httpData, "reply_markup");
            }

            return httpData;
        }
        public void Parse(HttpData httpData, string key)
        {
            string action = null;

            switch (Action)
            {
                case Actions.Typing:
                    action = "typing";
                    break;

                case Actions.UploadPhoto:
                    action = "upload_photo";
                    break;

                case Actions.RecordVideo:
                    action = "record_video";
                    break;

                case Actions.UploadVideo:
                    action = "upload_video";
                    break;

                case Actions.RecordAudio:
                    action = "record_audio";
                    break;

                case Actions.UploadAudio:
                    action = "upload_audio";
                    break;

                case Actions.UploadDocument:
                    action = "upload_document";
                    break;

                case Actions.FindLocation:
                    action = "find_location";
                    break;
            }

            httpData.Parameters.Add(key, action);
        }
        public HttpData Parse()
        {
            var httpData = new HttpData
            {
                Parameters = new HttpParameterList
                {
                    {"chat_id", ChatId},
                    {"reply_to_message_id", ReplyToMessageId}
                }
            };

            if (Sticker != null)
            {
                Sticker.Parse(httpData, "sticker");
            }
            if (ReplyMarkup != null)
            {
                ReplyMarkup.Parse(httpData, "reply_markup");
            }

            return httpData;
        }
        public HttpData Parse()
        {
            var httpData = new HttpData
            {
                Parameters = new HttpParameterList
                {
                    {"chat_id", ChatId},
                    {"caption", Caption},
                    {"reply_to_message_id", ReplyToMessageId}
                }
            };

            if (Photo != null)
            {
                Photo.Parse(httpData, "photo");
            }
            if (ReplyMarkup != null)
            {
                ReplyMarkup.Parse(httpData, "reply_markup");
            }

            return httpData;
        }