messages

package
v3.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for messages API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new messages API client.

func (*Client) DeleteMessage

func (a *Client) DeleteMessage(params *DeleteMessageParams) (*DeleteMessageOK, error)

DeleteMessage delete message API

func (*Client) EditMessageCaption

func (a *Client) EditMessageCaption(params *EditMessageCaptionParams) (*EditMessageCaptionOK, error)

EditMessageCaption edit message caption API

func (*Client) EditMessageReplyMarkup

func (a *Client) EditMessageReplyMarkup(params *EditMessageReplyMarkupParams) (*EditMessageReplyMarkupOK, error)

EditMessageReplyMarkup edit message reply markup API

func (*Client) EditMessageText

func (a *Client) EditMessageText(params *EditMessageTextParams) (*EditMessageTextOK, error)

EditMessageText edit message text API

func (*Client) ForwardMessage

func (a *Client) ForwardMessage(params *ForwardMessageParams) (*ForwardMessageOK, error)

ForwardMessage forward message API

func (*Client) SendMessage

func (a *Client) SendMessage(params *SendMessageParams) (*SendMessageOK, error)

SendMessage send message API

func (*Client) SendMessageBytes

func (a *Client) SendMessageBytes(params *SendMessageBytesParams) (*SendMessageBytesOK, error)

SendMessageBytes send message bytes API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DeleteMessageBadRequest

type DeleteMessageBadRequest struct {
	Payload *models.Error
}

DeleteMessageBadRequest handles this case with default header values.

Bad Request

func NewDeleteMessageBadRequest

func NewDeleteMessageBadRequest() *DeleteMessageBadRequest

NewDeleteMessageBadRequest creates a DeleteMessageBadRequest with default headers values

func (*DeleteMessageBadRequest) Error

func (o *DeleteMessageBadRequest) Error() string

type DeleteMessageEnhanceYourCalm

type DeleteMessageEnhanceYourCalm struct {
	Payload *models.Error
}

DeleteMessageEnhanceYourCalm handles this case with default header values.

Flood

func NewDeleteMessageEnhanceYourCalm

func NewDeleteMessageEnhanceYourCalm() *DeleteMessageEnhanceYourCalm

NewDeleteMessageEnhanceYourCalm creates a DeleteMessageEnhanceYourCalm with default headers values

func (*DeleteMessageEnhanceYourCalm) Error

type DeleteMessageForbidden

type DeleteMessageForbidden struct {
	Payload *models.Error
}

DeleteMessageForbidden handles this case with default header values.

Forbidden

func NewDeleteMessageForbidden

func NewDeleteMessageForbidden() *DeleteMessageForbidden

NewDeleteMessageForbidden creates a DeleteMessageForbidden with default headers values

func (*DeleteMessageForbidden) Error

func (o *DeleteMessageForbidden) Error() string

type DeleteMessageInternalServerError

type DeleteMessageInternalServerError struct {
	Payload *models.Error
}

DeleteMessageInternalServerError handles this case with default header values.

Internal

func NewDeleteMessageInternalServerError

func NewDeleteMessageInternalServerError() *DeleteMessageInternalServerError

NewDeleteMessageInternalServerError creates a DeleteMessageInternalServerError with default headers values

func (*DeleteMessageInternalServerError) Error

type DeleteMessageNotFound

type DeleteMessageNotFound struct {
	Payload *models.Error
}

DeleteMessageNotFound handles this case with default header values.

Not Found

func NewDeleteMessageNotFound

func NewDeleteMessageNotFound() *DeleteMessageNotFound

NewDeleteMessageNotFound creates a DeleteMessageNotFound with default headers values

func (*DeleteMessageNotFound) Error

func (o *DeleteMessageNotFound) Error() string

type DeleteMessageOK

type DeleteMessageOK struct {
	Payload *models.ResponseBool
}

DeleteMessageOK handles this case with default header values.

DeleteMessageOK delete message o k

func NewDeleteMessageOK

func NewDeleteMessageOK() *DeleteMessageOK

NewDeleteMessageOK creates a DeleteMessageOK with default headers values

func (*DeleteMessageOK) Error

func (o *DeleteMessageOK) Error() string

type DeleteMessageParams

type DeleteMessageParams struct {

	/*ChatID*/
	ChatID string
	/*MessageID*/
	MessageID int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteMessageParams contains all the parameters to send to the API endpoint for the delete message operation typically these are written to a http.Request

func NewDeleteMessageParams

func NewDeleteMessageParams() *DeleteMessageParams

NewDeleteMessageParams creates a new DeleteMessageParams object with the default values initialized.

func NewDeleteMessageParamsWithContext

func NewDeleteMessageParamsWithContext(ctx context.Context) *DeleteMessageParams

NewDeleteMessageParamsWithContext creates a new DeleteMessageParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteMessageParamsWithHTTPClient

func NewDeleteMessageParamsWithHTTPClient(client *http.Client) *DeleteMessageParams

NewDeleteMessageParamsWithHTTPClient creates a new DeleteMessageParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteMessageParamsWithTimeout

func NewDeleteMessageParamsWithTimeout(timeout time.Duration) *DeleteMessageParams

NewDeleteMessageParamsWithTimeout creates a new DeleteMessageParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteMessageParams) SetChatID

func (o *DeleteMessageParams) SetChatID(chatID string)

SetChatID adds the chatId to the delete message params

func (*DeleteMessageParams) SetContext

func (o *DeleteMessageParams) SetContext(ctx context.Context)

SetContext adds the context to the delete message params

func (*DeleteMessageParams) SetHTTPClient

