chats

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: 13 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 chats API

func New

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

New creates a new chats API client.

func (*Client) DeleteChatPhoto

func (a *Client) DeleteChatPhoto(params *DeleteChatPhotoParams) (*DeleteChatPhotoOK, error)

DeleteChatPhoto delete chat photo API

func (a *Client) ExportChatInviteLink(params *ExportChatInviteLinkParams) (*ExportChatInviteLinkOK, error)

ExportChatInviteLink export chat invite link API

func (*Client) GetChat

func (a *Client) GetChat(params *GetChatParams) (*GetChatOK, error)

GetChat get chat API

func (*Client) GetChatAdministrators

func (a *Client) GetChatAdministrators(params *GetChatAdministratorsParams) (*GetChatAdministratorsOK, error)

GetChatAdministrators get chat administrators API

func (*Client) GetChatMember

func (a *Client) GetChatMember(params *GetChatMemberParams) (*GetChatMemberOK, error)

GetChatMember get chat member API

func (*Client) GetChatMembersCount

func (a *Client) GetChatMembersCount(params *GetChatMembersCountParams) (*GetChatMembersCountOK, error)

GetChatMembersCount get chat members count API

func (*Client) KickChatMember

func (a *Client) KickChatMember(params *KickChatMemberParams) (*KickChatMemberOK, error)

KickChatMember kick chat member API

func (*Client) LeaveChat

func (a *Client) LeaveChat(params *LeaveChatParams) (*LeaveChatOK, error)

LeaveChat leave chat API

func (*Client) PinChatMessage

func (a *Client) PinChatMessage(params *PinChatMessageParams) (*PinChatMessageOK, error)

PinChatMessage pin chat message API

func (*Client) PromoteChatMember

func (a *Client) PromoteChatMember(params *PromoteChatMemberParams) (*PromoteChatMemberOK, error)

PromoteChatMember promote chat member API

func (*Client) RestrictChatMember

func (a *Client) RestrictChatMember(params *RestrictChatMemberParams) (*RestrictChatMemberOK, error)

RestrictChatMember restrict chat member API

func (*Client) SendChatAction

func (a *Client) SendChatAction(params *SendChatActionParams) (*SendChatActionOK, error)

SendChatAction send chat action API

func (*Client) SetChatDescription

func (a *Client) SetChatDescription(params *SetChatDescriptionParams) (*SetChatDescriptionOK, error)

SetChatDescription set chat description API

func (*Client) SetChatPhoto

func (a *Client) SetChatPhoto(params *SetChatPhotoParams) (*SetChatPhotoOK, error)

SetChatPhoto set chat photo API

func (*Client) SetChatTitle

func (a *Client) SetChatTitle(params *SetChatTitleParams) (*SetChatTitleOK, error)

SetChatTitle set chat title API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnbanChatMember

func (a *Client) UnbanChatMember(params *UnbanChatMemberParams) (*UnbanChatMemberOK, error)

UnbanChatMember unban chat member API

func (*Client) UnpinChatMessage

func (a *Client) UnpinChatMessage(params *UnpinChatMessageParams) (*UnpinChatMessageOK, error)

UnpinChatMessage unpin chat message API

type DeleteChatPhotoBadRequest

type DeleteChatPhotoBadRequest struct {
	Payload *models.Error
}

DeleteChatPhotoBadRequest handles this case with default header values.

Bad Request

func NewDeleteChatPhotoBadRequest

func NewDeleteChatPhotoBadRequest() *DeleteChatPhotoBadRequest

NewDeleteChatPhotoBadRequest creates a DeleteChatPhotoBadRequest with default headers values

func (*DeleteChatPhotoBadRequest) Error

func (o *DeleteChatPhotoBadRequest) Error() string

type DeleteChatPhotoEnhanceYourCalm

type DeleteChatPhotoEnhanceYourCalm struct {
	Payload *models.Error
}

DeleteChatPhotoEnhanceYourCalm handles this case with default header values.

Flood

func NewDeleteChatPhotoEnhanceYourCalm

func NewDeleteChatPhotoEnhanceYourCalm() *DeleteChatPhotoEnhanceYourCalm

NewDeleteChatPhotoEnhanceYourCalm creates a DeleteChatPhotoEnhanceYourCalm with default headers values

func (*DeleteChatPhotoEnhanceYourCalm) Error

type DeleteChatPhotoForbidden

type DeleteChatPhotoForbidden struct {
	Payload *models.Error
}

DeleteChatPhotoForbidden handles this case with default header values.

Forbidden

func NewDeleteChatPhotoForbidden

func NewDeleteChatPhotoForbidden() *DeleteChatPhotoForbidden

NewDeleteChatPhotoForbidden creates a DeleteChatPhotoForbidden with default headers values

func (*DeleteChatPhotoForbidden) Error

func (o *DeleteChatPhotoForbidden) Error() string

type DeleteChatPhotoInternalServerError

type DeleteChatPhotoInternalServerError struct {
	Payload *models.Error
}

DeleteChatPhotoInternalServerError handles this case with default header values.

Internal

func NewDeleteChatPhotoInternalServerError

func NewDeleteChatPhotoInternalServerError() *DeleteChatPhotoInternalServerError

NewDeleteChatPhotoInternalServerError creates a DeleteChatPhotoInternalServerError with default headers values

func (*DeleteChatPhotoInternalServerError) Error

type DeleteChatPhotoNotFound

type DeleteChatPhotoNotFound struct {
	Payload *models.Error
}

DeleteChatPhotoNotFound handles this case with default header values.

Not Found

func NewDeleteChatPhotoNotFound

func NewDeleteChatPhotoNotFound() *DeleteChatPhotoNotFound

NewDeleteChatPhotoNotFound creates a DeleteChatPhotoNotFound with default headers values

func (*DeleteChatPhotoNotFound) Error

func (o *DeleteChatPhotoNotFound) Error() string

type DeleteChatPhotoOK

type DeleteChatPhotoOK struct {
	Payload *models.ResponseBool
}

DeleteChatPhotoOK handles this case with default header values.

DeleteChatPhotoOK delete chat photo o k

func NewDeleteChatPhotoOK

func NewDeleteChatPhotoOK() *DeleteChatPhotoOK

NewDeleteChatPhotoOK creates a DeleteChatPhotoOK with default headers values

func (*DeleteChatPhotoOK) Error

func (o *DeleteChatPhotoOK) Error() string

type DeleteChatPhotoParams

type DeleteChatPhotoParams struct {

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

	*/
	Token *string

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

DeleteChatPhotoParams contains all the parameters to send to the API endpoint for the delete chat photo operation typically these are written to a http.Request

func NewDeleteChatPhotoParams

func NewDeleteChatPhotoParams() *DeleteChatPhotoParams

NewDeleteChatPhotoParams creates a new DeleteChatPhotoParams object with the default values initialized.

func NewDeleteChatPhotoParamsWithContext

func NewDeleteChatPhotoParamsWithContext(ctx context.Context) *DeleteChatPhotoParams

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

func NewDeleteChatPhotoParamsWithHTTPClient

func NewDeleteChatPhotoParamsWithHTTPClient(client *http.Client) *DeleteChatPhotoParams

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

func NewDeleteChatPhotoParamsWithTimeout

func NewDeleteChatPhotoParamsWithTimeout(timeout time.Duration) *DeleteChatPhotoParams

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

func (*DeleteChatPhotoParams) SetChatID

func (o *DeleteChatPhotoParams) SetChatID(chatID string)

SetChatID adds the chatId to the delete chat photo params

func (*DeleteChatPhotoParams) SetContext

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

SetContext adds the context to the delete chat photo params

func (*DeleteChatPhotoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete chat photo params

func (*DeleteChatPhotoParams) SetTimeout

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

SetTimeout adds the timeout to the delete chat photo params

func (*DeleteChatPhotoParams) SetToken

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

SetToken adds the token to the delete chat photo params

func (*DeleteChatPhotoParams) WithChatID

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

WithChatID adds the chatID to the delete chat photo params

func (*DeleteChatPhotoParams) WithContext

WithContext adds the context to the delete chat photo params

func (*DeleteChatPhotoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete chat photo params

func (*DeleteChatPhotoParams) WithTimeout

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

WithTimeout adds the timeout to the delete chat photo params

func (*DeleteChatPhotoParams) WithToken

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

WithToken adds the token to the delete chat photo params

func (*DeleteChatPhotoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteChatPhotoReader

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

DeleteChatPhotoReader is a Reader for the DeleteChatPhoto structure.

func (*DeleteChatPhotoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteChatPhotoUnauthorized

type DeleteChatPhotoUnauthorized struct {
	Payload *models.Error
}

DeleteChatPhotoUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteChatPhotoUnauthorized

func NewDeleteChatPhotoUnauthorized() *DeleteChatPhotoUnauthorized

NewDeleteChatPhotoUnauthorized creates a DeleteChatPhotoUnauthorized with default headers values

func (*DeleteChatPhotoUnauthorized) Error

type ExportChatInviteLinkBadRequest

type ExportChatInviteLinkBadRequest struct {
	Payload *models.Error
}

ExportChatInviteLinkBadRequest handles this case with default header values.

Bad Request

func NewExportChatInviteLinkBadRequest

func NewExportChatInviteLinkBadRequest() *ExportChatInviteLinkBadRequest

NewExportChatInviteLinkBadRequest creates a ExportChatInviteLinkBadRequest with default headers values

func (*ExportChatInviteLinkBadRequest) Error

type ExportChatInviteLinkEnhanceYourCalm

type ExportChatInviteLinkEnhanceYourCalm struct {
	Payload *models.Error
}

ExportChatInviteLinkEnhanceYourCalm handles this case with default header values.

Flood

func NewExportChatInviteLinkEnhanceYourCalm

func NewExportChatInviteLinkEnhanceYourCalm() *ExportChatInviteLinkEnhanceYourCalm

NewExportChatInviteLinkEnhanceYourCalm creates a ExportChatInviteLinkEnhanceYourCalm with default headers values

func (*ExportChatInviteLinkEnhanceYourCalm) Error

type ExportChatInviteLinkForbidden

type ExportChatInviteLinkForbidden struct {
	Payload *models.Error
}

ExportChatInviteLinkForbidden handles this case with default header values.

Forbidden

func NewExportChatInviteLinkForbidden

func NewExportChatInviteLinkForbidden() *ExportChatInviteLinkForbidden

NewExportChatInviteLinkForbidden creates a ExportChatInviteLinkForbidden with default headers values

func (*ExportChatInviteLinkForbidden) Error

type ExportChatInviteLinkInternalServerError

type ExportChatInviteLinkInternalServerError struct {
	Payload *models.Error
}

ExportChatInviteLinkInternalServerError handles this case with default header values.

Internal

func NewExportChatInviteLinkInternalServerError

func NewExportChatInviteLinkInternalServerError() *ExportChatInviteLinkInternalServerError

NewExportChatInviteLinkInternalServerError creates a ExportChatInviteLinkInternalServerError with default headers values

func (*ExportChatInviteLinkInternalServerError) Error

type ExportChatInviteLinkNotFound

type ExportChatInviteLinkNotFound struct {
	Payload *models.Error
}

ExportChatInviteLinkNotFound handles this case with default header values.

Not Found

func NewExportChatInviteLinkNotFound

func NewExportChatInviteLinkNotFound() *ExportChatInviteLinkNotFound

NewExportChatInviteLinkNotFound creates a ExportChatInviteLinkNotFound with default headers values

func (*ExportChatInviteLinkNotFound) Error

type ExportChatInviteLinkOK

type ExportChatInviteLinkOK struct {
	Payload string
}

ExportChatInviteLinkOK handles this case with default header values.

ExportChatInviteLinkOK export chat invite link o k

func NewExportChatInviteLinkOK

func NewExportChatInviteLinkOK() *ExportChatInviteLinkOK

NewExportChatInviteLinkOK creates a ExportChatInviteLinkOK with default headers values

func (*ExportChatInviteLinkOK) Error

func (o *ExportChatInviteLinkOK) Error() string

type ExportChatInviteLinkParams

type ExportChatInviteLinkParams struct {

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

	*/
	Token *string

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

ExportChatInviteLinkParams contains all the parameters to send to the API endpoint for the export chat invite link operation typically these are written to a http.Request

func NewExportChatInviteLinkParams

func NewExportChatInviteLinkParams() *ExportChatInviteLinkParams

NewExportChatInviteLinkParams creates a new ExportChatInviteLinkParams object with the default values initialized.

func NewExportChatInviteLinkParamsWithContext

func NewExportChatInviteLinkParamsWithContext(ctx context.Context) *ExportChatInviteLinkParams

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

func NewExportChatInviteLinkParamsWithHTTPClient

func NewExportChatInviteLinkParamsWithHTTPClient(client *http.Client) *ExportChatInviteLinkParams

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

func NewExportChatInviteLinkParamsWithTimeout

func NewExportChatInviteLinkParamsWithTimeout(timeout time.Duration) *ExportChatInviteLinkParams

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

func (*ExportChatInviteLinkParams) SetChatID

func (o *ExportChatInviteLinkParams) SetChatID(chatID string)

SetChatID adds the chatId to the export chat invite link params

func (*ExportChatInviteLinkParams) SetContext

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

SetContext adds the context to the export chat invite link params

func (*ExportChatInviteLinkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export chat invite link params

func (*ExportChatInviteLinkParams) SetTimeout

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

SetTimeout adds the timeout to the export chat invite link params

func (*ExportChatInviteLinkParams) SetToken

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

SetToken adds the token to the export chat invite link params

func (*ExportChatInviteLinkParams) WithChatID

WithChatID adds the chatID to the export chat invite link params

func (*ExportChatInviteLinkParams) WithContext

WithContext adds the context to the export chat invite link params

func (*ExportChatInviteLinkParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the export chat invite link params

func (*ExportChatInviteLinkParams) WithTimeout

WithTimeout adds the timeout to the export chat invite link params

func (*ExportChatInviteLinkParams) WithToken

WithToken adds the token to the export chat invite link params

func (*ExportChatInviteLinkParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ExportChatInviteLinkReader

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

ExportChatInviteLinkReader is a Reader for the ExportChatInviteLink structure.

func (*ExportChatInviteLinkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportChatInviteLinkUnauthorized

type ExportChatInviteLinkUnauthorized struct {
	Payload *models.Error
}

ExportChatInviteLinkUnauthorized handles this case with default header values.

Unauthorized

func NewExportChatInviteLinkUnauthorized

func NewExportChatInviteLinkUnauthorized() *ExportChatInviteLinkUnauthorized

NewExportChatInviteLinkUnauthorized creates a ExportChatInviteLinkUnauthorized with default headers values

func (*ExportChatInviteLinkUnauthorized) Error

type GetChatAdministratorsBadRequest

type GetChatAdministratorsBadRequest struct {
	Payload *models.Error
}

GetChatAdministratorsBadRequest handles this case with default header values.

Bad Request

func NewGetChatAdministratorsBadRequest

func NewGetChatAdministratorsBadRequest() *GetChatAdministratorsBadRequest

NewGetChatAdministratorsBadRequest creates a GetChatAdministratorsBadRequest with default headers values

func (*GetChatAdministratorsBadRequest) Error

type GetChatAdministratorsEnhanceYourCalm

type GetChatAdministratorsEnhanceYourCalm struct {
	Payload *models.Error
}

GetChatAdministratorsEnhanceYourCalm handles this case with default header values.

Flood

func NewGetChatAdministratorsEnhanceYourCalm

func NewGetChatAdministratorsEnhanceYourCalm() *GetChatAdministratorsEnhanceYourCalm

NewGetChatAdministratorsEnhanceYourCalm creates a GetChatAdministratorsEnhanceYourCalm with default headers values

func (*GetChatAdministratorsEnhanceYourCalm) Error

type GetChatAdministratorsForbidden

type GetChatAdministratorsForbidden struct {
	Payload *models.Error
}

GetChatAdministratorsForbidden handles this case with default header values.

Forbidden

func NewGetChatAdministratorsForbidden

func NewGetChatAdministratorsForbidden() *GetChatAdministratorsForbidden

NewGetChatAdministratorsForbidden creates a GetChatAdministratorsForbidden with default headers values

func (*GetChatAdministratorsForbidden) Error

type GetChatAdministratorsInternalServerError

type GetChatAdministratorsInternalServerError struct {
	Payload *models.Error
}

GetChatAdministratorsInternalServerError handles this case with default header values.

Internal

func NewGetChatAdministratorsInternalServerError

func NewGetChatAdministratorsInternalServerError() *GetChatAdministratorsInternalServerError

NewGetChatAdministratorsInternalServerError creates a GetChatAdministratorsInternalServerError with default headers values

func (*GetChatAdministratorsInternalServerError) Error

type GetChatAdministratorsNotFound

type GetChatAdministratorsNotFound struct {
	Payload *models.Error
}

GetChatAdministratorsNotFound handles this case with default header values.

Not Found

func NewGetChatAdministratorsNotFound

func NewGetChatAdministratorsNotFound() *GetChatAdministratorsNotFound

NewGetChatAdministratorsNotFound creates a GetChatAdministratorsNotFound with default headers values

func (*GetChatAdministratorsNotFound) Error

type GetChatAdministratorsOK

type GetChatAdministratorsOK struct {
	Payload GetChatAdministratorsOKBody
}

GetChatAdministratorsOK handles this case with default header values.

GetChatAdministratorsOK get chat administrators o k

func NewGetChatAdministratorsOK

func NewGetChatAdministratorsOK() *GetChatAdministratorsOK

NewGetChatAdministratorsOK creates a GetChatAdministratorsOK with default headers values

func (*GetChatAdministratorsOK) Error

func (o *GetChatAdministratorsOK) Error() string

type GetChatAdministratorsOKBody

type GetChatAdministratorsOKBody 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 []*models.ChatMember `json:"result"`
}

GetChatAdministratorsOKBody get chat administrators o k body swagger:model GetChatAdministratorsOKBody

func (*GetChatAdministratorsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChatAdministratorsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChatAdministratorsOKBody) Validate

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

Validate validates this get chat administrators o k body

type GetChatAdministratorsParams

type GetChatAdministratorsParams struct {

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

	*/
	Token *string

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

GetChatAdministratorsParams contains all the parameters to send to the API endpoint for the get chat administrators operation typically these are written to a http.Request

func NewGetChatAdministratorsParams

func NewGetChatAdministratorsParams() *GetChatAdministratorsParams

NewGetChatAdministratorsParams creates a new GetChatAdministratorsParams object with the default values initialized.

func NewGetChatAdministratorsParamsWithContext

func NewGetChatAdministratorsParamsWithContext(ctx context.Context) *GetChatAdministratorsParams

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

func NewGetChatAdministratorsParamsWithHTTPClient

func NewGetChatAdministratorsParamsWithHTTPClient(client *http.Client) *GetChatAdministratorsParams

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

func NewGetChatAdministratorsParamsWithTimeout

func NewGetChatAdministratorsParamsWithTimeout(timeout time.Duration) *GetChatAdministratorsParams

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

func (*GetChatAdministratorsParams) SetChatID

func (o *GetChatAdministratorsParams) SetChatID(chatID string)

SetChatID adds the chatId to the get chat administrators params

func (*GetChatAdministratorsParams) SetContext

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

SetContext adds the context to the get chat administrators params

func (*GetChatAdministratorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get chat administrators params

func (*GetChatAdministratorsParams) SetTimeout

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

SetTimeout adds the timeout to the get chat administrators params

func (*GetChatAdministratorsParams) SetToken

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

SetToken adds the token to the get chat administrators params

func (*GetChatAdministratorsParams) WithChatID

WithChatID adds the chatID to the get chat administrators params

func (*GetChatAdministratorsParams) WithContext

WithContext adds the context to the get chat administrators params

func (*GetChatAdministratorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get chat administrators params

func (*GetChatAdministratorsParams) WithTimeout

WithTimeout adds the timeout to the get chat administrators params

func (*GetChatAdministratorsParams) WithToken

WithToken adds the token to the get chat administrators params

func (*GetChatAdministratorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetChatAdministratorsReader

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

GetChatAdministratorsReader is a Reader for the GetChatAdministrators structure.

func (*GetChatAdministratorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChatAdministratorsUnauthorized

type GetChatAdministratorsUnauthorized struct {
	Payload *models.Error
}

GetChatAdministratorsUnauthorized handles this case with default header values.

Unauthorized

func NewGetChatAdministratorsUnauthorized

func NewGetChatAdministratorsUnauthorized() *GetChatAdministratorsUnauthorized

NewGetChatAdministratorsUnauthorized creates a GetChatAdministratorsUnauthorized with default headers values

func (*GetChatAdministratorsUnauthorized) Error

type GetChatBadRequest

type GetChatBadRequest struct {
	Payload *models.Error
}

GetChatBadRequest handles this case with default header values.

Bad Request

func NewGetChatBadRequest

func NewGetChatBadRequest() *GetChatBadRequest

NewGetChatBadRequest creates a GetChatBadRequest with default headers values

func (*GetChatBadRequest) Error

func (o *GetChatBadRequest) Error() string

type GetChatEnhanceYourCalm

type GetChatEnhanceYourCalm struct {
	Payload *models.Error
}

GetChatEnhanceYourCalm handles this case with default header values.

Flood

func NewGetChatEnhanceYourCalm

func NewGetChatEnhanceYourCalm() *GetChatEnhanceYourCalm

NewGetChatEnhanceYourCalm creates a GetChatEnhanceYourCalm with default headers values

func (*GetChatEnhanceYourCalm) Error

func (o *GetChatEnhanceYourCalm) Error() string

type GetChatForbidden

type GetChatForbidden struct {
	Payload *models.Error
}

GetChatForbidden handles this case with default header values.

Forbidden

func NewGetChatForbidden

func NewGetChatForbidden() *GetChatForbidden

NewGetChatForbidden creates a GetChatForbidden with default headers values

func (*GetChatForbidden) Error

func (o *GetChatForbidden) Error() string

type GetChatInternalServerError

type GetChatInternalServerError struct {
	Payload *models.Error
}

GetChatInternalServerError handles this case with default header values.

Internal

func NewGetChatInternalServerError

func NewGetChatInternalServerError() *GetChatInternalServerError

NewGetChatInternalServerError creates a GetChatInternalServerError with default headers values

func (*GetChatInternalServerError) Error

type GetChatMemberBadRequest

type GetChatMemberBadRequest struct {
	Payload *models.Error
}

GetChatMemberBadRequest handles this case with default header values.

Bad Request

func NewGetChatMemberBadRequest

func NewGetChatMemberBadRequest() *GetChatMemberBadRequest

NewGetChatMemberBadRequest creates a GetChatMemberBadRequest with default headers values

func (*GetChatMemberBadRequest) Error

func (o *GetChatMemberBadRequest) Error() string

type GetChatMemberEnhanceYourCalm

type GetChatMemberEnhanceYourCalm struct {
	Payload *models.Error
}

GetChatMemberEnhanceYourCalm handles this case with default header values.

Flood

func NewGetChatMemberEnhanceYourCalm

func NewGetChatMemberEnhanceYourCalm() *GetChatMemberEnhanceYourCalm

NewGetChatMemberEnhanceYourCalm creates a GetChatMemberEnhanceYourCalm with default headers values

func (*GetChatMemberEnhanceYourCalm) Error

type GetChatMemberForbidden

type GetChatMemberForbidden struct {
	Payload *models.Error
}

GetChatMemberForbidden handles this case with default header values.

Forbidden

func NewGetChatMemberForbidden

func NewGetChatMemberForbidden() *GetChatMemberForbidden

NewGetChatMemberForbidden creates a GetChatMemberForbidden with default headers values

func (*GetChatMemberForbidden) Error

func (o *GetChatMemberForbidden) Error() string

type GetChatMemberInternalServerError

type GetChatMemberInternalServerError struct {
	Payload *models.Error
}

GetChatMemberInternalServerError handles this case with default header values.

Internal

func NewGetChatMemberInternalServerError

func NewGetChatMemberInternalServerError() *GetChatMemberInternalServerError

NewGetChatMemberInternalServerError creates a GetChatMemberInternalServerError with default headers values

func (*GetChatMemberInternalServerError) Error

type GetChatMemberNotFound

type GetChatMemberNotFound struct {
	Payload *models.Error
}

GetChatMemberNotFound handles this case with default header values.

Not Found

func NewGetChatMemberNotFound

func NewGetChatMemberNotFound() *GetChatMemberNotFound

NewGetChatMemberNotFound creates a GetChatMemberNotFound with default headers values

func (*GetChatMemberNotFound) Error

func (o *GetChatMemberNotFound) Error() string

type GetChatMemberOK

type GetChatMemberOK struct {
	Payload GetChatMemberOKBody
}

GetChatMemberOK handles this case with default header values.

GetChatMemberOK get chat member o k

func NewGetChatMemberOK

func NewGetChatMemberOK() *GetChatMemberOK

NewGetChatMemberOK creates a GetChatMemberOK with default headers values

func (*GetChatMemberOK) Error

func (o *GetChatMemberOK) Error() string

type GetChatMemberOKBody

type GetChatMemberOKBody 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 *models.ChatMember `json:"result"`
}

GetChatMemberOKBody get chat member o k body swagger:model GetChatMemberOKBody

func (*GetChatMemberOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChatMemberOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChatMemberOKBody) Validate

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

Validate validates this get chat member o k body

type GetChatMemberParams

type GetChatMemberParams struct {

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

	*/
	Token *string
	/*UserID*/
	UserID string

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

GetChatMemberParams contains all the parameters to send to the API endpoint for the get chat member operation typically these are written to a http.Request

func NewGetChatMemberParams

func NewGetChatMemberParams() *GetChatMemberParams

NewGetChatMemberParams creates a new GetChatMemberParams object with the default values initialized.

func NewGetChatMemberParamsWithContext

func NewGetChatMemberParamsWithContext(ctx context.Context) *GetChatMemberParams

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

func NewGetChatMemberParamsWithHTTPClient

func NewGetChatMemberParamsWithHTTPClient(client *http.Client) *GetChatMemberParams

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

func NewGetChatMemberParamsWithTimeout

func NewGetChatMemberParamsWithTimeout(timeout time.Duration) *GetChatMemberParams

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

func (*GetChatMemberParams) SetChatID

func (o *GetChatMemberParams) SetChatID(chatID string)

SetChatID adds the chatId to the get chat member params

func (*GetChatMemberParams) SetContext

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

SetContext adds the context to the get chat member params

func (*GetChatMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get chat member params

func (*GetChatMemberParams) SetTimeout

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

SetTimeout adds the timeout to the get chat member params

func (*GetChatMemberParams) SetToken

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

SetToken adds the token to the get chat member params

func (*GetChatMemberParams) SetUserID

func (o *GetChatMemberParams) SetUserID(userID string)

SetUserID adds the userId to the get chat member params

func (*GetChatMemberParams) WithChatID

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

WithChatID adds the chatID to the get chat member params

func (*GetChatMemberParams) WithContext

WithContext adds the context to the get chat member params

func (*GetChatMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get chat member params

func (*GetChatMemberParams) WithTimeout

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

WithTimeout adds the timeout to the get chat member params

func (*GetChatMemberParams) WithToken

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

WithToken adds the token to the get chat member params

func (*GetChatMemberParams) WithUserID

func (o *GetChatMemberParams) WithUserID(userID string) *GetChatMemberParams

WithUserID adds the userID to the get chat member params

func (*GetChatMemberParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetChatMemberReader

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

GetChatMemberReader is a Reader for the GetChatMember structure.

func (*GetChatMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChatMemberUnauthorized

type GetChatMemberUnauthorized struct {
	Payload *models.Error
}

GetChatMemberUnauthorized handles this case with default header values.

Unauthorized

func NewGetChatMemberUnauthorized

func NewGetChatMemberUnauthorized() *GetChatMemberUnauthorized

NewGetChatMemberUnauthorized creates a GetChatMemberUnauthorized with default headers values

func (*GetChatMemberUnauthorized) Error

func (o *GetChatMemberUnauthorized) Error() string

type GetChatMembersCountBadRequest

type GetChatMembersCountBadRequest struct {
	Payload *models.Error
}

GetChatMembersCountBadRequest handles this case with default header values.

Bad Request

func NewGetChatMembersCountBadRequest

func NewGetChatMembersCountBadRequest() *GetChatMembersCountBadRequest

NewGetChatMembersCountBadRequest creates a GetChatMembersCountBadRequest with default headers values

func (*GetChatMembersCountBadRequest) Error

type GetChatMembersCountEnhanceYourCalm

type GetChatMembersCountEnhanceYourCalm struct {
	Payload *models.Error
}

GetChatMembersCountEnhanceYourCalm handles this case with default header values.

Flood

func NewGetChatMembersCountEnhanceYourCalm

func NewGetChatMembersCountEnhanceYourCalm() *GetChatMembersCountEnhanceYourCalm

NewGetChatMembersCountEnhanceYourCalm creates a GetChatMembersCountEnhanceYourCalm with default headers values

func (*GetChatMembersCountEnhanceYourCalm) Error

type GetChatMembersCountForbidden

type GetChatMembersCountForbidden struct {
	Payload *models.Error
}

GetChatMembersCountForbidden handles this case with default header values.

Forbidden

func NewGetChatMembersCountForbidden

func NewGetChatMembersCountForbidden() *GetChatMembersCountForbidden

NewGetChatMembersCountForbidden creates a GetChatMembersCountForbidden with default headers values

func (*GetChatMembersCountForbidden) Error

type GetChatMembersCountInternalServerError

type GetChatMembersCountInternalServerError struct {
	Payload *models.Error
}

GetChatMembersCountInternalServerError handles this case with default header values.

Internal

func NewGetChatMembersCountInternalServerError

func NewGetChatMembersCountInternalServerError() *GetChatMembersCountInternalServerError

NewGetChatMembersCountInternalServerError creates a GetChatMembersCountInternalServerError with default headers values

func (*GetChatMembersCountInternalServerError) Error

type GetChatMembersCountNotFound

type GetChatMembersCountNotFound struct {
	Payload *models.Error
}

GetChatMembersCountNotFound handles this case with default header values.

Not Found

func NewGetChatMembersCountNotFound

func NewGetChatMembersCountNotFound() *GetChatMembersCountNotFound

NewGetChatMembersCountNotFound creates a GetChatMembersCountNotFound with default headers values

func (*GetChatMembersCountNotFound) Error

type GetChatMembersCountOK

type GetChatMembersCountOK struct {
	Payload GetChatMembersCountOKBody
}

GetChatMembersCountOK handles this case with default header values.

GetChatMembersCountOK get chat members count o k

func NewGetChatMembersCountOK

func NewGetChatMembersCountOK() *GetChatMembersCountOK

NewGetChatMembersCountOK creates a GetChatMembersCountOK with default headers values

func (*GetChatMembersCountOK) Error

func (o *GetChatMembersCountOK) Error() string

type GetChatMembersCountOKBody

type GetChatMembersCountOKBody 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 *int64 `json:"result"`
}

GetChatMembersCountOKBody get chat members count o k body swagger:model GetChatMembersCountOKBody

func (*GetChatMembersCountOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChatMembersCountOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChatMembersCountOKBody) Validate

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

Validate validates this get chat members count o k body

type GetChatMembersCountParams

type GetChatMembersCountParams struct {

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

	*/
	Token *string

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

GetChatMembersCountParams contains all the parameters to send to the API endpoint for the get chat members count operation typically these are written to a http.Request

func NewGetChatMembersCountParams

func NewGetChatMembersCountParams() *GetChatMembersCountParams

NewGetChatMembersCountParams creates a new GetChatMembersCountParams object with the default values initialized.

func NewGetChatMembersCountParamsWithContext

func NewGetChatMembersCountParamsWithContext(ctx context.Context) *GetChatMembersCountParams

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

func NewGetChatMembersCountParamsWithHTTPClient

func NewGetChatMembersCountParamsWithHTTPClient(client *http.Client) *GetChatMembersCountParams

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

func NewGetChatMembersCountParamsWithTimeout

func NewGetChatMembersCountParamsWithTimeout(timeout time.Duration) *GetChatMembersCountParams

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

func (*GetChatMembersCountParams) SetChatID

func (o *GetChatMembersCountParams) SetChatID(chatID string)

SetChatID adds the chatId to the get chat members count params

func (*GetChatMembersCountParams) SetContext

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

SetContext adds the context to the get chat members count params

func (*GetChatMembersCountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get chat members count params

func (*GetChatMembersCountParams) SetTimeout

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

SetTimeout adds the timeout to the get chat members count params

func (*GetChatMembersCountParams) SetToken

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

SetToken adds the token to the get chat members count params

func (*GetChatMembersCountParams) WithChatID

WithChatID adds the chatID to the get chat members count params

func (*GetChatMembersCountParams) WithContext

WithContext adds the context to the get chat members count params

func (*GetChatMembersCountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get chat members count params

func (*GetChatMembersCountParams) WithTimeout

WithTimeout adds the timeout to the get chat members count params

func (*GetChatMembersCountParams) WithToken

WithToken adds the token to the get chat members count params

func (*GetChatMembersCountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetChatMembersCountReader

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

GetChatMembersCountReader is a Reader for the GetChatMembersCount structure.

func (*GetChatMembersCountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChatMembersCountUnauthorized

type GetChatMembersCountUnauthorized struct {
	Payload *models.Error
}

GetChatMembersCountUnauthorized handles this case with default header values.

Unauthorized

func NewGetChatMembersCountUnauthorized

func NewGetChatMembersCountUnauthorized() *GetChatMembersCountUnauthorized

NewGetChatMembersCountUnauthorized creates a GetChatMembersCountUnauthorized with default headers values

func (*GetChatMembersCountUnauthorized) Error

type GetChatNotFound

type GetChatNotFound struct {
	Payload *models.Error
}

GetChatNotFound handles this case with default header values.

Not Found

func NewGetChatNotFound

func NewGetChatNotFound() *GetChatNotFound

NewGetChatNotFound creates a GetChatNotFound with default headers values

func (*GetChatNotFound) Error

func (o *GetChatNotFound) Error() string

type GetChatOK

type GetChatOK struct {
	Payload GetChatOKBody
}

GetChatOK handles this case with default header values.

GetChatOK get chat o k

func NewGetChatOK

func NewGetChatOK() *GetChatOK

NewGetChatOK creates a GetChatOK with default headers values

func (*GetChatOK) Error

func (o *GetChatOK) Error() string

type GetChatOKBody

type GetChatOKBody 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 *models.Chat `json:"result"`
}

GetChatOKBody get chat o k body swagger:model GetChatOKBody

func (*GetChatOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChatOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChatOKBody) Validate

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

Validate validates this get chat o k body

type GetChatParams

type GetChatParams struct {

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

	*/
	Token *string

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

GetChatParams contains all the parameters to send to the API endpoint for the get chat operation typically these are written to a http.Request

func NewGetChatParams

func NewGetChatParams() *GetChatParams

NewGetChatParams creates a new GetChatParams object with the default values initialized.

func NewGetChatParamsWithContext

func NewGetChatParamsWithContext(ctx context.Context) *GetChatParams

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

func NewGetChatParamsWithHTTPClient

func NewGetChatParamsWithHTTPClient(client *http.Client) *GetChatParams

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

func NewGetChatParamsWithTimeout

func NewGetChatParamsWithTimeout(timeout time.Duration) *GetChatParams

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

func (*GetChatParams) SetChatID

func (o *GetChatParams) SetChatID(chatID string)

SetChatID adds the chatId to the get chat params

func (*GetChatParams) SetContext

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

SetContext adds the context to the get chat params

func (*GetChatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get chat params

func (*GetChatParams) SetTimeout

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

SetTimeout adds the timeout to the get chat params

func (*GetChatParams) SetToken

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

SetToken adds the token to the get chat params

func (*GetChatParams) WithChatID

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

WithChatID adds the chatID to the get chat params

func (*GetChatParams) WithContext

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

WithContext adds the context to the get chat params

func (*GetChatParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get chat params

func (*GetChatParams) WithTimeout

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

WithTimeout adds the timeout to the get chat params

func (*GetChatParams) WithToken

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

WithToken adds the token to the get chat params

func (*GetChatParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetChatReader

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

GetChatReader is a Reader for the GetChat structure.

func (*GetChatReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChatUnauthorized

type GetChatUnauthorized struct {
	Payload *models.Error
}

GetChatUnauthorized handles this case with default header values.

Unauthorized

func NewGetChatUnauthorized

func NewGetChatUnauthorized() *GetChatUnauthorized

NewGetChatUnauthorized creates a GetChatUnauthorized with default headers values

func (*GetChatUnauthorized) Error

func (o *GetChatUnauthorized) Error() string

type KickChatMemberBadRequest

type KickChatMemberBadRequest struct {
	Payload *models.Error
}

KickChatMemberBadRequest handles this case with default header values.

Bad Request

func NewKickChatMemberBadRequest

func NewKickChatMemberBadRequest() *KickChatMemberBadRequest

NewKickChatMemberBadRequest creates a KickChatMemberBadRequest with default headers values

func (*KickChatMemberBadRequest) Error

func (o *KickChatMemberBadRequest) Error() string

type KickChatMemberEnhanceYourCalm

type KickChatMemberEnhanceYourCalm struct {
	Payload *models.Error
}

KickChatMemberEnhanceYourCalm handles this case with default header values.

Flood

func NewKickChatMemberEnhanceYourCalm

func NewKickChatMemberEnhanceYourCalm() *KickChatMemberEnhanceYourCalm

NewKickChatMemberEnhanceYourCalm creates a KickChatMemberEnhanceYourCalm with default headers values

func (*KickChatMemberEnhanceYourCalm) Error

type KickChatMemberForbidden

type KickChatMemberForbidden struct {
	Payload *models.Error
}

KickChatMemberForbidden handles this case with default header values.

Forbidden

func NewKickChatMemberForbidden

func NewKickChatMemberForbidden() *KickChatMemberForbidden

NewKickChatMemberForbidden creates a KickChatMemberForbidden with default headers values

func (*KickChatMemberForbidden) Error

func (o *KickChatMemberForbidden) Error() string

type KickChatMemberInternalServerError

type KickChatMemberInternalServerError struct {
	Payload *models.Error
}

KickChatMemberInternalServerError handles this case with default header values.

Internal

func NewKickChatMemberInternalServerError

func NewKickChatMemberInternalServerError() *KickChatMemberInternalServerError

NewKickChatMemberInternalServerError creates a KickChatMemberInternalServerError with default headers values

func (*KickChatMemberInternalServerError) Error

type KickChatMemberNotFound

type KickChatMemberNotFound struct {
	Payload *models.Error
}

KickChatMemberNotFound handles this case with default header values.

Not Found

func NewKickChatMemberNotFound

func NewKickChatMemberNotFound() *KickChatMemberNotFound

NewKickChatMemberNotFound creates a KickChatMemberNotFound with default headers values

func (*KickChatMemberNotFound) Error

func (o *KickChatMemberNotFound) Error() string

type KickChatMemberOK

type KickChatMemberOK struct {
	Payload *models.ResponseBool
}

KickChatMemberOK handles this case with default header values.

KickChatMemberOK kick chat member o k

func NewKickChatMemberOK

func NewKickChatMemberOK() *KickChatMemberOK

NewKickChatMemberOK creates a KickChatMemberOK with default headers values

func (*KickChatMemberOK) Error

func (o *KickChatMemberOK) Error() string

type KickChatMemberParams

type KickChatMemberParams struct {

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

	*/
	Token *string
	/*UntilDate*/
	UntilDate *int64
	/*UserID*/
	UserID int64

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

KickChatMemberParams contains all the parameters to send to the API endpoint for the kick chat member operation typically these are written to a http.Request

func NewKickChatMemberParams

func NewKickChatMemberParams() *KickChatMemberParams

NewKickChatMemberParams creates a new KickChatMemberParams object with the default values initialized.

func NewKickChatMemberParamsWithContext

func NewKickChatMemberParamsWithContext(ctx context.Context) *KickChatMemberParams

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

func NewKickChatMemberParamsWithHTTPClient

func NewKickChatMemberParamsWithHTTPClient(client *http.Client) *KickChatMemberParams

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

func NewKickChatMemberParamsWithTimeout

func NewKickChatMemberParamsWithTimeout(timeout time.Duration) *KickChatMemberParams

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

func (*KickChatMemberParams) SetChatID

func (o *KickChatMemberParams) SetChatID(chatID string)

SetChatID adds the chatId to the kick chat member params

func (*KickChatMemberParams) SetContext

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

SetContext adds the context to the kick chat member params

func (*KickChatMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the kick chat member params

func (*KickChatMemberParams) SetTimeout

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

SetTimeout adds the timeout to the kick chat member params

func (*KickChatMemberParams) SetToken

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

SetToken adds the token to the kick chat member params

func (*KickChatMemberParams) SetUntilDate

func (o *KickChatMemberParams) SetUntilDate(untilDate *int64)

SetUntilDate adds the untilDate to the kick chat member params

func (*KickChatMemberParams) SetUserID

func (o *KickChatMemberParams) SetUserID(userID int64)

SetUserID adds the userId to the kick chat member params

func (*KickChatMemberParams) WithChatID

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

WithChatID adds the chatID to the kick chat member params

func (*KickChatMemberParams) WithContext

WithContext adds the context to the kick chat member params

func (*KickChatMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the kick chat member params

func (*KickChatMemberParams) WithTimeout

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

WithTimeout adds the timeout to the kick chat member params

func (*KickChatMemberParams) WithToken

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

WithToken adds the token to the kick chat member params

func (*KickChatMemberParams) WithUntilDate

func (o *KickChatMemberParams) WithUntilDate(untilDate *int64) *KickChatMemberParams

WithUntilDate adds the untilDate to the kick chat member params

func (*KickChatMemberParams) WithUserID

func (o *KickChatMemberParams) WithUserID(userID int64) *KickChatMemberParams

WithUserID adds the userID to the kick chat member params

func (*KickChatMemberParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type KickChatMemberReader

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

KickChatMemberReader is a Reader for the KickChatMember structure.

func (*KickChatMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type KickChatMemberUnauthorized

type KickChatMemberUnauthorized struct {
	Payload *models.Error
}

KickChatMemberUnauthorized handles this case with default header values.

Unauthorized

func NewKickChatMemberUnauthorized

func NewKickChatMemberUnauthorized() *KickChatMemberUnauthorized

NewKickChatMemberUnauthorized creates a KickChatMemberUnauthorized with default headers values

func (*KickChatMemberUnauthorized) Error

type LeaveChatBadRequest

type LeaveChatBadRequest struct {
	Payload *models.Error
}

LeaveChatBadRequest handles this case with default header values.

Bad Request

func NewLeaveChatBadRequest

func NewLeaveChatBadRequest() *LeaveChatBadRequest

NewLeaveChatBadRequest creates a LeaveChatBadRequest with default headers values

func (*LeaveChatBadRequest) Error

func (o *LeaveChatBadRequest) Error() string

type LeaveChatEnhanceYourCalm

type LeaveChatEnhanceYourCalm struct {
	Payload *models.Error
}

LeaveChatEnhanceYourCalm handles this case with default header values.

Flood

func NewLeaveChatEnhanceYourCalm

func NewLeaveChatEnhanceYourCalm() *LeaveChatEnhanceYourCalm

NewLeaveChatEnhanceYourCalm creates a LeaveChatEnhanceYourCalm with default headers values

func (*LeaveChatEnhanceYourCalm) Error

func (o *LeaveChatEnhanceYourCalm) Error() string

type LeaveChatForbidden

type LeaveChatForbidden struct {
	Payload *models.Error
}

LeaveChatForbidden handles this case with default header values.

Forbidden

func NewLeaveChatForbidden

func NewLeaveChatForbidden() *LeaveChatForbidden

NewLeaveChatForbidden creates a LeaveChatForbidden with default headers values

func (*LeaveChatForbidden) Error

func (o *LeaveChatForbidden) Error() string

type LeaveChatInternalServerError

type LeaveChatInternalServerError struct {
	Payload *models.Error
}

LeaveChatInternalServerError handles this case with default header values.

Internal

func NewLeaveChatInternalServerError

func NewLeaveChatInternalServerError() *LeaveChatInternalServerError

NewLeaveChatInternalServerError creates a LeaveChatInternalServerError with default headers values

func (*LeaveChatInternalServerError) Error

type LeaveChatNotFound

type LeaveChatNotFound struct {
	Payload *models.Error
}

LeaveChatNotFound handles this case with default header values.

Not Found

func NewLeaveChatNotFound

func NewLeaveChatNotFound() *LeaveChatNotFound

NewLeaveChatNotFound creates a LeaveChatNotFound with default headers values

func (*LeaveChatNotFound) Error

func (o *LeaveChatNotFound) Error() string

type LeaveChatOK

type LeaveChatOK struct {
	Payload *models.ResponseBool
}

LeaveChatOK handles this case with default header values.

LeaveChatOK leave chat o k

func NewLeaveChatOK

func NewLeaveChatOK() *LeaveChatOK

NewLeaveChatOK creates a LeaveChatOK with default headers values

func (*LeaveChatOK) Error

func (o *LeaveChatOK) Error() string

type LeaveChatParams

type LeaveChatParams struct {

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

	*/
	Token *string

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

LeaveChatParams contains all the parameters to send to the API endpoint for the leave chat operation typically these are written to a http.Request

func NewLeaveChatParams

func NewLeaveChatParams() *LeaveChatParams

NewLeaveChatParams creates a new LeaveChatParams object with the default values initialized.

func NewLeaveChatParamsWithContext

func NewLeaveChatParamsWithContext(ctx context.Context) *LeaveChatParams

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

func NewLeaveChatParamsWithHTTPClient

func NewLeaveChatParamsWithHTTPClient(client *http.Client) *LeaveChatParams

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

func NewLeaveChatParamsWithTimeout

func NewLeaveChatParamsWithTimeout(timeout time.Duration) *LeaveChatParams

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

func (*LeaveChatParams) SetChatID

func (o *LeaveChatParams) SetChatID(chatID string)

SetChatID adds the chatId to the leave chat params

func (*LeaveChatParams) SetContext

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

SetContext adds the context to the leave chat params

func (*LeaveChatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the leave chat params

func (*LeaveChatParams) SetTimeout

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

SetTimeout adds the timeout to the leave chat params

func (*LeaveChatParams) SetToken

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

SetToken adds the token to the leave chat params

func (*LeaveChatParams) WithChatID

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

WithChatID adds the chatID to the leave chat params

func (*LeaveChatParams) WithContext

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

WithContext adds the context to the leave chat params

func (*LeaveChatParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the leave chat params

func (*LeaveChatParams) WithTimeout

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

WithTimeout adds the timeout to the leave chat params

func (*LeaveChatParams) WithToken

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

WithToken adds the token to the leave chat params

func (*LeaveChatParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LeaveChatReader

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

LeaveChatReader is a Reader for the LeaveChat structure.

func (*LeaveChatReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LeaveChatUnauthorized

type LeaveChatUnauthorized struct {
	Payload *models.Error
}

LeaveChatUnauthorized handles this case with default header values.

Unauthorized

func NewLeaveChatUnauthorized

func NewLeaveChatUnauthorized() *LeaveChatUnauthorized

NewLeaveChatUnauthorized creates a LeaveChatUnauthorized with default headers values

func (*LeaveChatUnauthorized) Error

func (o *LeaveChatUnauthorized) Error() string

type PinChatMessageBadRequest

type PinChatMessageBadRequest struct {
	Payload *models.Error
}

PinChatMessageBadRequest handles this case with default header values.

Bad Request

func NewPinChatMessageBadRequest

func NewPinChatMessageBadRequest() *PinChatMessageBadRequest

NewPinChatMessageBadRequest creates a PinChatMessageBadRequest with default headers values

func (*PinChatMessageBadRequest) Error

func (o *PinChatMessageBadRequest) Error() string

type PinChatMessageEnhanceYourCalm

type PinChatMessageEnhanceYourCalm struct {
	Payload *models.Error
}

PinChatMessageEnhanceYourCalm handles this case with default header values.

Flood

func NewPinChatMessageEnhanceYourCalm

func NewPinChatMessageEnhanceYourCalm() *PinChatMessageEnhanceYourCalm

NewPinChatMessageEnhanceYourCalm creates a PinChatMessageEnhanceYourCalm with default headers values

func (*PinChatMessageEnhanceYourCalm) Error

type PinChatMessageForbidden

type PinChatMessageForbidden struct {
	Payload *models.Error
}

PinChatMessageForbidden handles this case with default header values.

Forbidden

func NewPinChatMessageForbidden

func NewPinChatMessageForbidden() *PinChatMessageForbidden

NewPinChatMessageForbidden creates a PinChatMessageForbidden with default headers values

func (*PinChatMessageForbidden) Error

func (o *PinChatMessageForbidden) Error() string

type PinChatMessageInternalServerError

type PinChatMessageInternalServerError struct {
	Payload *models.Error
}

PinChatMessageInternalServerError handles this case with default header values.

Internal

func NewPinChatMessageInternalServerError

func NewPinChatMessageInternalServerError() *PinChatMessageInternalServerError

NewPinChatMessageInternalServerError creates a PinChatMessageInternalServerError with default headers values

func (*PinChatMessageInternalServerError) Error

type PinChatMessageNotFound

type PinChatMessageNotFound struct {
	Payload *models.Error
}

PinChatMessageNotFound handles this case with default header values.

Not Found

func NewPinChatMessageNotFound

func NewPinChatMessageNotFound() *PinChatMessageNotFound

NewPinChatMessageNotFound creates a PinChatMessageNotFound with default headers values

func (*PinChatMessageNotFound) Error

func (o *PinChatMessageNotFound) Error() string

type PinChatMessageOK

type PinChatMessageOK struct {
	Payload *models.ResponseBool
}

PinChatMessageOK handles this case with default header values.

PinChatMessageOK pin chat message o k

func NewPinChatMessageOK

func NewPinChatMessageOK() *PinChatMessageOK

NewPinChatMessageOK creates a PinChatMessageOK with default headers values

func (*PinChatMessageOK) Error

func (o *PinChatMessageOK) Error() string

type PinChatMessageParams

type PinChatMessageParams struct {

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

	*/
	Token *string

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

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

func NewPinChatMessageParams

func NewPinChatMessageParams() *PinChatMessageParams

NewPinChatMessageParams creates a new PinChatMessageParams object with the default values initialized.

func NewPinChatMessageParamsWithContext

func NewPinChatMessageParamsWithContext(ctx context.Context) *PinChatMessageParams

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

func NewPinChatMessageParamsWithHTTPClient

func NewPinChatMessageParamsWithHTTPClient(client *http.Client) *PinChatMessageParams

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

func NewPinChatMessageParamsWithTimeout

func NewPinChatMessageParamsWithTimeout(timeout time.Duration) *PinChatMessageParams

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

func (*PinChatMessageParams) SetChatID

func (o *PinChatMessageParams) SetChatID(chatID string)

SetChatID adds the chatId to the pin chat message params

func (*PinChatMessageParams) SetContext

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

SetContext adds the context to the pin chat message params

func (*PinChatMessageParams) SetDisableNotification

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

SetDisableNotification adds the disableNotification to the pin chat message params

func (*PinChatMessageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pin chat message params

func (*PinChatMessageParams) SetMessageID

func (o *PinChatMessageParams) SetMessageID(messageID int64)

SetMessageID adds the messageId to the pin chat message params

func (*PinChatMessageParams) SetTimeout

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

SetTimeout adds the timeout to the pin chat message params

func (*PinChatMessageParams) SetToken

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

SetToken adds the token to the pin chat message params

func (*PinChatMessageParams) WithChatID

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

WithChatID adds the chatID to the pin chat message params

func (*PinChatMessageParams) WithContext

WithContext adds the context to the pin chat message params

func (*PinChatMessageParams) WithDisableNotification

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

WithDisableNotification adds the disableNotification to the pin chat message params

func (*PinChatMessageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pin chat message params

func (*PinChatMessageParams) WithMessageID

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

WithMessageID adds the messageID to the pin chat message params

func (*PinChatMessageParams) WithTimeout

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

WithTimeout adds the timeout to the pin chat message params

func (*PinChatMessageParams) WithToken

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

WithToken adds the token to the pin chat message params

func (*PinChatMessageParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PinChatMessageReader

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

PinChatMessageReader is a Reader for the PinChatMessage structure.

func (*PinChatMessageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PinChatMessageUnauthorized

type PinChatMessageUnauthorized struct {
	Payload *models.Error
}

PinChatMessageUnauthorized handles this case with default header values.

Unauthorized

func NewPinChatMessageUnauthorized

func NewPinChatMessageUnauthorized() *PinChatMessageUnauthorized

NewPinChatMessageUnauthorized creates a PinChatMessageUnauthorized with default headers values

func (*PinChatMessageUnauthorized) Error

type PromoteChatMemberBadRequest

type PromoteChatMemberBadRequest struct {
	Payload *models.Error
}

PromoteChatMemberBadRequest handles this case with default header values.

Bad Request

func NewPromoteChatMemberBadRequest

func NewPromoteChatMemberBadRequest() *PromoteChatMemberBadRequest

NewPromoteChatMemberBadRequest creates a PromoteChatMemberBadRequest with default headers values

func (*PromoteChatMemberBadRequest) Error

type PromoteChatMemberEnhanceYourCalm

type PromoteChatMemberEnhanceYourCalm struct {
	Payload *models.Error
}

PromoteChatMemberEnhanceYourCalm handles this case with default header values.

Flood

func NewPromoteChatMemberEnhanceYourCalm

func NewPromoteChatMemberEnhanceYourCalm() *PromoteChatMemberEnhanceYourCalm

NewPromoteChatMemberEnhanceYourCalm creates a PromoteChatMemberEnhanceYourCalm with default headers values

func (*PromoteChatMemberEnhanceYourCalm) Error

type PromoteChatMemberForbidden

type PromoteChatMemberForbidden struct {
	Payload *models.Error
}

PromoteChatMemberForbidden handles this case with default header values.

Forbidden

func NewPromoteChatMemberForbidden

func NewPromoteChatMemberForbidden() *PromoteChatMemberForbidden

NewPromoteChatMemberForbidden creates a PromoteChatMemberForbidden with default headers values

func (*PromoteChatMemberForbidden) Error

type PromoteChatMemberInternalServerError

type PromoteChatMemberInternalServerError struct {
	Payload *models.Error
}

PromoteChatMemberInternalServerError handles this case with default header values.

Internal

func NewPromoteChatMemberInternalServerError

func NewPromoteChatMemberInternalServerError() *PromoteChatMemberInternalServerError

NewPromoteChatMemberInternalServerError creates a PromoteChatMemberInternalServerError with default headers values

func (*PromoteChatMemberInternalServerError) Error

type PromoteChatMemberNotFound

type PromoteChatMemberNotFound struct {
	Payload *models.Error
}

PromoteChatMemberNotFound handles this case with default header values.

Not Found

func NewPromoteChatMemberNotFound

func NewPromoteChatMemberNotFound() *PromoteChatMemberNotFound

NewPromoteChatMemberNotFound creates a PromoteChatMemberNotFound with default headers values

func (*PromoteChatMemberNotFound) Error

func (o *PromoteChatMemberNotFound) Error() string

type PromoteChatMemberOK

type PromoteChatMemberOK struct {
	Payload *models.ResponseBool
}

PromoteChatMemberOK handles this case with default header values.

PromoteChatMemberOK promote chat member o k

func NewPromoteChatMemberOK

func NewPromoteChatMemberOK() *PromoteChatMemberOK

NewPromoteChatMemberOK creates a PromoteChatMemberOK with default headers values

func (*PromoteChatMemberOK) Error

func (o *PromoteChatMemberOK) Error() string

type PromoteChatMemberParams

type PromoteChatMemberParams struct {

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

	*/
	Token *string

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

PromoteChatMemberParams contains all the parameters to send to the API endpoint for the promote chat member operation typically these are written to a http.Request

func NewPromoteChatMemberParams

func NewPromoteChatMemberParams() *PromoteChatMemberParams

NewPromoteChatMemberParams creates a new PromoteChatMemberParams object with the default values initialized.

func NewPromoteChatMemberParamsWithContext

func NewPromoteChatMemberParamsWithContext(ctx context.Context) *PromoteChatMemberParams

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

func NewPromoteChatMemberParamsWithHTTPClient

func NewPromoteChatMemberParamsWithHTTPClient(client *http.Client) *PromoteChatMemberParams

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

func NewPromoteChatMemberParamsWithTimeout

func NewPromoteChatMemberParamsWithTimeout(timeout time.Duration) *PromoteChatMemberParams

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

func (*PromoteChatMemberParams) SetBody

SetBody adds the body to the promote chat member params

func (*PromoteChatMemberParams) SetContext

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

SetContext adds the context to the promote chat member params

func (*PromoteChatMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the promote chat member params

func (*PromoteChatMemberParams) SetTimeout

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

SetTimeout adds the timeout to the promote chat member params

func (*PromoteChatMemberParams) SetToken

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

SetToken adds the token to the promote chat member params

func (*PromoteChatMemberParams) WithBody

WithBody adds the body to the promote chat member params

func (*PromoteChatMemberParams) WithContext

WithContext adds the context to the promote chat member params

func (*PromoteChatMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the promote chat member params

func (*PromoteChatMemberParams) WithTimeout

WithTimeout adds the timeout to the promote chat member params

func (*PromoteChatMemberParams) WithToken

WithToken adds the token to the promote chat member params

func (*PromoteChatMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PromoteChatMemberReader

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

PromoteChatMemberReader is a Reader for the PromoteChatMember structure.

func (*PromoteChatMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PromoteChatMemberUnauthorized

type PromoteChatMemberUnauthorized struct {
	Payload *models.Error
}

PromoteChatMemberUnauthorized handles this case with default header values.

Unauthorized

func NewPromoteChatMemberUnauthorized

func NewPromoteChatMemberUnauthorized() *PromoteChatMemberUnauthorized

NewPromoteChatMemberUnauthorized creates a PromoteChatMemberUnauthorized with default headers values

func (*PromoteChatMemberUnauthorized) Error

type RestrictChatMemberBadRequest

type RestrictChatMemberBadRequest struct {
	Payload *models.Error
}

RestrictChatMemberBadRequest handles this case with default header values.

Bad Request

func NewRestrictChatMemberBadRequest

func NewRestrictChatMemberBadRequest() *RestrictChatMemberBadRequest

NewRestrictChatMemberBadRequest creates a RestrictChatMemberBadRequest with default headers values

func (*RestrictChatMemberBadRequest) Error

type RestrictChatMemberEnhanceYourCalm

type RestrictChatMemberEnhanceYourCalm struct {
	Payload *models.Error
}

RestrictChatMemberEnhanceYourCalm handles this case with default header values.

Flood

func NewRestrictChatMemberEnhanceYourCalm

func NewRestrictChatMemberEnhanceYourCalm() *RestrictChatMemberEnhanceYourCalm

NewRestrictChatMemberEnhanceYourCalm creates a RestrictChatMemberEnhanceYourCalm with default headers values

func (*RestrictChatMemberEnhanceYourCalm) Error

type RestrictChatMemberForbidden

type RestrictChatMemberForbidden struct {
	Payload *models.Error
}

RestrictChatMemberForbidden handles this case with default header values.

Forbidden

func NewRestrictChatMemberForbidden

func NewRestrictChatMemberForbidden() *RestrictChatMemberForbidden

NewRestrictChatMemberForbidden creates a RestrictChatMemberForbidden with default headers values

func (*RestrictChatMemberForbidden) Error

type RestrictChatMemberInternalServerError

type RestrictChatMemberInternalServerError struct {
	Payload *models.Error
}

RestrictChatMemberInternalServerError handles this case with default header values.

Internal

func NewRestrictChatMemberInternalServerError

func NewRestrictChatMemberInternalServerError() *RestrictChatMemberInternalServerError

NewRestrictChatMemberInternalServerError creates a RestrictChatMemberInternalServerError with default headers values

func (*RestrictChatMemberInternalServerError) Error

type RestrictChatMemberNotFound

type RestrictChatMemberNotFound struct {
	Payload *models.Error
}

RestrictChatMemberNotFound handles this case with default header values.

Not Found

func NewRestrictChatMemberNotFound

func NewRestrictChatMemberNotFound() *RestrictChatMemberNotFound

NewRestrictChatMemberNotFound creates a RestrictChatMemberNotFound with default headers values

func (*RestrictChatMemberNotFound) Error

type RestrictChatMemberOK

type RestrictChatMemberOK struct {
	Payload *models.ResponseBool
}

RestrictChatMemberOK handles this case with default header values.

RestrictChatMemberOK restrict chat member o k

func NewRestrictChatMemberOK

func NewRestrictChatMemberOK() *RestrictChatMemberOK

NewRestrictChatMemberOK creates a RestrictChatMemberOK with default headers values

func (*RestrictChatMemberOK) Error

func (o *RestrictChatMemberOK) Error() string

type RestrictChatMemberParams

type RestrictChatMemberParams struct {

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

	*/
	Token *string

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

RestrictChatMemberParams contains all the parameters to send to the API endpoint for the restrict chat member operation typically these are written to a http.Request

func NewRestrictChatMemberParams

func NewRestrictChatMemberParams() *RestrictChatMemberParams

NewRestrictChatMemberParams creates a new RestrictChatMemberParams object with the default values initialized.

func NewRestrictChatMemberParamsWithContext

func NewRestrictChatMemberParamsWithContext(ctx context.Context) *RestrictChatMemberParams

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

func NewRestrictChatMemberParamsWithHTTPClient

func NewRestrictChatMemberParamsWithHTTPClient(client *http.Client) *RestrictChatMemberParams

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

func NewRestrictChatMemberParamsWithTimeout

func NewRestrictChatMemberParamsWithTimeout(timeout time.Duration) *RestrictChatMemberParams

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

func (*RestrictChatMemberParams) SetBody

SetBody adds the body to the restrict chat member params

func (*RestrictChatMemberParams) SetContext

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

SetContext adds the context to the restrict chat member params

func (*RestrictChatMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restrict chat member params

func (*RestrictChatMemberParams) SetTimeout

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

SetTimeout adds the timeout to the restrict chat member params

func (*RestrictChatMemberParams) SetToken

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

SetToken adds the token to the restrict chat member params

func (*RestrictChatMemberParams) WithBody

WithBody adds the body to the restrict chat member params

func (*RestrictChatMemberParams) WithContext

WithContext adds the context to the restrict chat member params

func (*RestrictChatMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restrict chat member params

func (*RestrictChatMemberParams) WithTimeout

WithTimeout adds the timeout to the restrict chat member params

func (*RestrictChatMemberParams) WithToken

WithToken adds the token to the restrict chat member params

func (*RestrictChatMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestrictChatMemberReader

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

RestrictChatMemberReader is a Reader for the RestrictChatMember structure.

func (*RestrictChatMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestrictChatMemberUnauthorized

type RestrictChatMemberUnauthorized struct {
	Payload *models.Error
}

RestrictChatMemberUnauthorized handles this case with default header values.

Unauthorized

func NewRestrictChatMemberUnauthorized

func NewRestrictChatMemberUnauthorized() *RestrictChatMemberUnauthorized

NewRestrictChatMemberUnauthorized creates a RestrictChatMemberUnauthorized with default headers values

func (*RestrictChatMemberUnauthorized) Error

type SendChatActionBadRequest

type SendChatActionBadRequest struct {
	Payload *models.Error
}

SendChatActionBadRequest handles this case with default header values.

Bad Request

func NewSendChatActionBadRequest

func NewSendChatActionBadRequest() *SendChatActionBadRequest

NewSendChatActionBadRequest creates a SendChatActionBadRequest with default headers values

func (*SendChatActionBadRequest) Error

func (o *SendChatActionBadRequest) Error() string

type SendChatActionEnhanceYourCalm

type SendChatActionEnhanceYourCalm struct {
	Payload *models.Error
}

SendChatActionEnhanceYourCalm handles this case with default header values.

Flood

func NewSendChatActionEnhanceYourCalm

func NewSendChatActionEnhanceYourCalm() *SendChatActionEnhanceYourCalm

NewSendChatActionEnhanceYourCalm creates a SendChatActionEnhanceYourCalm with default headers values

func (*SendChatActionEnhanceYourCalm) Error

type SendChatActionForbidden

type SendChatActionForbidden struct {
	Payload *models.Error
}

SendChatActionForbidden handles this case with default header values.

Forbidden

func NewSendChatActionForbidden

func NewSendChatActionForbidden() *SendChatActionForbidden

NewSendChatActionForbidden creates a SendChatActionForbidden with default headers values

func (*SendChatActionForbidden) Error

func (o *SendChatActionForbidden) Error() string

type SendChatActionInternalServerError

type SendChatActionInternalServerError struct {
	Payload *models.Error
}

SendChatActionInternalServerError handles this case with default header values.

Internal

func NewSendChatActionInternalServerError

func NewSendChatActionInternalServerError() *SendChatActionInternalServerError

NewSendChatActionInternalServerError creates a SendChatActionInternalServerError with default headers values

func (*SendChatActionInternalServerError) Error

type SendChatActionNotFound

type SendChatActionNotFound struct {
	Payload *models.Error
}

SendChatActionNotFound handles this case with default header values.

Not Found

func NewSendChatActionNotFound

func NewSendChatActionNotFound() *SendChatActionNotFound

NewSendChatActionNotFound creates a SendChatActionNotFound with default headers values

func (*SendChatActionNotFound) Error

func (o *SendChatActionNotFound) Error() string

type SendChatActionOK

type SendChatActionOK struct {
	Payload *models.ResponseBool
}

SendChatActionOK handles this case with default header values.

SendChatActionOK send chat action o k

func NewSendChatActionOK

func NewSendChatActionOK() *SendChatActionOK

NewSendChatActionOK creates a SendChatActionOK with default headers values

func (*SendChatActionOK) Error

func (o *SendChatActionOK) Error() string

type SendChatActionParams

type SendChatActionParams struct {

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

	*/
	Token *string

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

SendChatActionParams contains all the parameters to send to the API endpoint for the send chat action operation typically these are written to a http.Request

func NewSendChatActionParams

func NewSendChatActionParams() *SendChatActionParams

NewSendChatActionParams creates a new SendChatActionParams object with the default values initialized.

func NewSendChatActionParamsWithContext

func NewSendChatActionParamsWithContext(ctx context.Context) *SendChatActionParams

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

func NewSendChatActionParamsWithHTTPClient

func NewSendChatActionParamsWithHTTPClient(client *http.Client) *SendChatActionParams

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

func NewSendChatActionParamsWithTimeout

func NewSendChatActionParamsWithTimeout(timeout time.Duration) *SendChatActionParams

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

func (*SendChatActionParams) SetAction

func (o *SendChatActionParams) SetAction(action string)

SetAction adds the action to the send chat action params

func (*SendChatActionParams) SetChatID

func (o *SendChatActionParams) SetChatID(chatID string)

SetChatID adds the chatId to the send chat action params

func (*SendChatActionParams) SetContext

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

SetContext adds the context to the send chat action params

func (*SendChatActionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the send chat action params

func (*SendChatActionParams) SetTimeout

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

SetTimeout adds the timeout to the send chat action params

func (*SendChatActionParams) SetToken

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

SetToken adds the token to the send chat action params

func (*SendChatActionParams) WithAction

func (o *SendChatActionParams) WithAction(action string) *SendChatActionParams

WithAction adds the action to the send chat action params

func (*SendChatActionParams) WithChatID

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

WithChatID adds the chatID to the send chat action params

func (*SendChatActionParams) WithContext

WithContext adds the context to the send chat action params

func (*SendChatActionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the send chat action params

func (*SendChatActionParams) WithTimeout

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

WithTimeout adds the timeout to the send chat action params

func (*SendChatActionParams) WithToken

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

WithToken adds the token to the send chat action params

func (*SendChatActionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SendChatActionReader

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

SendChatActionReader is a Reader for the SendChatAction structure.

func (*SendChatActionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SendChatActionUnauthorized

type SendChatActionUnauthorized struct {
	Payload *models.Error
}

SendChatActionUnauthorized handles this case with default header values.

Unauthorized

func NewSendChatActionUnauthorized

func NewSendChatActionUnauthorized() *SendChatActionUnauthorized

NewSendChatActionUnauthorized creates a SendChatActionUnauthorized with default headers values

func (*SendChatActionUnauthorized) Error

type SetChatDescriptionBadRequest

type SetChatDescriptionBadRequest struct {
	Payload *models.Error
}

SetChatDescriptionBadRequest handles this case with default header values.

Bad Request

func NewSetChatDescriptionBadRequest

func NewSetChatDescriptionBadRequest() *SetChatDescriptionBadRequest

NewSetChatDescriptionBadRequest creates a SetChatDescriptionBadRequest with default headers values

func (*SetChatDescriptionBadRequest) Error

type SetChatDescriptionEnhanceYourCalm

type SetChatDescriptionEnhanceYourCalm struct {
	Payload *models.Error
}

SetChatDescriptionEnhanceYourCalm handles this case with default header values.

Flood

func NewSetChatDescriptionEnhanceYourCalm

func NewSetChatDescriptionEnhanceYourCalm() *SetChatDescriptionEnhanceYourCalm

NewSetChatDescriptionEnhanceYourCalm creates a SetChatDescriptionEnhanceYourCalm with default headers values

func (*SetChatDescriptionEnhanceYourCalm) Error

type SetChatDescriptionForbidden

type SetChatDescriptionForbidden struct {
	Payload *models.Error
}

SetChatDescriptionForbidden handles this case with default header values.

Forbidden

func NewSetChatDescriptionForbidden

func NewSetChatDescriptionForbidden() *SetChatDescriptionForbidden

NewSetChatDescriptionForbidden creates a SetChatDescriptionForbidden with default headers values

func (*SetChatDescriptionForbidden) Error

type SetChatDescriptionInternalServerError

type SetChatDescriptionInternalServerError struct {
	Payload *models.Error
}

SetChatDescriptionInternalServerError handles this case with default header values.

Internal

func NewSetChatDescriptionInternalServerError

func NewSetChatDescriptionInternalServerError() *SetChatDescriptionInternalServerError

NewSetChatDescriptionInternalServerError creates a SetChatDescriptionInternalServerError with default headers values

func (*SetChatDescriptionInternalServerError) Error

type SetChatDescriptionNotFound

type SetChatDescriptionNotFound struct {
	Payload *models.Error
}

SetChatDescriptionNotFound handles this case with default header values.

Not Found

func NewSetChatDescriptionNotFound

func NewSetChatDescriptionNotFound() *SetChatDescriptionNotFound

NewSetChatDescriptionNotFound creates a SetChatDescriptionNotFound with default headers values

func (*SetChatDescriptionNotFound) Error

type SetChatDescriptionOK

type SetChatDescriptionOK struct {
	Payload *models.ResponseBool
}

SetChatDescriptionOK handles this case with default header values.

SetChatDescriptionOK set chat description o k

func NewSetChatDescriptionOK

func NewSetChatDescriptionOK() *SetChatDescriptionOK

NewSetChatDescriptionOK creates a SetChatDescriptionOK with default headers values

func (*SetChatDescriptionOK) Error

func (o *SetChatDescriptionOK) Error() string

type SetChatDescriptionParams

type SetChatDescriptionParams struct {

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

	*/
	Token *string

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

SetChatDescriptionParams contains all the parameters to send to the API endpoint for the set chat description operation typically these are written to a http.Request

func NewSetChatDescriptionParams

func NewSetChatDescriptionParams() *SetChatDescriptionParams

NewSetChatDescriptionParams creates a new SetChatDescriptionParams object with the default values initialized.

func NewSetChatDescriptionParamsWithContext

func NewSetChatDescriptionParamsWithContext(ctx context.Context) *SetChatDescriptionParams

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

func NewSetChatDescriptionParamsWithHTTPClient

func NewSetChatDescriptionParamsWithHTTPClient(client *http.Client) *SetChatDescriptionParams

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

func NewSetChatDescriptionParamsWithTimeout

func NewSetChatDescriptionParamsWithTimeout(timeout time.Duration) *SetChatDescriptionParams

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

func (*SetChatDescriptionParams) SetChatID

func (o *SetChatDescriptionParams) SetChatID(chatID string)

SetChatID adds the chatId to the set chat description params

func (*SetChatDescriptionParams) SetContext

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

SetContext adds the context to the set chat description params

func (*SetChatDescriptionParams) SetDescription

func (o *SetChatDescriptionParams) SetDescription(description string)

SetDescription adds the description to the set chat description params

func (*SetChatDescriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set chat description params

func (*SetChatDescriptionParams) SetTimeout

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

SetTimeout adds the timeout to the set chat description params

func (*SetChatDescriptionParams) SetToken

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

SetToken adds the token to the set chat description params

func (*SetChatDescriptionParams) WithChatID

WithChatID adds the chatID to the set chat description params

func (*SetChatDescriptionParams) WithContext

WithContext adds the context to the set chat description params

func (*SetChatDescriptionParams) WithDescription

func (o *SetChatDescriptionParams) WithDescription(description string) *SetChatDescriptionParams

WithDescription adds the description to the set chat description params

func (*SetChatDescriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set chat description params

func (*SetChatDescriptionParams) WithTimeout

WithTimeout adds the timeout to the set chat description params

func (*SetChatDescriptionParams) WithToken

WithToken adds the token to the set chat description params

func (*SetChatDescriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetChatDescriptionReader

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

SetChatDescriptionReader is a Reader for the SetChatDescription structure.

func (*SetChatDescriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetChatDescriptionUnauthorized

type SetChatDescriptionUnauthorized struct {
	Payload *models.Error
}

SetChatDescriptionUnauthorized handles this case with default header values.

Unauthorized

func NewSetChatDescriptionUnauthorized

func NewSetChatDescriptionUnauthorized() *SetChatDescriptionUnauthorized

NewSetChatDescriptionUnauthorized creates a SetChatDescriptionUnauthorized with default headers values

func (*SetChatDescriptionUnauthorized) Error

type SetChatPhotoBadRequest

type SetChatPhotoBadRequest struct {
	Payload *models.Error
}

SetChatPhotoBadRequest handles this case with default header values.

Bad Request

func NewSetChatPhotoBadRequest

func NewSetChatPhotoBadRequest() *SetChatPhotoBadRequest

NewSetChatPhotoBadRequest creates a SetChatPhotoBadRequest with default headers values

func (*SetChatPhotoBadRequest) Error

func (o *SetChatPhotoBadRequest) Error() string

type SetChatPhotoEnhanceYourCalm

type SetChatPhotoEnhanceYourCalm struct {
	Payload *models.Error
}

SetChatPhotoEnhanceYourCalm handles this case with default header values.

Flood

func NewSetChatPhotoEnhanceYourCalm

func NewSetChatPhotoEnhanceYourCalm() *SetChatPhotoEnhanceYourCalm

NewSetChatPhotoEnhanceYourCalm creates a SetChatPhotoEnhanceYourCalm with default headers values

func (*SetChatPhotoEnhanceYourCalm) Error

type SetChatPhotoForbidden

type SetChatPhotoForbidden struct {
	Payload *models.Error
}

SetChatPhotoForbidden handles this case with default header values.

Forbidden

func NewSetChatPhotoForbidden

func NewSetChatPhotoForbidden() *SetChatPhotoForbidden

NewSetChatPhotoForbidden creates a SetChatPhotoForbidden with default headers values

func (*SetChatPhotoForbidden) Error

func (o *SetChatPhotoForbidden) Error() string

type SetChatPhotoInternalServerError

type SetChatPhotoInternalServerError struct {
	Payload *models.Error
}

SetChatPhotoInternalServerError handles this case with default header values.

Internal

func NewSetChatPhotoInternalServerError

func NewSetChatPhotoInternalServerError() *SetChatPhotoInternalServerError

NewSetChatPhotoInternalServerError creates a SetChatPhotoInternalServerError with default headers values

func (*SetChatPhotoInternalServerError) Error

type SetChatPhotoNotFound

type SetChatPhotoNotFound struct {
	Payload *models.Error
}

SetChatPhotoNotFound handles this case with default header values.

Not Found

func NewSetChatPhotoNotFound

func NewSetChatPhotoNotFound() *SetChatPhotoNotFound

NewSetChatPhotoNotFound creates a SetChatPhotoNotFound with default headers values

func (*SetChatPhotoNotFound) Error

func (o *SetChatPhotoNotFound) Error() string

type SetChatPhotoOK

type SetChatPhotoOK struct {
	Payload *models.ResponseBool
}

SetChatPhotoOK handles this case with default header values.

SetChatPhotoOK set chat photo o k

func NewSetChatPhotoOK

func NewSetChatPhotoOK() *SetChatPhotoOK

NewSetChatPhotoOK creates a SetChatPhotoOK with default headers values

func (*SetChatPhotoOK) Error

func (o *SetChatPhotoOK) Error() string

type SetChatPhotoParams

type SetChatPhotoParams struct {

	/*ChatID*/
	ChatID string
	/*Photo*/
	Photo runtime.NamedReadCloser
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

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

SetChatPhotoParams contains all the parameters to send to the API endpoint for the set chat photo operation typically these are written to a http.Request

func NewSetChatPhotoParams

func NewSetChatPhotoParams() *SetChatPhotoParams

NewSetChatPhotoParams creates a new SetChatPhotoParams object with the default values initialized.

func NewSetChatPhotoParamsWithContext

func NewSetChatPhotoParamsWithContext(ctx context.Context) *SetChatPhotoParams

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

func NewSetChatPhotoParamsWithHTTPClient

func NewSetChatPhotoParamsWithHTTPClient(client *http.Client) *SetChatPhotoParams

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

func NewSetChatPhotoParamsWithTimeout

func NewSetChatPhotoParamsWithTimeout(timeout time.Duration) *SetChatPhotoParams

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

func (*SetChatPhotoParams) SetChatID

func (o *SetChatPhotoParams) SetChatID(chatID string)

SetChatID adds the chatId to the set chat photo params

func (*SetChatPhotoParams) SetContext

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

SetContext adds the context to the set chat photo params

func (*SetChatPhotoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set chat photo params

func (*SetChatPhotoParams) SetPhoto

func (o *SetChatPhotoParams) SetPhoto(photo runtime.NamedReadCloser)

SetPhoto adds the photo to the set chat photo params

func (*SetChatPhotoParams) SetTimeout

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

SetTimeout adds the timeout to the set chat photo params

func (*SetChatPhotoParams) SetToken

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

SetToken adds the token to the set chat photo params

func (*SetChatPhotoParams) WithChatID

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

WithChatID adds the chatID to the set chat photo params

func (*SetChatPhotoParams) WithContext

WithContext adds the context to the set chat photo params

func (*SetChatPhotoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set chat photo params

func (*SetChatPhotoParams) WithPhoto

WithPhoto adds the photo to the set chat photo params

func (*SetChatPhotoParams) WithTimeout

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

WithTimeout adds the timeout to the set chat photo params

func (*SetChatPhotoParams) WithToken

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

WithToken adds the token to the set chat photo params

func (*SetChatPhotoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetChatPhotoReader

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

SetChatPhotoReader is a Reader for the SetChatPhoto structure.

func (*SetChatPhotoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetChatPhotoUnauthorized

type SetChatPhotoUnauthorized struct {
	Payload *models.Error
}

SetChatPhotoUnauthorized handles this case with default header values.

Unauthorized

func NewSetChatPhotoUnauthorized

func NewSetChatPhotoUnauthorized() *SetChatPhotoUnauthorized

NewSetChatPhotoUnauthorized creates a SetChatPhotoUnauthorized with default headers values

func (*SetChatPhotoUnauthorized) Error

func (o *SetChatPhotoUnauthorized) Error() string

type SetChatTitleBadRequest

type SetChatTitleBadRequest struct {
	Payload *models.Error
}

SetChatTitleBadRequest handles this case with default header values.

Bad Request

func NewSetChatTitleBadRequest

func NewSetChatTitleBadRequest() *SetChatTitleBadRequest

NewSetChatTitleBadRequest creates a SetChatTitleBadRequest with default headers values

func (*SetChatTitleBadRequest) Error

func (o *SetChatTitleBadRequest) Error() string

type SetChatTitleEnhanceYourCalm

type SetChatTitleEnhanceYourCalm struct {
	Payload *models.Error
}

SetChatTitleEnhanceYourCalm handles this case with default header values.

Flood

func NewSetChatTitleEnhanceYourCalm

func NewSetChatTitleEnhanceYourCalm() *SetChatTitleEnhanceYourCalm

NewSetChatTitleEnhanceYourCalm creates a SetChatTitleEnhanceYourCalm with default headers values

func (*SetChatTitleEnhanceYourCalm) Error

type SetChatTitleForbidden

type SetChatTitleForbidden struct {
	Payload *models.Error
}

SetChatTitleForbidden handles this case with default header values.

Forbidden

func NewSetChatTitleForbidden

func NewSetChatTitleForbidden() *SetChatTitleForbidden

NewSetChatTitleForbidden creates a SetChatTitleForbidden with default headers values

func (*SetChatTitleForbidden) Error

func (o *SetChatTitleForbidden) Error() string

type SetChatTitleInternalServerError

type SetChatTitleInternalServerError struct {
	Payload *models.Error
}

SetChatTitleInternalServerError handles this case with default header values.

Internal

func NewSetChatTitleInternalServerError

func NewSetChatTitleInternalServerError() *SetChatTitleInternalServerError

NewSetChatTitleInternalServerError creates a SetChatTitleInternalServerError with default headers values

func (*SetChatTitleInternalServerError) Error

type SetChatTitleNotFound

type SetChatTitleNotFound struct {
	Payload *models.Error
}

SetChatTitleNotFound handles this case with default header values.

Not Found

func NewSetChatTitleNotFound

func NewSetChatTitleNotFound() *SetChatTitleNotFound

NewSetChatTitleNotFound creates a SetChatTitleNotFound with default headers values

func (*SetChatTitleNotFound) Error

func (o *SetChatTitleNotFound) Error() string

type SetChatTitleOK

type SetChatTitleOK struct {
	Payload *models.ResponseBool
}

SetChatTitleOK handles this case with default header values.

SetChatTitleOK set chat title o k

func NewSetChatTitleOK

func NewSetChatTitleOK() *SetChatTitleOK

NewSetChatTitleOK creates a SetChatTitleOK with default headers values

func (*SetChatTitleOK) Error

func (o *SetChatTitleOK) Error() string

type SetChatTitleParams

type SetChatTitleParams struct {

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

	*/
	Token *string

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

SetChatTitleParams contains all the parameters to send to the API endpoint for the set chat title operation typically these are written to a http.Request

func NewSetChatTitleParams

func NewSetChatTitleParams() *SetChatTitleParams

NewSetChatTitleParams creates a new SetChatTitleParams object with the default values initialized.

func NewSetChatTitleParamsWithContext

func NewSetChatTitleParamsWithContext(ctx context.Context) *SetChatTitleParams

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

func NewSetChatTitleParamsWithHTTPClient

func NewSetChatTitleParamsWithHTTPClient(client *http.Client) *SetChatTitleParams

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

func NewSetChatTitleParamsWithTimeout

func NewSetChatTitleParamsWithTimeout(timeout time.Duration) *SetChatTitleParams

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

func (*SetChatTitleParams) SetChatID

func (o *SetChatTitleParams) SetChatID(chatID string)

SetChatID adds the chatId to the set chat title params

func (*SetChatTitleParams) SetContext

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

SetContext adds the context to the set chat title params

func (*SetChatTitleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set chat title params

func (*SetChatTitleParams) SetTimeout

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

SetTimeout adds the timeout to the set chat title params

func (*SetChatTitleParams) SetTitle

func (o *SetChatTitleParams) SetTitle(title string)

SetTitle adds the title to the set chat title params

func (*SetChatTitleParams) SetToken

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

SetToken adds the token to the set chat title params

func (*SetChatTitleParams) WithChatID

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

WithChatID adds the chatID to the set chat title params

func (*SetChatTitleParams) WithContext

WithContext adds the context to the set chat title params

func (*SetChatTitleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set chat title params

func (*SetChatTitleParams) WithTimeout

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

WithTimeout adds the timeout to the set chat title params

func (*SetChatTitleParams) WithTitle

func (o *SetChatTitleParams) WithTitle(title string) *SetChatTitleParams

WithTitle adds the title to the set chat title params

func (*SetChatTitleParams) WithToken

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

WithToken adds the token to the set chat title params

func (*SetChatTitleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetChatTitleReader

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

SetChatTitleReader is a Reader for the SetChatTitle structure.

func (*SetChatTitleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetChatTitleUnauthorized

type SetChatTitleUnauthorized struct {
	Payload *models.Error
}

SetChatTitleUnauthorized handles this case with default header values.

Unauthorized

func NewSetChatTitleUnauthorized

func NewSetChatTitleUnauthorized() *SetChatTitleUnauthorized

NewSetChatTitleUnauthorized creates a SetChatTitleUnauthorized with default headers values

func (*SetChatTitleUnauthorized) Error

func (o *SetChatTitleUnauthorized) Error() string

type UnbanChatMemberBadRequest

type UnbanChatMemberBadRequest struct {
	Payload *models.Error
}

UnbanChatMemberBadRequest handles this case with default header values.

Bad Request

func NewUnbanChatMemberBadRequest

func NewUnbanChatMemberBadRequest() *UnbanChatMemberBadRequest

NewUnbanChatMemberBadRequest creates a UnbanChatMemberBadRequest with default headers values

func (*UnbanChatMemberBadRequest) Error

func (o *UnbanChatMemberBadRequest) Error() string

type UnbanChatMemberEnhanceYourCalm

type UnbanChatMemberEnhanceYourCalm struct {
	Payload *models.Error
}

UnbanChatMemberEnhanceYourCalm handles this case with default header values.

Flood

func NewUnbanChatMemberEnhanceYourCalm

func NewUnbanChatMemberEnhanceYourCalm() *UnbanChatMemberEnhanceYourCalm

NewUnbanChatMemberEnhanceYourCalm creates a UnbanChatMemberEnhanceYourCalm with default headers values

func (*UnbanChatMemberEnhanceYourCalm) Error

type UnbanChatMemberForbidden

type UnbanChatMemberForbidden struct {
	Payload *models.Error
}

UnbanChatMemberForbidden handles this case with default header values.

Forbidden

func NewUnbanChatMemberForbidden

func NewUnbanChatMemberForbidden() *UnbanChatMemberForbidden

NewUnbanChatMemberForbidden creates a UnbanChatMemberForbidden with default headers values

func (*UnbanChatMemberForbidden) Error

func (o *UnbanChatMemberForbidden) Error() string

type UnbanChatMemberInternalServerError

type UnbanChatMemberInternalServerError struct {
	Payload *models.Error
}

UnbanChatMemberInternalServerError handles this case with default header values.

Internal

func NewUnbanChatMemberInternalServerError

func NewUnbanChatMemberInternalServerError() *UnbanChatMemberInternalServerError

NewUnbanChatMemberInternalServerError creates a UnbanChatMemberInternalServerError with default headers values

func (*UnbanChatMemberInternalServerError) Error

type UnbanChatMemberNotFound

type UnbanChatMemberNotFound struct {
	Payload *models.Error
}

UnbanChatMemberNotFound handles this case with default header values.

Not Found

func NewUnbanChatMemberNotFound

func NewUnbanChatMemberNotFound() *UnbanChatMemberNotFound

NewUnbanChatMemberNotFound creates a UnbanChatMemberNotFound with default headers values

func (*UnbanChatMemberNotFound) Error

func (o *UnbanChatMemberNotFound) Error() string

type UnbanChatMemberOK

type UnbanChatMemberOK struct {
	Payload *models.ResponseBool
}

UnbanChatMemberOK handles this case with default header values.

UnbanChatMemberOK unban chat member o k

func NewUnbanChatMemberOK

func NewUnbanChatMemberOK() *UnbanChatMemberOK

NewUnbanChatMemberOK creates a UnbanChatMemberOK with default headers values

func (*UnbanChatMemberOK) Error

func (o *UnbanChatMemberOK) Error() string

type UnbanChatMemberParams

type UnbanChatMemberParams struct {

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

	*/
	Token *string
	/*UserID*/
	UserID string

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

UnbanChatMemberParams contains all the parameters to send to the API endpoint for the unban chat member operation typically these are written to a http.Request

func NewUnbanChatMemberParams

func NewUnbanChatMemberParams() *UnbanChatMemberParams

NewUnbanChatMemberParams creates a new UnbanChatMemberParams object with the default values initialized.

func NewUnbanChatMemberParamsWithContext

func NewUnbanChatMemberParamsWithContext(ctx context.Context) *UnbanChatMemberParams

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

func NewUnbanChatMemberParamsWithHTTPClient

func NewUnbanChatMemberParamsWithHTTPClient(client *http.Client) *UnbanChatMemberParams

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

func NewUnbanChatMemberParamsWithTimeout

func NewUnbanChatMemberParamsWithTimeout(timeout time.Duration) *UnbanChatMemberParams

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

func (*UnbanChatMemberParams) SetChatID

func (o *UnbanChatMemberParams) SetChatID(chatID string)

SetChatID adds the chatId to the unban chat member params

func (*UnbanChatMemberParams) SetContext

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

SetContext adds the context to the unban chat member params

func (*UnbanChatMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unban chat member params

func (*UnbanChatMemberParams) SetTimeout

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

SetTimeout adds the timeout to the unban chat member params

func (*UnbanChatMemberParams) SetToken

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

SetToken adds the token to the unban chat member params

func (*UnbanChatMemberParams) SetUserID

func (o *UnbanChatMemberParams) SetUserID(userID string)

SetUserID adds the userId to the unban chat member params

func (*UnbanChatMemberParams) WithChatID

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

WithChatID adds the chatID to the unban chat member params

func (*UnbanChatMemberParams) WithContext

WithContext adds the context to the unban chat member params

func (*UnbanChatMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unban chat member params

func (*UnbanChatMemberParams) WithTimeout

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

WithTimeout adds the timeout to the unban chat member params

func (*UnbanChatMemberParams) WithToken

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

WithToken adds the token to the unban chat member params

func (*UnbanChatMemberParams) WithUserID

func (o *UnbanChatMemberParams) WithUserID(userID string) *UnbanChatMemberParams

WithUserID adds the userID to the unban chat member params

func (*UnbanChatMemberParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnbanChatMemberReader

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

UnbanChatMemberReader is a Reader for the UnbanChatMember structure.

func (*UnbanChatMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnbanChatMemberUnauthorized

type UnbanChatMemberUnauthorized struct {
	Payload *models.Error
}

UnbanChatMemberUnauthorized handles this case with default header values.

Unauthorized

func NewUnbanChatMemberUnauthorized

func NewUnbanChatMemberUnauthorized() *UnbanChatMemberUnauthorized

NewUnbanChatMemberUnauthorized creates a UnbanChatMemberUnauthorized with default headers values

func (*UnbanChatMemberUnauthorized) Error

type UnpinChatMessageBadRequest

type UnpinChatMessageBadRequest struct {
	Payload *models.Error
}

UnpinChatMessageBadRequest handles this case with default header values.

Bad Request

func NewUnpinChatMessageBadRequest

func NewUnpinChatMessageBadRequest() *UnpinChatMessageBadRequest

NewUnpinChatMessageBadRequest creates a UnpinChatMessageBadRequest with default headers values

func (*UnpinChatMessageBadRequest) Error

type UnpinChatMessageEnhanceYourCalm

type UnpinChatMessageEnhanceYourCalm struct {
	Payload *models.Error
}

UnpinChatMessageEnhanceYourCalm handles this case with default header values.

Flood

func NewUnpinChatMessageEnhanceYourCalm

func NewUnpinChatMessageEnhanceYourCalm() *UnpinChatMessageEnhanceYourCalm

NewUnpinChatMessageEnhanceYourCalm creates a UnpinChatMessageEnhanceYourCalm with default headers values

func (*UnpinChatMessageEnhanceYourCalm) Error

type UnpinChatMessageForbidden

type UnpinChatMessageForbidden struct {
	Payload *models.Error
}

UnpinChatMessageForbidden handles this case with default header values.

Forbidden

func NewUnpinChatMessageForbidden

func NewUnpinChatMessageForbidden() *UnpinChatMessageForbidden

NewUnpinChatMessageForbidden creates a UnpinChatMessageForbidden with default headers values

func (*UnpinChatMessageForbidden) Error

func (o *UnpinChatMessageForbidden) Error() string

type UnpinChatMessageInternalServerError

type UnpinChatMessageInternalServerError struct {
	Payload *models.Error
}

UnpinChatMessageInternalServerError handles this case with default header values.

Internal

func NewUnpinChatMessageInternalServerError

func NewUnpinChatMessageInternalServerError() *UnpinChatMessageInternalServerError

NewUnpinChatMessageInternalServerError creates a UnpinChatMessageInternalServerError with default headers values

func (*UnpinChatMessageInternalServerError) Error

type UnpinChatMessageNotFound

type UnpinChatMessageNotFound struct {
	Payload *models.Error
}

UnpinChatMessageNotFound handles this case with default header values.

Not Found

func NewUnpinChatMessageNotFound

func NewUnpinChatMessageNotFound() *UnpinChatMessageNotFound

NewUnpinChatMessageNotFound creates a UnpinChatMessageNotFound with default headers values

func (*UnpinChatMessageNotFound) Error

func (o *UnpinChatMessageNotFound) Error() string

type UnpinChatMessageOK

type UnpinChatMessageOK struct {
	Payload *models.ResponseBool
}

UnpinChatMessageOK handles this case with default header values.

UnpinChatMessageOK unpin chat message o k

func NewUnpinChatMessageOK

func NewUnpinChatMessageOK() *UnpinChatMessageOK

NewUnpinChatMessageOK creates a UnpinChatMessageOK with default headers values

func (*UnpinChatMessageOK) Error

func (o *UnpinChatMessageOK) Error() string

type UnpinChatMessageParams

type UnpinChatMessageParams struct {

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

	*/
	Token *string

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

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

func NewUnpinChatMessageParams

func NewUnpinChatMessageParams() *UnpinChatMessageParams

NewUnpinChatMessageParams creates a new UnpinChatMessageParams object with the default values initialized.

func NewUnpinChatMessageParamsWithContext

func NewUnpinChatMessageParamsWithContext(ctx context.Context) *UnpinChatMessageParams

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

func NewUnpinChatMessageParamsWithHTTPClient

func NewUnpinChatMessageParamsWithHTTPClient(client *http.Client) *UnpinChatMessageParams

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

func NewUnpinChatMessageParamsWithTimeout

func NewUnpinChatMessageParamsWithTimeout(timeout time.Duration) *UnpinChatMessageParams

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

func (*UnpinChatMessageParams) SetChatID

func (o *UnpinChatMessageParams) SetChatID(chatID string)

SetChatID adds the chatId to the unpin chat message params

func (*UnpinChatMessageParams) SetContext

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

SetContext adds the context to the unpin chat message params

func (*UnpinChatMessageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unpin chat message params

func (*UnpinChatMessageParams) SetTimeout

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

SetTimeout adds the timeout to the unpin chat message params

func (*UnpinChatMessageParams) SetToken

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

SetToken adds the token to the unpin chat message params

func (*UnpinChatMessageParams) WithChatID

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

WithChatID adds the chatID to the unpin chat message params

func (*UnpinChatMessageParams) WithContext

WithContext adds the context to the unpin chat message params

func (*UnpinChatMessageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unpin chat message params

func (*UnpinChatMessageParams) WithTimeout

WithTimeout adds the timeout to the unpin chat message params

func (*UnpinChatMessageParams) WithToken

WithToken adds the token to the unpin chat message params

func (*UnpinChatMessageParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnpinChatMessageReader

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

UnpinChatMessageReader is a Reader for the UnpinChatMessage structure.

func (*UnpinChatMessageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnpinChatMessageUnauthorized

type UnpinChatMessageUnauthorized struct {
	Payload *models.Error
}

UnpinChatMessageUnauthorized handles this case with default header values.

Unauthorized

func NewUnpinChatMessageUnauthorized

func NewUnpinChatMessageUnauthorized() *UnpinChatMessageUnauthorized

NewUnpinChatMessageUnauthorized creates a UnpinChatMessageUnauthorized with default headers values

func (*UnpinChatMessageUnauthorized) Error

Jump to

Keyboard shortcuts

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