Documentation
¶
Index ¶
- type AnswerInlineQueryBadRequest
- type AnswerInlineQueryEnhanceYourCalm
- type AnswerInlineQueryForbidden
- type AnswerInlineQueryInternalServerError
- type AnswerInlineQueryNotFound
- type AnswerInlineQueryOK
- type AnswerInlineQueryParams
- func NewAnswerInlineQueryParams() *AnswerInlineQueryParams
- func NewAnswerInlineQueryParamsWithContext(ctx context.Context) *AnswerInlineQueryParams
- func NewAnswerInlineQueryParamsWithHTTPClient(client *http.Client) *AnswerInlineQueryParams
- func NewAnswerInlineQueryParamsWithTimeout(timeout time.Duration) *AnswerInlineQueryParams
- func (o *AnswerInlineQueryParams) SetBody(body *models.AnswerInlineQueryBody)
- func (o *AnswerInlineQueryParams) SetContext(ctx context.Context)
- func (o *AnswerInlineQueryParams) SetHTTPClient(client *http.Client)
- func (o *AnswerInlineQueryParams) SetTimeout(timeout time.Duration)
- func (o *AnswerInlineQueryParams) SetToken(token *string)
- func (o *AnswerInlineQueryParams) WithBody(body *models.AnswerInlineQueryBody) *AnswerInlineQueryParams
- func (o *AnswerInlineQueryParams) WithContext(ctx context.Context) *AnswerInlineQueryParams
- func (o *AnswerInlineQueryParams) WithHTTPClient(client *http.Client) *AnswerInlineQueryParams
- func (o *AnswerInlineQueryParams) WithTimeout(timeout time.Duration) *AnswerInlineQueryParams
- func (o *AnswerInlineQueryParams) WithToken(token *string) *AnswerInlineQueryParams
- func (o *AnswerInlineQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AnswerInlineQueryReader
- type AnswerInlineQueryUnauthorized
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerInlineQueryBadRequest ¶
AnswerInlineQueryBadRequest handles this case with default header values.
Bad Request
func NewAnswerInlineQueryBadRequest ¶
func NewAnswerInlineQueryBadRequest() *AnswerInlineQueryBadRequest
NewAnswerInlineQueryBadRequest creates a AnswerInlineQueryBadRequest with default headers values
func (*AnswerInlineQueryBadRequest) Error ¶
func (o *AnswerInlineQueryBadRequest) Error() string
type AnswerInlineQueryEnhanceYourCalm ¶
AnswerInlineQueryEnhanceYourCalm handles this case with default header values.
Flood
func NewAnswerInlineQueryEnhanceYourCalm ¶
func NewAnswerInlineQueryEnhanceYourCalm() *AnswerInlineQueryEnhanceYourCalm
NewAnswerInlineQueryEnhanceYourCalm creates a AnswerInlineQueryEnhanceYourCalm with default headers values
func (*AnswerInlineQueryEnhanceYourCalm) Error ¶
func (o *AnswerInlineQueryEnhanceYourCalm) Error() string
type AnswerInlineQueryForbidden ¶
AnswerInlineQueryForbidden handles this case with default header values.
Forbidden
func NewAnswerInlineQueryForbidden ¶
func NewAnswerInlineQueryForbidden() *AnswerInlineQueryForbidden
NewAnswerInlineQueryForbidden creates a AnswerInlineQueryForbidden with default headers values
func (*AnswerInlineQueryForbidden) Error ¶
func (o *AnswerInlineQueryForbidden) Error() string
type AnswerInlineQueryInternalServerError ¶
AnswerInlineQueryInternalServerError handles this case with default header values.
Internal
func NewAnswerInlineQueryInternalServerError ¶
func NewAnswerInlineQueryInternalServerError() *AnswerInlineQueryInternalServerError
NewAnswerInlineQueryInternalServerError creates a AnswerInlineQueryInternalServerError with default headers values
func (*AnswerInlineQueryInternalServerError) Error ¶
func (o *AnswerInlineQueryInternalServerError) Error() string
type AnswerInlineQueryNotFound ¶
AnswerInlineQueryNotFound handles this case with default header values.
Not Found
func NewAnswerInlineQueryNotFound ¶
func NewAnswerInlineQueryNotFound() *AnswerInlineQueryNotFound
NewAnswerInlineQueryNotFound creates a AnswerInlineQueryNotFound with default headers values
func (*AnswerInlineQueryNotFound) Error ¶
func (o *AnswerInlineQueryNotFound) Error() string
type AnswerInlineQueryOK ¶
type AnswerInlineQueryOK struct {
Payload *models.ResponseBool
}
AnswerInlineQueryOK handles this case with default header values.
AnswerInlineQueryOK answer inline query o k
func NewAnswerInlineQueryOK ¶
func NewAnswerInlineQueryOK() *AnswerInlineQueryOK
NewAnswerInlineQueryOK creates a AnswerInlineQueryOK with default headers values
func (*AnswerInlineQueryOK) Error ¶
func (o *AnswerInlineQueryOK) Error() string
type AnswerInlineQueryParams ¶
type AnswerInlineQueryParams struct { /*Body*/ Body *models.AnswerInlineQueryBody /*Token bot's token to authorize the request */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AnswerInlineQueryParams contains all the parameters to send to the API endpoint for the answer inline query operation typically these are written to a http.Request
func NewAnswerInlineQueryParams ¶
func NewAnswerInlineQueryParams() *AnswerInlineQueryParams
NewAnswerInlineQueryParams creates a new AnswerInlineQueryParams object with the default values initialized.
func NewAnswerInlineQueryParamsWithContext ¶
func NewAnswerInlineQueryParamsWithContext(ctx context.Context) *AnswerInlineQueryParams
NewAnswerInlineQueryParamsWithContext creates a new AnswerInlineQueryParams object with the default values initialized, and the ability to set a context for a request
func NewAnswerInlineQueryParamsWithHTTPClient ¶
func NewAnswerInlineQueryParamsWithHTTPClient(client *http.Client) *AnswerInlineQueryParams
NewAnswerInlineQueryParamsWithHTTPClient creates a new AnswerInlineQueryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAnswerInlineQueryParamsWithTimeout ¶
func NewAnswerInlineQueryParamsWithTimeout(timeout time.Duration) *AnswerInlineQueryParams
NewAnswerInlineQueryParamsWithTimeout creates a new AnswerInlineQueryParams object with the default values initialized, and the ability to set a timeout on a request
func (*AnswerInlineQueryParams) SetBody ¶
func (o *AnswerInlineQueryParams) SetBody(body *models.AnswerInlineQueryBody)
SetBody adds the body to the answer inline query params
func (*AnswerInlineQueryParams) SetContext ¶
func (o *AnswerInlineQueryParams) SetContext(ctx context.Context)
SetContext adds the context to the answer inline query params
func (*AnswerInlineQueryParams) SetHTTPClient ¶
func (o *AnswerInlineQueryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the answer inline query params
func (*AnswerInlineQueryParams) SetTimeout ¶
func (o *AnswerInlineQueryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the answer inline query params
func (*AnswerInlineQueryParams) SetToken ¶
func (o *AnswerInlineQueryParams) SetToken(token *string)
SetToken adds the token to the answer inline query params
func (*AnswerInlineQueryParams) WithBody ¶
func (o *AnswerInlineQueryParams) WithBody(body *models.AnswerInlineQueryBody) *AnswerInlineQueryParams
WithBody adds the body to the answer inline query params
func (*AnswerInlineQueryParams) WithContext ¶
func (o *AnswerInlineQueryParams) WithContext(ctx context.Context) *AnswerInlineQueryParams
WithContext adds the context to the answer inline query params
func (*AnswerInlineQueryParams) WithHTTPClient ¶
func (o *AnswerInlineQueryParams) WithHTTPClient(client *http.Client) *AnswerInlineQueryParams
WithHTTPClient adds the HTTPClient to the answer inline query params
func (*AnswerInlineQueryParams) WithTimeout ¶
func (o *AnswerInlineQueryParams) WithTimeout(timeout time.Duration) *AnswerInlineQueryParams
WithTimeout adds the timeout to the answer inline query params
func (*AnswerInlineQueryParams) WithToken ¶
func (o *AnswerInlineQueryParams) WithToken(token *string) *AnswerInlineQueryParams
WithToken adds the token to the answer inline query params
func (*AnswerInlineQueryParams) WriteToRequest ¶
func (o *AnswerInlineQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AnswerInlineQueryReader ¶
type AnswerInlineQueryReader struct {
// contains filtered or unexported fields
}
AnswerInlineQueryReader is a Reader for the AnswerInlineQuery structure.
func (*AnswerInlineQueryReader) ReadResponse ¶
func (o *AnswerInlineQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AnswerInlineQueryUnauthorized ¶
type AnswerInlineQueryUnauthorized struct {
}AnswerInlineQueryUnauthorized handles this case with default header values.
Unauthorized
func NewAnswerInlineQueryUnauthorized ¶
func NewAnswerInlineQueryUnauthorized() *AnswerInlineQueryUnauthorized
NewAnswerInlineQueryUnauthorized creates a AnswerInlineQueryUnauthorized with default headers values
func (*AnswerInlineQueryUnauthorized) Error ¶
func (o *AnswerInlineQueryUnauthorized) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for inline API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new inline API client.
func (*Client) AnswerInlineQuery ¶
func (a *Client) AnswerInlineQuery(params *AnswerInlineQueryParams) (*AnswerInlineQueryOK, error)
AnswerInlineQuery answer inline query API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client