func (o *DeleteMessageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete message params

func (*DeleteMessageParams) SetMessageID

func (o *DeleteMessageParams) SetMessageID(messageID int64)

SetMessageID adds the messageId to the delete message params

func (*DeleteMessageParams) SetTimeout

func (o *DeleteMessageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete message params

func (*DeleteMessageParams) SetToken

func (o *DeleteMessageParams) SetToken(token *string)

SetToken adds the token to the delete message params

func (*DeleteMessageParams) WithChatID

func (o *DeleteMessageParams) WithChatID(chatID string) *DeleteMessageParams

WithChatID adds the chatID to the delete message params

func (*DeleteMessageParams) WithContext

WithContext adds the context to the delete message params

func (*DeleteMessageParams) WithHTTPClient

func (o *DeleteMessageParams) WithHTTPClient(client *http.Client) *DeleteMessageParams

WithHTTPClient adds the HTTPClient to the delete message params

func (*DeleteMessageParams) WithMessageID

func (o *DeleteMessageParams) WithMessageID(messageID int64) *DeleteMessageParams

WithMessageID adds the messageID to the delete message params

func (*DeleteMessageParams) WithTimeout

func (o *DeleteMessageParams) WithTimeout(timeout time.Duration) *DeleteMessageParams

WithTimeout adds the timeout to the delete message params

func (*DeleteMessageParams) WithToken

func (o *DeleteMessageParams) WithToken(token *string) *DeleteMessageParams

WithToken adds the token to the delete message params

func (*DeleteMessageParams) WriteToRequest

func (o *DeleteMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteMessageReader

type DeleteMessageReader struct {
	// contains filtered or unexported fields
}

DeleteMessageReader is a Reader for the DeleteMessage structure.

func (*DeleteMessageReader) ReadResponse

func (o *DeleteMessageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteMessageUnauthorized

type DeleteMessageUnauthorized struct {
	Payload *models.Error
}

DeleteMessageUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteMessageUnauthorized

func NewDeleteMessageUnauthorized() *DeleteMessageUnauthorized

NewDeleteMessageUnauthorized creates a DeleteMessageUnauthorized with default headers values

func (*DeleteMessageUnauthorized) Error

func (o *DeleteMessageUnauthorized) Error() string

type EditMessageCaptionBadRequest

type EditMessageCaptionBadRequest struct {
	Payload *models.Error
}

EditMessageCaptionBadRequest handles this case with default header values.

Bad Request

func NewEditMessageCaptionBadRequest

func NewEditMessageCaptionBadRequest() *EditMessageCaptionBadRequest

NewEditMessageCaptionBadRequest creates a EditMessageCaptionBadRequest with default headers values

func (*EditMessageCaptionBadRequest) Error

type EditMessageCaptionEnhanceYourCalm

type EditMessageCaptionEnhanceYourCalm struct {
	Payload *models.Error
}

EditMessageCaptionEnhanceYourCalm handles this case with default header values.

Flood

func NewEditMessageCaptionEnhanceYourCalm

func NewEditMessageCaptionEnhanceYourCalm() *EditMessageCaptionEnhanceYourCalm

NewEditMessageCaptionEnhanceYourCalm creates a EditMessageCaptionEnhanceYourCalm with default headers values

func (*EditMessageCaptionEnhanceYourCalm) Error

type EditMessageCaptionForbidden

type EditMessageCaptionForbidden struct {
	Payload *models.Error
}

EditMessageCaptionForbidden handles this case with default header values.

Forbidden

func NewEditMessageCaptionForbidden

func NewEditMessageCaptionForbidden() *EditMessageCaptionForbidden

NewEditMessageCaptionForbidden creates a EditMessageCaptionForbidden with default headers values

func (*EditMessageCaptionForbidden) Error

type EditMessageCaptionInternalServerError

type EditMessageCaptionInternalServerError struct {
	Payload *models.Error
}

EditMessageCaptionInternalServerError handles this case with default header values.

Internal

func NewEditMessageCaptionInternalServerError

func NewEditMessageCaptionInternalServerError() *EditMessageCaptionInternalServerError

NewEditMessageCaptionInternalServerError creates a EditMessageCaptionInternalServerError with default headers values

func (*EditMessageCaptionInternalServerError) Error

type EditMessageCaptionNotFound

type EditMessageCaptionNotFound struct {
	Payload *models.Error
}

EditMessageCaptionNotFound handles this case with default header values.

Not Found

func NewEditMessageCaptionNotFound

func NewEditMessageCaptionNotFound() *EditMessageCaptionNotFound

NewEditMessageCaptionNotFound creates a EditMessageCaptionNotFound with default headers values

func (*EditMessageCaptionNotFound) Error

type EditMessageCaptionOK

type EditMessageCaptionOK struct {
	Payload EditMessageCaptionOKBody
}

EditMessageCaptionOK handles this case with default header values.

EditMessageCaptionOK edit message caption o k

func NewEditMessageCaptionOK

func NewEditMessageCaptionOK() *EditMessageCaptionOK

NewEditMessageCaptionOK creates a EditMessageCaptionOK with default headers values

func (*EditMessageCaptionOK) Error

func (o *EditMessageCaptionOK) Error() string

type EditMessageCaptionOKBody

type EditMessageCaptionOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result interface{} `json:"result"`
}

EditMessageCaptionOKBody edit message caption o k body swagger:model EditMessageCaptionOKBody

func (*EditMessageCaptionOKBody) MarshalBinary

func (o *EditMessageCaptionOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditMessageCaptionOKBody) UnmarshalBinary

func (o *EditMessageCaptionOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditMessageCaptionOKBody) Validate

func (o *EditMessageCaptionOKBody) Validate(formats strfmt.Registry) error

Validate validates this edit message caption o k body

type EditMessageCaptionParams

type EditMessageCaptionParams struct {

	/*Body*/
	Body *models.EditMessageCaptionBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EditMessageCaptionParams contains all the parameters to send to the API endpoint for the edit message caption operation typically these are written to a http.Request

func NewEditMessageCaptionParams

func NewEditMessageCaptionParams() *EditMessageCaptionParams

NewEditMessageCaptionParams creates a new EditMessageCaptionParams object with the default values initialized.

func NewEditMessageCaptionParamsWithContext

func NewEditMessageCaptionParamsWithContext(ctx context.Context) *EditMessageCaptionParams

NewEditMessageCaptionParamsWithContext creates a new EditMessageCaptionParams object with the default values initialized, and the ability to set a context for a request

func NewEditMessageCaptionParamsWithHTTPClient

func NewEditMessageCaptionParamsWithHTTPClient(client *http.Client) *EditMessageCaptionParams

NewEditMessageCaptionParamsWithHTTPClient creates a new EditMessageCaptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEditMessageCaptionParamsWithTimeout

func NewEditMessageCaptionParamsWithTimeout(timeout time.Duration) *EditMessageCaptionParams

NewEditMessageCaptionParamsWithTimeout creates a new EditMessageCaptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*EditMessageCaptionParams) SetBody

SetBody adds the body to the edit message caption params

func (*EditMessageCaptionParams) SetContext

func (o *EditMessageCaptionParams) SetContext(ctx context.Context)

SetContext adds the context to the edit message caption params

func (*EditMessageCaptionParams) SetHTTPClient

func (o *EditMessageCaptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the edit message caption params

func (*EditMessageCaptionParams) SetTimeout

func (o *EditMessageCaptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the edit message caption params

func (*EditMessageCaptionParams) SetToken

func (o *EditMessageCaptionParams) SetToken(token *string)

SetToken adds the token to the edit message caption params

func (*EditMessageCaptionParams) WithBody

WithBody adds the body to the edit message caption params

func (*EditMessageCaptionParams) WithContext

WithContext adds the context to the edit message caption params

func (*EditMessageCaptionParams) WithHTTPClient

func (o *EditMessageCaptionParams) WithHTTPClient(client *http.Client) *EditMessageCaptionParams

WithHTTPClient adds the HTTPClient to the edit message caption params

func (*EditMessageCaptionParams) WithTimeout

WithTimeout adds the timeout to the edit message caption params

func (*EditMessageCaptionParams) WithToken

WithToken adds the token to the edit message caption params

func (*EditMessageCaptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EditMessageCaptionReader

type EditMessageCaptionReader struct {
	// contains filtered or unexported fields
}

EditMessageCaptionReader is a Reader for the EditMessageCaption structure.

func (*EditMessageCaptionReader) ReadResponse

func (o *EditMessageCaptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EditMessageCaptionUnauthorized

type EditMessageCaptionUnauthorized struct {
	Payload *models.Error
}

EditMessageCaptionUnauthorized handles this case with default header values.

Unauthorized

func NewEditMessageCaptionUnauthorized

func NewEditMessageCaptionUnauthorized() *EditMessageCaptionUnauthorized

NewEditMessageCaptionUnauthorized creates a EditMessageCaptionUnauthorized with default headers values

func (*EditMessageCaptionUnauthorized) Error

type EditMessageReplyMarkupBadRequest

type EditMessageReplyMarkupBadRequest struct {
	Payload *models.Error
}

EditMessageReplyMarkupBadRequest handles this case with default header values.

Bad Request

func NewEditMessageReplyMarkupBadRequest

func NewEditMessageReplyMarkupBadRequest() *EditMessageReplyMarkupBadRequest

NewEditMessageReplyMarkupBadRequest creates a EditMessageReplyMarkupBadRequest with default headers values

func (*EditMessageReplyMarkupBadRequest) Error

type EditMessageReplyMarkupEnhanceYourCalm

type EditMessageReplyMarkupEnhanceYourCalm struct {
	Payload *models.Error
}

EditMessageReplyMarkupEnhanceYourCalm handles this case with default header values.

Flood

func NewEditMessageReplyMarkupEnhanceYourCalm

func NewEditMessageReplyMarkupEnhanceYourCalm() *EditMessageReplyMarkupEnhanceYourCalm

NewEditMessageReplyMarkupEnhanceYourCalm creates a EditMessageReplyMarkupEnhanceYourCalm with default headers values

func (*EditMessageReplyMarkupEnhanceYourCalm) Error

type EditMessageReplyMarkupForbidden

type EditMessageReplyMarkupForbidden struct {
	Payload *models.Error
}

EditMessageReplyMarkupForbidden handles this case with default header values.

Forbidden

func NewEditMessageReplyMarkupForbidden

func NewEditMessageReplyMarkupForbidden() *EditMessageReplyMarkupForbidden

NewEditMessageReplyMarkupForbidden creates a EditMessageReplyMarkupForbidden with default headers values

func (*EditMessageReplyMarkupForbidden) Error

type EditMessageReplyMarkupInternalServerError

type EditMessageReplyMarkupInternalServerError struct {
	Payload *models.Error
}

EditMessageReplyMarkupInternalServerError handles this case with default header values.

Internal

func NewEditMessageReplyMarkupInternalServerError

func NewEditMessageReplyMarkupInternalServerError() *EditMessageReplyMarkupInternalServerError

NewEditMessageReplyMarkupInternalServerError creates a EditMessageReplyMarkupInternalServerError with default headers values

func (*EditMessageReplyMarkupInternalServerError) Error

type EditMessageReplyMarkupNotFound

type EditMessageReplyMarkupNotFound struct {
	Payload *models.Error
}

EditMessageReplyMarkupNotFound handles this case with default header values.

Not Found

func NewEditMessageReplyMarkupNotFound

func NewEditMessageReplyMarkupNotFound() *EditMessageReplyMarkupNotFound

NewEditMessageReplyMarkupNotFound creates a EditMessageReplyMarkupNotFound with default headers values

func (*EditMessageReplyMarkupNotFound) Error

type EditMessageReplyMarkupOK

type EditMessageReplyMarkupOK struct {
	Payload EditMessageReplyMarkupOKBody
}

EditMessageReplyMarkupOK handles this case with default header values.

EditMessageReplyMarkupOK edit message reply markup o k

func NewEditMessageReplyMarkupOK

func NewEditMessageReplyMarkupOK() *EditMessageReplyMarkupOK

NewEditMessageReplyMarkupOK creates a EditMessageReplyMarkupOK with default headers values

func (*EditMessageReplyMarkupOK) Error

func (o *EditMessageReplyMarkupOK) Error() string

type EditMessageReplyMarkupOKBody

type EditMessageReplyMarkupOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result interface{} `json:"result"`
}

EditMessageReplyMarkupOKBody edit message reply markup o k body swagger:model EditMessageReplyMarkupOKBody

func (*EditMessageReplyMarkupOKBody) MarshalBinary

func (o *EditMessageReplyMarkupOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditMessageReplyMarkupOKBody) UnmarshalBinary

func (o *EditMessageReplyMarkupOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditMessageReplyMarkupOKBody) Validate

func (o *EditMessageReplyMarkupOKBody) Validate(formats strfmt.Registry) error

Validate validates this edit message reply markup o k body

type EditMessageReplyMarkupParams

type EditMessageReplyMarkupParams struct {

	/*Body*/
	Body *models.EditMessageReplyMarkupBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EditMessageReplyMarkupParams contains all the parameters to send to the API endpoint for the edit message reply markup operation typically these are written to a http.Request

func NewEditMessageReplyMarkupParams

func NewEditMessageReplyMarkupParams() *EditMessageReplyMarkupParams

NewEditMessageReplyMarkupParams creates a new EditMessageReplyMarkupParams object with the default values initialized.

func NewEditMessageReplyMarkupParamsWithContext

func NewEditMessageReplyMarkupParamsWithContext(ctx context.Context) *EditMessageReplyMarkupParams

NewEditMessageReplyMarkupParamsWithContext creates a new EditMessageReplyMarkupParams object with the default values initialized, and the ability to set a context for a request

func NewEditMessageReplyMarkupParamsWithHTTPClient

func NewEditMessageReplyMarkupParamsWithHTTPClient(client *http.Client) *EditMessageReplyMarkupParams

NewEditMessageReplyMarkupParamsWithHTTPClient creates a new EditMessageReplyMarkupParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEditMessageReplyMarkupParamsWithTimeout

func NewEditMessageReplyMarkupParamsWithTimeout(timeout time.Duration) *EditMessageReplyMarkupParams

NewEditMessageReplyMarkupParamsWithTimeout creates a new EditMessageReplyMarkupParams object with the default values initialized, and the ability to set a timeout on a request

func (*EditMessageReplyMarkupParams) SetBody

SetBody adds the body to the edit message reply markup params

func (*EditMessageReplyMarkupParams) SetContext

func (o *EditMessageReplyMarkupParams) SetContext(ctx context.Context)

SetContext adds the context to the edit message reply markup params

func (*EditMessageReplyMarkupParams) SetHTTPClient

func (o *EditMessageReplyMarkupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the edit message reply markup params

func (*EditMessageReplyMarkupParams) SetTimeout

func (o *EditMessageReplyMarkupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the edit message reply markup params

func (*EditMessageReplyMarkupParams) SetToken

func (o *EditMessageReplyMarkupParams) SetToken(token *string)

SetToken adds the token to the edit message reply markup params

func (*EditMessageReplyMarkupParams) WithBody

WithBody adds the body to the edit message reply markup params

func (*EditMessageReplyMarkupParams) WithContext

WithContext adds the context to the edit message reply markup params

func (*EditMessageReplyMarkupParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the edit message reply markup params

func (*EditMessageReplyMarkupParams) WithTimeout

WithTimeout adds the timeout to the edit message reply markup params

func (*EditMessageReplyMarkupParams) WithToken

WithToken adds the token to the edit message reply markup params

func (*EditMessageReplyMarkupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EditMessageReplyMarkupReader

type EditMessageReplyMarkupReader struct {
	// contains filtered or unexported fields
}

EditMessageReplyMarkupReader is a Reader for the EditMessageReplyMarkup structure.

func (*EditMessageReplyMarkupReader) ReadResponse

func (o *EditMessageReplyMarkupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EditMessageReplyMarkupUnauthorized

type EditMessageReplyMarkupUnauthorized struct {
	Payload *models.Error
}

EditMessageReplyMarkupUnauthorized handles this case with default header values.

Unauthorized

func NewEditMessageReplyMarkupUnauthorized

func NewEditMessageReplyMarkupUnauthorized() *EditMessageReplyMarkupUnauthorized

NewEditMessageReplyMarkupUnauthorized creates a EditMessageReplyMarkupUnauthorized with default headers values

func (*EditMessageReplyMarkupUnauthorized) Error

type EditMessageTextBadRequest

type EditMessageTextBadRequest struct {
	Payload *models.Error
}

EditMessageTextBadRequest handles this case with default header values.

Bad Request

func NewEditMessageTextBadRequest

func NewEditMessageTextBadRequest() *EditMessageTextBadRequest

NewEditMessageTextBadRequest creates a EditMessageTextBadRequest with default headers values

func (*EditMessageTextBadRequest) Error

func (o *EditMessageTextBadRequest) Error() string

type EditMessageTextEnhanceYourCalm

type EditMessageTextEnhanceYourCalm struct {
	Payload *models.Error
}

EditMessageTextEnhanceYourCalm handles this case with default header values.

Flood

func NewEditMessageTextEnhanceYourCalm

func NewEditMessageTextEnhanceYourCalm() *EditMessageTextEnhanceYourCalm

NewEditMessageTextEnhanceYourCalm creates a EditMessageTextEnhanceYourCalm with default headers values

func (*EditMessageTextEnhanceYourCalm) Error

type EditMessageTextForbidden

type EditMessageTextForbidden struct {
	Payload *models.Error
}

EditMessageTextForbidden handles this case with default header values.

Forbidden

func NewEditMessageTextForbidden

func NewEditMessageTextForbidden() *EditMessageTextForbidden

NewEditMessageTextForbidden creates a EditMessageTextForbidden with default headers values

func (*EditMessageTextForbidden) Error

func (o *EditMessageTextForbidden) Error() string

type EditMessageTextInternalServerError

type EditMessageTextInternalServerError struct {
	Payload *models.Error
}

EditMessageTextInternalServerError handles this case with default header values.

Internal

func NewEditMessageTextInternalServerError

func NewEditMessageTextInternalServerError() *EditMessageTextInternalServerError

NewEditMessageTextInternalServerError creates a EditMessageTextInternalServerError with default headers values

func (*EditMessageTextInternalServerError) Error

type EditMessageTextNotFound

type EditMessageTextNotFound struct {
	Payload *models.Error
}

EditMessageTextNotFound handles this case with default header values.

Not Found

func NewEditMessageTextNotFound

func NewEditMessageTextNotFound() *EditMessageTextNotFound

NewEditMessageTextNotFound creates a EditMessageTextNotFound with default headers values

func (*EditMessageTextNotFound) Error

func (o *EditMessageTextNotFound) Error() string

type EditMessageTextOK

type EditMessageTextOK struct {
	Payload EditMessageTextOKBody
}

EditMessageTextOK handles this case with default header values.

EditMessageTextOK edit message text o k

func NewEditMessageTextOK

func NewEditMessageTextOK() *EditMessageTextOK

NewEditMessageTextOK creates a EditMessageTextOK with default headers values

func (*EditMessageTextOK) Error

func (o *EditMessageTextOK) Error() string

type EditMessageTextOKBody

type EditMessageTextOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result interface{} `json:"result"`
}

EditMessageTextOKBody edit message text o k body swagger:model EditMessageTextOKBody

func (*EditMessageTextOKBody) MarshalBinary

func (o *EditMessageTextOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditMessageTextOKBody) UnmarshalBinary

func (o *EditMessageTextOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditMessageTextOKBody) Validate

func (o *EditMessageTextOKBody) Validate(formats strfmt.Registry) error

Validate validates this edit message text o k body

type EditMessageTextParams

type EditMessageTextParams struct {

	/*Body*/
	Body *models.EditMessageTextBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EditMessageTextParams contains all the parameters to send to the API endpoint for the edit message text operation typically these are written to a http.Request

func NewEditMessageTextParams

func NewEditMessageTextParams() *EditMessageTextParams

NewEditMessageTextParams creates a new EditMessageTextParams object with the default values initialized.

func NewEditMessageTextParamsWithContext

func NewEditMessageTextParamsWithContext(ctx context.Context) *EditMessageTextParams

NewEditMessageTextParamsWithContext creates a new EditMessageTextParams object with the default values initialized, and the ability to set a context for a request

func NewEditMessageTextParamsWithHTTPClient

func NewEditMessageTextParamsWithHTTPClient(client *http.Client) *EditMessageTextParams

NewEditMessageTextParamsWithHTTPClient creates a new EditMessageTextParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEditMessageTextParamsWithTimeout

func NewEditMessageTextParamsWithTimeout(timeout time.Duration) *EditMessageTextParams

NewEditMessageTextParamsWithTimeout creates a new EditMessageTextParams object with the default values initialized, and the ability to set a timeout on a request

func (*EditMessageTextParams) SetBody

SetBody adds the body to the edit message text params

func (*EditMessageTextParams) SetContext

func (o *EditMessageTextParams) SetContext(ctx context.Context)

SetContext adds the context to the edit message text params

func (*EditMessageTextParams) SetHTTPClient

func (o *EditMessageTextParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the edit message text params

func (*EditMessageTextParams) SetTimeout

func (o *EditMessageTextParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the edit message text params

func (*EditMessageTextParams) SetToken

func (o *EditMessageTextParams) SetToken(token *string)

SetToken adds the token to the edit message text params

func (*EditMessageTextParams) WithBody

WithBody adds the body to the edit message text params

func (*EditMessageTextParams) WithContext

WithContext adds the context to the edit message text params

func (*EditMessageTextParams) WithHTTPClient

func (o *EditMessageTextParams) WithHTTPClient(client *http.Client) *EditMessageTextParams

WithHTTPClient adds the HTTPClient to the edit message text params

func (*EditMessageTextParams) WithTimeout

func (o *EditMessageTextParams) WithTimeout(timeout time.Duration) *EditMessageTextParams

WithTimeout adds the timeout to the edit message text params

func (*EditMessageTextParams) WithToken

func (o *EditMessageTextParams) WithToken(token *string) *EditMessageTextParams

WithToken adds the token to the edit message text params

func (*EditMessageTextParams) WriteToRequest

func (o *EditMessageTextParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EditMessageTextReader

type EditMessageTextReader struct {
	// contains filtered or unexported fields
}

EditMessageTextReader is a Reader for the EditMessageText structure.

func (*EditMessageTextReader) ReadResponse

func (o *EditMessageTextReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EditMessageTextUnauthorized

type EditMessageTextUnauthorized struct {
	Payload *models.Error
}

EditMessageTextUnauthorized handles this case with default header values.

Unauthorized

func NewEditMessageTextUnauthorized

func NewEditMessageTextUnauthorized() *EditMessageTextUnauthorized

NewEditMessageTextUnauthorized creates a EditMessageTextUnauthorized with default headers values

func (*EditMessageTextUnauthorized) Error

type ForwardMessageBadRequest

type ForwardMessageBadRequest struct {
	Payload *models.Error
}

ForwardMessageBadRequest handles this case with default header values.

Bad Request

func NewForwardMessageBadRequest

func NewForwardMessageBadRequest() *ForwardMessageBadRequest

NewForwardMessageBadRequest creates a ForwardMessageBadRequest with default headers values

func (*ForwardMessageBadRequest) Error

func (o *ForwardMessageBadRequest) Error() string

type ForwardMessageEnhanceYourCalm

type ForwardMessageEnhanceYourCalm struct {
	Payload *models.Error
}

ForwardMessageEnhanceYourCalm handles this case with default header values.

Flood

func NewForwardMessageEnhanceYourCalm

func NewForwardMessageEnhanceYourCalm() *ForwardMessageEnhanceYourCalm

NewForwardMessageEnhanceYourCalm creates a ForwardMessageEnhanceYourCalm with default headers values

func (*ForwardMessageEnhanceYourCalm) Error

type ForwardMessageForbidden

type ForwardMessageForbidden struct {
	Payload *models.Error
}

ForwardMessageForbidden handles this case with default header values.

Forbidden

func NewForwardMessageForbidden

func NewForwardMessageForbidden() *ForwardMessageForbidden

NewForwardMessageForbidden creates a ForwardMessageForbidden with default headers values

func (*ForwardMessageForbidden) Error

func (o *ForwardMessageForbidden) Error() string

type ForwardMessageInternalServerError

type ForwardMessageInternalServerError struct {
	Payload *models.Error
}

ForwardMessageInternalServerError handles this case with default header values.

Internal

func NewForwardMessageInternalServerError

func NewForwardMessageInternalServerError() *ForwardMessageInternalServerError

NewForwardMessageInternalServerError creates a ForwardMessageInternalServerError with default headers values

func (*ForwardMessageInternalServerError) Error

type ForwardMessageNotFound

type ForwardMessageNotFound struct {
	Payload *models.Error
}

ForwardMessageNotFound handles this case with default header values.

Not Found

func NewForwardMessageNotFound

func NewForwardMessageNotFound() *ForwardMessageNotFound

NewForwardMessageNotFound creates a ForwardMessageNotFound with default headers values

func (*ForwardMessageNotFound) Error

func (o *ForwardMessageNotFound) Error() string

type ForwardMessageOK

type ForwardMessageOK struct {
	Payload *models.ResponseMessage
}

ForwardMessageOK handles this case with default header values.

ForwardMessageOK forward message o k

func NewForwardMessageOK

func NewForwardMessageOK() *ForwardMessageOK

NewForwardMessageOK creates a ForwardMessageOK with default headers values

func (*ForwardMessageOK) Error

func (o *ForwardMessageOK) Error() string

type ForwardMessageParams

type ForwardMessageParams struct {

	/*ChatID*/
	ChatID string
	/*DisableNotification*/
	DisableNotification *bool
	/*FromChatID*/
	FromChatID string
	/*MessageID*/
	MessageID int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ForwardMessageParams contains all the parameters to send to the API endpoint for the forward message operation typically these are written to a http.Request

func NewForwardMessageParams

func NewForwardMessageParams() *ForwardMessageParams

NewForwardMessageParams creates a new ForwardMessageParams object with the default values initialized.

func NewForwardMessageParamsWithContext

func NewForwardMessageParamsWithContext(ctx context.Context) *ForwardMessageParams

NewForwardMessageParamsWithContext creates a new ForwardMessageParams object with the default values initialized, and the ability to set a context for a request

func NewForwardMessageParamsWithHTTPClient

func NewForwardMessageParamsWithHTTPClient(client *http.Client) *ForwardMessageParams

NewForwardMessageParamsWithHTTPClient creates a new ForwardMessageParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewForwardMessageParamsWithTimeout

func NewForwardMessageParamsWithTimeout(timeout time.Duration) *ForwardMessageParams

NewForwardMessageParamsWithTimeout creates a new ForwardMessageParams object with the default values initialized, and the ability to set a timeout on a request

func (*ForwardMessageParams) SetChatID

func (o *ForwardMessageParams) SetChatID(chatID string)

SetChatID adds the chatId to the forward message params

func (*ForwardMessageParams) SetContext

func (o *ForwardMessageParams) SetContext(ctx context.Context)

SetContext adds the context to the forward message params

func (*ForwardMessageParams) SetDisableNotification

func (o *ForwardMessageParams) SetDisableNotification(disableNotification *bool)

SetDisableNotification adds the disableNotification to the forward message params

func (*ForwardMessageParams) SetFromChatID

func (o *ForwardMessageParams) SetFromChatID(fromChatID string)

SetFromChatID adds the fromChatId to the forward message params

func (*ForwardMessageParams) SetHTTPClient

func (o *ForwardMessageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the forward message params

func (*ForwardMessageParams) SetMessageID

func (o *ForwardMessageParams) SetMessageID(messageID int64)

SetMessageID adds the messageId to the forward message params

func (*ForwardMessageParams) SetTimeout

func (o *ForwardMessageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the forward message params

func (*ForwardMessageParams) SetToken

func (o *ForwardMessageParams) SetToken(token *string)

SetToken adds the token to the forward message params

func (*ForwardMessageParams) WithChatID

func (o *ForwardMessageParams) WithChatID(chatID string) *ForwardMessageParams

WithChatID adds the chatID to the forward message params

func (*ForwardMessageParams) WithContext

WithContext adds the context to the forward message params

func (*ForwardMessageParams) WithDisableNotification

func (o *ForwardMessageParams) WithDisableNotification(disableNotification *bool) *ForwardMessageParams

WithDisableNotification adds the disableNotification to the forward message params

func (*ForwardMessageParams) WithFromChatID

func (o *ForwardMessageParams) WithFromChatID(fromChatID string) *ForwardMessageParams

WithFromChatID adds the fromChatID to the forward message params

func (*ForwardMessageParams) WithHTTPClient

func (o *ForwardMessageParams) WithHTTPClient(client *http.Client) *ForwardMessageParams

WithHTTPClient adds the HTTPClient to the forward message params

func (*ForwardMessageParams) WithMessageID

func (o *ForwardMessageParams) WithMessageID(messageID int64) *ForwardMessageParams

WithMessageID adds the messageID to the forward message params

func (*ForwardMessageParams) WithTimeout

func (o *ForwardMessageParams) WithTimeout(timeout time.Duration) *ForwardMessageParams

WithTimeout adds the timeout to the forward message params

func (*ForwardMessageParams) WithToken

func (o *ForwardMessageParams) WithToken(token *string) *ForwardMessageParams

WithToken adds the token to the forward message params

func (*ForwardMessageParams) WriteToRequest

func (o *ForwardMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ForwardMessageReader

type ForwardMessageReader struct {
	// contains filtered or unexported fields
}

ForwardMessageReader is a Reader for the ForwardMessage structure.

func (*ForwardMessageReader) ReadResponse

func (o *ForwardMessageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ForwardMessageUnauthorized

type ForwardMessageUnauthorized struct {
	Payload *models.Error
}

ForwardMessageUnauthorized handles this case with default header values.

Unauthorized

func NewForwardMessageUnauthorized

func NewForwardMessageUnauthorized() *ForwardMessageUnauthorized

NewForwardMessageUnauthorized creates a ForwardMessageUnauthorized with default headers values

func (*ForwardMessageUnauthorized) Error

type SendMessageBadRequest

type SendMessageBadRequest struct {
	Payload *models.Error
}

SendMessageBadRequest handles this case with default header values.

Bad Request

func NewSendMessageBadRequest

func NewSendMessageBadRequest() *SendMessageBadRequest

NewSendMessageBadRequest creates a SendMessageBadRequest with default headers values

func (*SendMessageBadRequest) Error

func (o *SendMessageBadRequest) Error() string

type SendMessageBytesBadRequest

type SendMessageBytesBadRequest struct {
	Payload *models.Error
}

SendMessageBytesBadRequest handles this case with default header values.

Bad Request

func NewSendMessageBytesBadRequest

func NewSendMessageBytesBadRequest() *SendMessageBytesBadRequest

NewSendMessageBytesBadRequest creates a SendMessageBytesBadRequest with default headers values

func (*SendMessageBytesBadRequest) Error

type SendMessageBytesEnhanceYourCalm

type SendMessageBytesEnhanceYourCalm struct {
	Payload *models.Error
}

SendMessageBytesEnhanceYourCalm handles this case with default header values.

Flood

func NewSendMessageBytesEnhanceYourCalm

func NewSendMessageBytesEnhanceYourCalm() *SendMessageBytesEnhanceYourCalm

NewSendMessageBytesEnhanceYourCalm creates a SendMessageBytesEnhanceYourCalm with default headers values

func (*SendMessageBytesEnhanceYourCalm) Error

type SendMessageBytesForbidden

type SendMessageBytesForbidden struct {
	Payload *models.Error
}

SendMessageBytesForbidden handles this case with default header values.

Forbidden

func NewSendMessageBytesForbidden

func NewSendMessageBytesForbidden() *SendMessageBytesForbidden

NewSendMessageBytesForbidden creates a SendMessageBytesForbidden with default headers values

func (*SendMessageBytesForbidden) Error

func (o *SendMessageBytesForbidden) Error() string

type SendMessageBytesInternalServerError

type SendMessageBytesInternalServerError struct {
	Payload *models.Error
}

SendMessageBytesInternalServerError handles this case with default header values.

Internal

func NewSendMessageBytesInternalServerError

func NewSendMessageBytesInternalServerError() *SendMessageBytesInternalServerError

NewSendMessageBytesInternalServerError creates a SendMessageBytesInternalServerError with default headers values

func (*SendMessageBytesInternalServerError) Error

type SendMessageBytesNotFound

type SendMessageBytesNotFound struct {
	Payload *models.Error
}

SendMessageBytesNotFound handles this case with default header values.

Not Found

func NewSendMessageBytesNotFound

func NewSendMessageBytesNotFound() *SendMessageBytesNotFound

NewSendMessageBytesNotFound creates a SendMessageBytesNotFound with default headers values

func (*SendMessageBytesNotFound) Error

func (o *SendMessageBytesNotFound) Error() string

type SendMessageBytesOK

type SendMessageBytesOK struct {
	Payload *models.ResponseMessage
}

SendMessageBytesOK handles this case with default header values.

SendMessageBytesOK send message bytes o k

func NewSendMessageBytesOK

func NewSendMessageBytesOK() *SendMessageBytesOK

NewSendMessageBytesOK creates a SendMessageBytesOK with default headers values

func (*SendMessageBytesOK) Error

func (o *SendMessageBytesOK) Error() string

type SendMessageBytesParams

type SendMessageBytesParams struct {

	/*Body*/
	Body io.ReadCloser
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendMessageBytesParams contains all the parameters to send to the API endpoint for the send message bytes operation typically these are written to a http.Request

func NewSendMessageBytesParams

func NewSendMessageBytesParams() *SendMessageBytesParams

NewSendMessageBytesParams creates a new SendMessageBytesParams object with the default values initialized.

func NewSendMessageBytesParamsWithContext

func NewSendMessageBytesParamsWithContext(ctx context.Context) *SendMessageBytesParams

NewSendMessageBytesParamsWithContext creates a new SendMessageBytesParams object with the default values initialized, and the ability to set a context for a request

func NewSendMessageBytesParamsWithHTTPClient

func NewSendMessageBytesParamsWithHTTPClient(client *http.Client) *SendMessageBytesParams

NewSendMessageBytesParamsWithHTTPClient creates a new SendMessageBytesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendMessageBytesParamsWithTimeout

func NewSendMessageBytesParamsWithTimeout(timeout time.Duration) *SendMessageBytesParams

NewSendMessageBytesParamsWithTimeout creates a new SendMessageBytesParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendMessageBytesParams) SetBody

func (o *SendMessageBytesParams) SetBody(body io.ReadCloser)

SetBody adds the body to the send message bytes params

func (*SendMessageBytesParams) SetContext

func (o *SendMessageBytesParams) SetContext(ctx context.Context)

SetContext adds the context to the send message bytes params

func (*SendMessageBytesParams) SetHTTPClient

func (o *SendMessageBytesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send message bytes params

func (*SendMessageBytesParams) SetTimeout

func (o *SendMessageBytesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send message bytes params

func (*SendMessageBytesParams) SetToken

func (o *SendMessageBytesParams) SetToken(token *string)

SetToken adds the token to the send message bytes params

func (*SendMessageBytesParams) WithBody

WithBody adds the body to the send message bytes params

func (*SendMessageBytesParams) WithContext

WithContext adds the context to the send message bytes params

func (*SendMessageBytesParams) WithHTTPClient

func (o *SendMessageBytesParams) WithHTTPClient(client *http.Client) *SendMessageBytesParams

WithHTTPClient adds the HTTPClient to the send message bytes params

func (*SendMessageBytesParams) WithTimeout

WithTimeout adds the timeout to the send message bytes params

func (*SendMessageBytesParams) WithToken

WithToken adds the token to the send message bytes params

func (*SendMessageBytesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SendMessageBytesReader

type SendMessageBytesReader struct {
	// contains filtered or unexported fields
}

SendMessageBytesReader is a Reader for the SendMessageBytes structure.

func (*SendMessageBytesReader) ReadResponse

func (o *SendMessageBytesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendMessageBytesUnauthorized

type SendMessageBytesUnauthorized struct {
	Payload *models.Error
}

SendMessageBytesUnauthorized handles this case with default header values.

Unauthorized

func NewSendMessageBytesUnauthorized

func NewSendMessageBytesUnauthorized() *SendMessageBytesUnauthorized

NewSendMessageBytesUnauthorized creates a SendMessageBytesUnauthorized with default headers values

func (*SendMessageBytesUnauthorized) Error

type SendMessageEnhanceYourCalm

type SendMessageEnhanceYourCalm struct {
	Payload *models.Error
}

SendMessageEnhanceYourCalm handles this case with default header values.

Flood

func NewSendMessageEnhanceYourCalm

func NewSendMessageEnhanceYourCalm() *SendMessageEnhanceYourCalm

NewSendMessageEnhanceYourCalm creates a SendMessageEnhanceYourCalm with default headers values

func (*SendMessageEnhanceYourCalm) Error

type SendMessageForbidden

type SendMessageForbidden struct {
	Payload *models.Error
}

SendMessageForbidden handles this case with default header values.

Forbidden

func NewSendMessageForbidden

func NewSendMessageForbidden() *SendMessageForbidden

NewSendMessageForbidden creates a SendMessageForbidden with default headers values

func (*SendMessageForbidden) Error

func (o *SendMessageForbidden) Error() string

type SendMessageInternalServerError

type SendMessageInternalServerError struct {
	Payload *models.Error
}

SendMessageInternalServerError handles this case with default header values.

Internal

func NewSendMessageInternalServerError

func NewSendMessageInternalServerError() *SendMessageInternalServerError

NewSendMessageInternalServerError creates a SendMessageInternalServerError with default headers values

func (*SendMessageInternalServerError) Error

type SendMessageNotFound

type SendMessageNotFound struct {
	Payload *models.Error
}

SendMessageNotFound handles this case with default header values.

Not Found

func NewSendMessageNotFound

func NewSendMessageNotFound() *SendMessageNotFound

NewSendMessageNotFound creates a SendMessageNotFound with default headers values

func (*SendMessageNotFound) Error

func (o *SendMessageNotFound) Error() string

type SendMessageOK

type SendMessageOK struct {
	Payload *models.ResponseMessage
}

SendMessageOK handles this case with default header values.

SendMessageOK send message o k

func NewSendMessageOK

func NewSendMessageOK() *SendMessageOK

NewSendMessageOK creates a SendMessageOK with default headers values

func (*SendMessageOK) Error

func (o *SendMessageOK) Error() string

type SendMessageParams

type SendMessageParams struct {

	/*Body*/
	Body *models.SendMessageBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendMessageParams contains all the parameters to send to the API endpoint for the send message operation typically these are written to a http.Request

func NewSendMessageParams

func NewSendMessageParams() *SendMessageParams

NewSendMessageParams creates a new SendMessageParams object with the default values initialized.

func NewSendMessageParamsWithContext

func NewSendMessageParamsWithContext(ctx context.Context) *SendMessageParams

NewSendMessageParamsWithContext creates a new SendMessageParams object with the default values initialized, and the ability to set a context for a request

func NewSendMessageParamsWithHTTPClient

func NewSendMessageParamsWithHTTPClient(client *http.Client) *SendMessageParams

NewSendMessageParamsWithHTTPClient creates a new SendMessageParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendMessageParamsWithTimeout

func NewSendMessageParamsWithTimeout(timeout time.Duration) *SendMessageParams

NewSendMessageParamsWithTimeout creates a new SendMessageParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendMessageParams) SetBody

func (o *SendMessageParams) SetBody(body *models.SendMessageBody)

SetBody adds the body to the send message params

func (*SendMessageParams) SetContext

func (o *SendMessageParams) SetContext(ctx context.Context)

SetContext adds the context to the send message params

func (*SendMessageParams) SetHTTPClient

func (o *SendMessageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send message params

func (*SendMessageParams) SetTimeout

func (o *SendMessageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send message params

func (*SendMessageParams) SetToken

func (o *SendMessageParams) SetToken(token *string)

SetToken adds the token to the send message params

func (*SendMessageParams) WithBody

WithBody adds the body to the send message params

func (*SendMessageParams) WithContext

func (o *SendMessageParams) WithContext(ctx context.Context) *SendMessageParams

WithContext adds the context to the send message params

func (*SendMessageParams) WithHTTPClient

func (o *SendMessageParams) WithHTTPClient(client *http.Client) *SendMessageParams

WithHTTPClient adds the HTTPClient to the send message params

func (*SendMessageParams) WithTimeout

func (o *SendMessageParams) WithTimeout(timeout time.Duration) *SendMessageParams

WithTimeout adds the timeout to the send message params

func (*SendMessageParams) WithToken

func (o *SendMessageParams) WithToken(token *string) *SendMessageParams

WithToken adds the token to the send message params

func (*SendMessageParams) WriteToRequest

func (o *SendMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SendMessageReader

type SendMessageReader struct {
	// contains filtered or unexported fields
}

SendMessageReader is a Reader for the SendMessage structure.

func (*SendMessageReader) ReadResponse

func (o *SendMessageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendMessageUnauthorized

type SendMessageUnauthorized struct {
	Payload *models.Error
}

SendMessageUnauthorized handles this case with default header values.

Unauthorized

func NewSendMessageUnauthorized

func NewSendMessageUnauthorized() *SendMessageUnauthorized

NewSendMessageUnauthorized creates a SendMessageUnauthorized with default headers values

func (*SendMessageUnauthorized) Error

func (o *SendMessageUnauthorized) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL