---
source: src/types/tests/reply.rs
expression: "ReplyMarkup::from(ReplyKeyboardMarkup::from(vec![row.clone()]).with_is_persistent(true).with_one_time_keyboard(true).with_selective(true).with_resize_keyboard(true).with_input_field_placeholder(\"placeholder\"),)"
---
{
  "keyboard": [
    [
      {
        "text": "test",
        "icon_custom_emoji_id": "test",
        "style": "danger"
      },
      {
        "text": "request contact",
        "style": "primary",
        "request_contact": true
      },
      {
        "text": "request chat 1",
        "style": "success",
        "request_chat": {
          "request_id": 1,
          "chat_is_channel": true
        }
      },
      {
        "text": "request chat 2",
        "request_chat": {
          "request_id": 1,
          "chat_is_channel": false,
          "bot_administrator_rights": {
            "can_change_info": true,
            "can_delete_messages": true,
            "can_delete_stories": true,
            "can_edit_messages": true,
            "can_edit_stories": true,
            "can_invite_users": true,
            "can_manage_chat": true,
            "can_manage_direct_messages": true,
            "can_manage_tags": true,
            "can_manage_topics": true,
            "can_manage_video_chats": true,
            "can_pin_messages": true,
            "can_post_messages": true,
            "can_post_stories": true,
            "can_promote_members": true,
            "can_restrict_members": true,
            "is_anonymous": true
          },
          "bot_is_member": true,
          "chat_is_created": true,
          "chat_is_forum": true,
          "chat_has_username": true,
          "request_photo": true,
          "request_title": true,
          "request_username": true,
          "user_administrator_rights": {
            "can_change_info": true,
            "can_delete_messages": true,
            "can_delete_stories": true,
            "can_edit_messages": true,
            "can_edit_stories": true,
            "can_invite_users": true,
            "can_manage_chat": true,
            "can_manage_direct_messages": true,
            "can_manage_tags": true,
            "can_manage_topics": true,
            "can_manage_video_chats": true,
            "can_pin_messages": true,
            "can_post_messages": true,
            "can_post_stories": true,
            "can_promote_members": true,
            "can_restrict_members": true,
            "is_anonymous": true
          }
        }
      },
      {
        "text": "request location",
        "request_location": true
      },
      {
        "text": "request managed bot",
        "request_managed_bot": {
          "request_id": 1
        }
      },
      {
        "text": "request managed bot with name",
        "request_managed_bot": {
          "request_id": 1,
          "suggested_name": "test"
        }
      },
      {
        "text": "request managed bot with username",
        "request_managed_bot": {
          "request_id": 1,
          "suggested_username": "test"
        }
      },
      {
        "text": "request managed bot with name and username",
        "request_managed_bot": {
          "request_id": 1,
          "suggested_name": "test name",
          "suggested_username": "test username"
        }
      },
      {
        "text": "request quiz",
        "request_poll": {
          "type": "quiz"
        }
      },
      {
        "text": "request regular poll",
        "request_poll": {
          "type": "regular"
        }
      },
      {
        "text": "request any poll",
        "request_poll": {}
      },
      {
        "text": "request user 1",
        "request_users": {
          "request_id": 1
        }
      },
      {
        "text": "request user 2",
        "request_users": {
          "request_id": 1,
          "max_quantity": 2,
          "request_name": true,
          "request_photo": true,
          "request_username": true,
          "user_is_bot": true,
          "user_is_premium": true
        }
      },
      {
        "text": "web app",
        "web_app": {
          "url": "https://example.com"
        }
      }
    ]
  ],
  "one_time_keyboard": true,
  "resize_keyboard": true,
  "selective": true,
  "input_field_placeholder": "placeholder",
  "is_persistent": true
}
