Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteMessage(params *DeleteMessageParams) (*DeleteMessageOK, error)
- func (a *Client) EditMessageCaption(params *EditMessageCaptionParams) (*EditMessageCaptionOK, error)
- func (a *Client) EditMessageReplyMarkup(params *EditMessageReplyMarkupParams) (*EditMessageReplyMarkupOK, error)
- func (a *Client) EditMessageText(params *EditMessageTextParams) (*EditMessageTextOK, error)
- func (a *Client) ForwardMessage(params *ForwardMessageParams) (*ForwardMessageOK, error)
- func (a *Client) SendMessage(params *SendMessageParams) (*SendMessageOK, error)
- func (a *Client) SendMessageBytes(params *SendMessageBytesParams) (*SendMessageBytesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeleteMessageBadRequest
- type DeleteMessageEnhanceYourCalm
- type DeleteMessageForbidden
- type DeleteMessageInternalServerError
- type DeleteMessageNotFound
- type DeleteMessageOK
- type DeleteMessageParams
- func (o *DeleteMessageParams) SetChatID(chatID string)
- func (o *DeleteMessageParams) SetContext(ctx context.Context)
- func (o *DeleteMessageParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMessageParams) SetMessageID(messageID int64)
- func (o *DeleteMessageParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMessageParams) SetToken(token *string)
- func (o *DeleteMessageParams) WithChatID(chatID string) *DeleteMessageParams
- func (o *DeleteMessageParams) WithContext(ctx context.Context) *DeleteMessageParams
- func (o *DeleteMessageParams) WithHTTPClient(client *http.Client) *DeleteMessageParams
- func (o *DeleteMessageParams) WithMessageID(messageID int64) *DeleteMessageParams
- func (o *DeleteMessageParams) WithTimeout(timeout time.Duration) *DeleteMessageParams
- func (o *DeleteMessageParams) WithToken(token *string) *DeleteMessageParams
- func (o *DeleteMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMessageReader
- type DeleteMessageUnauthorized
- type EditMessageCaptionBadRequest
- type EditMessageCaptionEnhanceYourCalm
- type EditMessageCaptionForbidden
- type EditMessageCaptionInternalServerError
- type EditMessageCaptionNotFound
- type EditMessageCaptionOK
- type EditMessageCaptionOKBody
- type EditMessageCaptionParams
- func NewEditMessageCaptionParams() *EditMessageCaptionParams
- func NewEditMessageCaptionParamsWithContext(ctx context.Context) *EditMessageCaptionParams
- func NewEditMessageCaptionParamsWithHTTPClient(client *http.Client) *EditMessageCaptionParams
- func NewEditMessageCaptionParamsWithTimeout(timeout time.Duration) *EditMessageCaptionParams
- func (o *EditMessageCaptionParams) SetBody(body *models.EditMessageCaptionBody)
- func (o *EditMessageCaptionParams) SetContext(ctx context.Context)
- func (o *EditMessageCaptionParams) SetHTTPClient(client *http.Client)
- func (o *EditMessageCaptionParams) SetTimeout(timeout time.Duration)
- func (o *EditMessageCaptionParams) SetToken(token *string)
- func (o *EditMessageCaptionParams) WithBody(body *models.EditMessageCaptionBody) *EditMessageCaptionParams
- func (o *EditMessageCaptionParams) WithContext(ctx context.Context) *EditMessageCaptionParams
- func (o *EditMessageCaptionParams) WithHTTPClient(client *http.Client) *EditMessageCaptionParams
- func (o *EditMessageCaptionParams) WithTimeout(timeout time.Duration) *EditMessageCaptionParams
- func (o *EditMessageCaptionParams) WithToken(token *string) *EditMessageCaptionParams
- func (o *EditMessageCaptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditMessageCaptionReader
- type EditMessageCaptionUnauthorized
- type EditMessageReplyMarkupBadRequest
- type EditMessageReplyMarkupEnhanceYourCalm
- type EditMessageReplyMarkupForbidden
- type EditMessageReplyMarkupInternalServerError
- type EditMessageReplyMarkupNotFound
- type EditMessageReplyMarkupOK
- type EditMessageReplyMarkupOKBody
- type EditMessageReplyMarkupParams
- func NewEditMessageReplyMarkupParams() *EditMessageReplyMarkupParams
- func NewEditMessageReplyMarkupParamsWithContext(ctx context.Context) *EditMessageReplyMarkupParams
- func NewEditMessageReplyMarkupParamsWithHTTPClient(client *http.Client) *EditMessageReplyMarkupParams
- func NewEditMessageReplyMarkupParamsWithTimeout(timeout time.Duration) *EditMessageReplyMarkupParams
- func (o *EditMessageReplyMarkupParams) SetBody(body *models.EditMessageReplyMarkupBody)
- func (o *EditMessageReplyMarkupParams) SetContext(ctx context.Context)
- func (o *EditMessageReplyMarkupParams) SetHTTPClient(client *http.Client)
- func (o *EditMessageReplyMarkupParams) SetTimeout(timeout time.Duration)
- func (o *EditMessageReplyMarkupParams) SetToken(token *string)
- func (o *EditMessageReplyMarkupParams) WithBody(body *models.EditMessageReplyMarkupBody) *EditMessageReplyMarkupParams
- func (o *EditMessageReplyMarkupParams) WithContext(ctx context.Context) *EditMessageReplyMarkupParams
- func (o *EditMessageReplyMarkupParams) WithHTTPClient(client *http.Client) *EditMessageReplyMarkupParams
- func (o *EditMessageReplyMarkupParams) WithTimeout(timeout time.Duration) *EditMessageReplyMarkupParams
- func (o *EditMessageReplyMarkupParams) WithToken(token *string) *EditMessageReplyMarkupParams
- func (o *EditMessageReplyMarkupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditMessageReplyMarkupReader
- type EditMessageReplyMarkupUnauthorized
- type EditMessageTextBadRequest
- type EditMessageTextEnhanceYourCalm
- type EditMessageTextForbidden
- type EditMessageTextInternalServerError
- type EditMessageTextNotFound
- type EditMessageTextOK
- type EditMessageTextOKBody
- type EditMessageTextParams
- func NewEditMessageTextParams() *EditMessageTextParams
- func NewEditMessageTextParamsWithContext(ctx context.Context) *EditMessageTextParams
- func NewEditMessageTextParamsWithHTTPClient(client *http.Client) *EditMessageTextParams
- func NewEditMessageTextParamsWithTimeout(timeout time.Duration) *EditMessageTextParams
- func (o *EditMessageTextParams) SetBody(body *models.EditMessageTextBody)
- func (o *EditMessageTextParams) SetContext(ctx context.Context)
- func (o *EditMessageTextParams) SetHTTPClient(client *http.Client)
- func (o *EditMessageTextParams) SetTimeout(timeout time.Duration)
- func (o *EditMessageTextParams) SetToken(token *string)
- func (o *EditMessageTextParams) WithBody(body *models.EditMessageTextBody) *EditMessageTextParams
- func (o *EditMessageTextParams) WithContext(ctx context.Context) *EditMessageTextParams
- func (o *EditMessageTextParams) WithHTTPClient(client *http.Client) *EditMessageTextParams
- func (o *EditMessageTextParams) WithTimeout(timeout time.Duration) *EditMessageTextParams
- func (o *EditMessageTextParams) WithToken(token *string) *EditMessageTextParams
- func (o *EditMessageTextParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditMessageTextReader
- type EditMessageTextUnauthorized
- type ForwardMessageBadRequest
- type ForwardMessageEnhanceYourCalm
- type ForwardMessageForbidden
- type ForwardMessageInternalServerError
- type ForwardMessageNotFound
- type ForwardMessageOK
- type ForwardMessageParams
- func NewForwardMessageParams() *ForwardMessageParams
- func NewForwardMessageParamsWithContext(ctx context.Context) *ForwardMessageParams
- func NewForwardMessageParamsWithHTTPClient(client *http.Client) *ForwardMessageParams
- func NewForwardMessageParamsWithTimeout(timeout time.Duration) *ForwardMessageParams
- func (o *ForwardMessageParams) SetChatID(chatID string)
- func (o *ForwardMessageParams) SetContext(ctx context.Context)
- func (o *ForwardMessageParams) SetDisableNotification(disableNotification *bool)
- func (o *ForwardMessageParams) SetFromChatID(fromChatID string)
- func (o *ForwardMessageParams) SetHTTPClient(client *http.Client)
- func (o *ForwardMessageParams) SetMessageID(messageID int64)
- func (o *ForwardMessageParams) SetTimeout(timeout time.Duration)
- func (o *ForwardMessageParams) SetToken(token *string)
- func (o *ForwardMessageParams) WithChatID(chatID string) *ForwardMessageParams
- func (o *ForwardMessageParams) WithContext(ctx context.Context) *ForwardMessageParams
- func (o *ForwardMessageParams) WithDisableNotification(disableNotification *bool) *ForwardMessageParams
- func (o *ForwardMessageParams) WithFromChatID(fromChatID string) *ForwardMessageParams
- func (o *ForwardMessageParams) WithHTTPClient(client *http.Client) *ForwardMessageParams
- func (o *ForwardMessageParams) WithMessageID(messageID int64) *ForwardMessageParams
- func (o *ForwardMessageParams) WithTimeout(timeout time.Duration) *ForwardMessageParams
- func (o *ForwardMessageParams) WithToken(token *string) *ForwardMessageParams
- func (o *ForwardMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForwardMessageReader
- type ForwardMessageUnauthorized
- type SendMessageBadRequest
- type SendMessageBytesBadRequest
- type SendMessageBytesEnhanceYourCalm
- type SendMessageBytesForbidden
- type SendMessageBytesInternalServerError
- type SendMessageBytesNotFound
- type SendMessageBytesOK
- type SendMessageBytesParams
- func NewSendMessageBytesParams() *SendMessageBytesParams
- func NewSendMessageBytesParamsWithContext(ctx context.Context) *SendMessageBytesParams
- func NewSendMessageBytesParamsWithHTTPClient(client *http.Client) *SendMessageBytesParams
- func NewSendMessageBytesParamsWithTimeout(timeout time.Duration) *SendMessageBytesParams
- func (o *SendMessageBytesParams) SetBody(body io.ReadCloser)
- func (o *SendMessageBytesParams) SetContext(ctx context.Context)
- func (o *SendMessageBytesParams) SetHTTPClient(client *http.Client)
- func (o *SendMessageBytesParams) SetTimeout(timeout time.Duration)
- func (o *SendMessageBytesParams) SetToken(token *string)
- func (o *SendMessageBytesParams) WithBody(body io.ReadCloser) *SendMessageBytesParams
- func (o *SendMessageBytesParams) WithContext(ctx context.Context) *SendMessageBytesParams
- func (o *SendMessageBytesParams) WithHTTPClient(client *http.Client) *SendMessageBytesParams
- func (o *SendMessageBytesParams) WithTimeout(timeout time.Duration) *SendMessageBytesParams
- func (o *SendMessageBytesParams) WithToken(token *string) *SendMessageBytesParams
- func (o *SendMessageBytesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendMessageBytesReader
- type SendMessageBytesUnauthorized
- type SendMessageEnhanceYourCalm
- type SendMessageForbidden
- type SendMessageInternalServerError
- type SendMessageNotFound
- type SendMessageOK
- type SendMessageParams
- func (o *SendMessageParams) SetBody(body *models.SendMessageBody)
- func (o *SendMessageParams) SetContext(ctx context.Context)
- func (o *SendMessageParams) SetHTTPClient(client *http.Client)
- func (o *SendMessageParams) SetTimeout(timeout time.Duration)
- func (o *SendMessageParams) SetToken(token *string)
- func (o *SendMessageParams) WithBody(body *models.SendMessageBody) *SendMessageParams
- func (o *SendMessageParams) WithContext(ctx context.Context) *SendMessageParams
- func (o *SendMessageParams) WithHTTPClient(client *http.Client) *SendMessageParams
- func (o *SendMessageParams) WithTimeout(timeout time.Duration) *SendMessageParams
- func (o *SendMessageParams) WithToken(token *string) *SendMessageParams
- func (o *SendMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendMessageReader
- type SendMessageUnauthorized
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 ¶
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 ¶
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 ¶
func (o *DeleteMessageEnhanceYourCalm) Error() string
type DeleteMessageForbidden ¶
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 ¶
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 ¶
func (o *DeleteMessageInternalServerError) Error() string
type DeleteMessageNotFound ¶
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 ¶
func (o *DeleteMessageParams) WithContext(ctx context.Context) *DeleteMessageParams
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 {
}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 ¶
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 ¶
func (o *EditMessageCaptionBadRequest) Error() string
type EditMessageCaptionEnhanceYourCalm ¶
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 ¶
func (o *EditMessageCaptionEnhanceYourCalm) Error() string
type EditMessageCaptionForbidden ¶
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 ¶
func (o *EditMessageCaptionForbidden) Error() string
type EditMessageCaptionInternalServerError ¶
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 ¶
func (o *EditMessageCaptionInternalServerError) Error() string
type EditMessageCaptionNotFound ¶
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 ¶
func (o *EditMessageCaptionNotFound) Error() string
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
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 ¶
func (o *EditMessageCaptionParams) SetBody(body *models.EditMessageCaptionBody)
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 ¶
func (o *EditMessageCaptionParams) WithBody(body *models.EditMessageCaptionBody) *EditMessageCaptionParams
WithBody adds the body to the edit message caption params
func (*EditMessageCaptionParams) WithContext ¶
func (o *EditMessageCaptionParams) WithContext(ctx context.Context) *EditMessageCaptionParams
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 ¶
func (o *EditMessageCaptionParams) WithTimeout(timeout time.Duration) *EditMessageCaptionParams
WithTimeout adds the timeout to the edit message caption params
func (*EditMessageCaptionParams) WithToken ¶
func (o *EditMessageCaptionParams) WithToken(token *string) *EditMessageCaptionParams
WithToken adds the token to the edit message caption params
func (*EditMessageCaptionParams) WriteToRequest ¶
func (o *EditMessageCaptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *EditMessageCaptionUnauthorized) Error() string
type EditMessageReplyMarkupBadRequest ¶
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 ¶
func (o *EditMessageReplyMarkupBadRequest) Error() string
type EditMessageReplyMarkupEnhanceYourCalm ¶
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 ¶
func (o *EditMessageReplyMarkupEnhanceYourCalm) Error() string
type EditMessageReplyMarkupForbidden ¶
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 ¶
func (o *EditMessageReplyMarkupForbidden) Error() string
type EditMessageReplyMarkupInternalServerError ¶
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 ¶
func (o *EditMessageReplyMarkupInternalServerError) Error() string
type EditMessageReplyMarkupNotFound ¶
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 ¶
func (o *EditMessageReplyMarkupNotFound) Error() string
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
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 ¶
func (o *EditMessageReplyMarkupParams) SetBody(body *models.EditMessageReplyMarkupBody)
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 ¶
func (o *EditMessageReplyMarkupParams) WithBody(body *models.EditMessageReplyMarkupBody) *EditMessageReplyMarkupParams
WithBody adds the body to the edit message reply markup params
func (*EditMessageReplyMarkupParams) WithContext ¶
func (o *EditMessageReplyMarkupParams) WithContext(ctx context.Context) *EditMessageReplyMarkupParams
WithContext adds the context to the edit message reply markup params
func (*EditMessageReplyMarkupParams) WithHTTPClient ¶
func (o *EditMessageReplyMarkupParams) WithHTTPClient(client *http.Client) *EditMessageReplyMarkupParams
WithHTTPClient adds the HTTPClient to the edit message reply markup params
func (*EditMessageReplyMarkupParams) WithTimeout ¶
func (o *EditMessageReplyMarkupParams) WithTimeout(timeout time.Duration) *EditMessageReplyMarkupParams
WithTimeout adds the timeout to the edit message reply markup params
func (*EditMessageReplyMarkupParams) WithToken ¶
func (o *EditMessageReplyMarkupParams) WithToken(token *string) *EditMessageReplyMarkupParams
WithToken adds the token to the edit message reply markup params
func (*EditMessageReplyMarkupParams) WriteToRequest ¶
func (o *EditMessageReplyMarkupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *EditMessageReplyMarkupUnauthorized) Error() string
type EditMessageTextBadRequest ¶
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 ¶
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 ¶
func (o *EditMessageTextEnhanceYourCalm) Error() string
type EditMessageTextForbidden ¶
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 ¶
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 ¶
func (o *EditMessageTextInternalServerError) Error() string
type EditMessageTextNotFound ¶
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
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 ¶
func (o *EditMessageTextParams) SetBody(body *models.EditMessageTextBody)
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 ¶
func (o *EditMessageTextParams) WithBody(body *models.EditMessageTextBody) *EditMessageTextParams
WithBody adds the body to the edit message text params
func (*EditMessageTextParams) WithContext ¶
func (o *EditMessageTextParams) WithContext(ctx context.Context) *EditMessageTextParams
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 {
}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 ¶
func (o *EditMessageTextUnauthorized) Error() string
type ForwardMessageBadRequest ¶
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 ¶
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 ¶
func (o *ForwardMessageEnhanceYourCalm) Error() string
type ForwardMessageForbidden ¶
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 ¶
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 ¶
func (o *ForwardMessageInternalServerError) Error() string
type ForwardMessageNotFound ¶
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 ¶
func (o *ForwardMessageParams) WithContext(ctx context.Context) *ForwardMessageParams
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 {
}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 ¶
func (o *ForwardMessageUnauthorized) Error() string
type SendMessageBadRequest ¶
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 ¶
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 ¶
func (o *SendMessageBytesBadRequest) Error() string
type SendMessageBytesEnhanceYourCalm ¶
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 ¶
func (o *SendMessageBytesEnhanceYourCalm) Error() string
type SendMessageBytesForbidden ¶
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 ¶
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 ¶
func (o *SendMessageBytesInternalServerError) Error() string
type SendMessageBytesNotFound ¶
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 ¶
func (o *SendMessageBytesParams) WithBody(body io.ReadCloser) *SendMessageBytesParams
WithBody adds the body to the send message bytes params
func (*SendMessageBytesParams) WithContext ¶
func (o *SendMessageBytesParams) WithContext(ctx context.Context) *SendMessageBytesParams
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 ¶
func (o *SendMessageBytesParams) WithTimeout(timeout time.Duration) *SendMessageBytesParams
WithTimeout adds the timeout to the send message bytes params
func (*SendMessageBytesParams) WithToken ¶
func (o *SendMessageBytesParams) WithToken(token *string) *SendMessageBytesParams
WithToken adds the token to the send message bytes params
func (*SendMessageBytesParams) WriteToRequest ¶
func (o *SendMessageBytesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *SendMessageBytesUnauthorized) Error() string
type SendMessageEnhanceYourCalm ¶
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 ¶
func (o *SendMessageEnhanceYourCalm) Error() string
type SendMessageForbidden ¶
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 ¶
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 ¶
func (o *SendMessageInternalServerError) Error() string
type SendMessageNotFound ¶
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 ¶
func (o *SendMessageParams) WithBody(body *models.SendMessageBody) *SendMessageParams
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 {
}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
Source Files ¶
- delete_message_parameters.go
- delete_message_responses.go
- edit_message_caption_parameters.go
- edit_message_caption_responses.go
- edit_message_reply_markup_parameters.go
- edit_message_reply_markup_responses.go
- edit_message_text_parameters.go
- edit_message_text_responses.go
- forward_message_parameters.go
- forward_message_responses.go
- messages_client.go
- send_message_bytes_parameters.go
- send_message_bytes_responses.go
- send_message_parameters.go
- send_message_responses.go