Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteChatPhoto(params *DeleteChatPhotoParams) (*DeleteChatPhotoOK, error)
- func (a *Client) ExportChatInviteLink(params *ExportChatInviteLinkParams) (*ExportChatInviteLinkOK, error)
- func (a *Client) GetChat(params *GetChatParams) (*GetChatOK, error)
- func (a *Client) GetChatAdministrators(params *GetChatAdministratorsParams) (*GetChatAdministratorsOK, error)
- func (a *Client) GetChatMember(params *GetChatMemberParams) (*GetChatMemberOK, error)
- func (a *Client) GetChatMembersCount(params *GetChatMembersCountParams) (*GetChatMembersCountOK, error)
- func (a *Client) KickChatMember(params *KickChatMemberParams) (*KickChatMemberOK, error)
- func (a *Client) LeaveChat(params *LeaveChatParams) (*LeaveChatOK, error)
- func (a *Client) PinChatMessage(params *PinChatMessageParams) (*PinChatMessageOK, error)
- func (a *Client) PromoteChatMember(params *PromoteChatMemberParams) (*PromoteChatMemberOK, error)
- func (a *Client) RestrictChatMember(params *RestrictChatMemberParams) (*RestrictChatMemberOK, error)
- func (a *Client) SendChatAction(params *SendChatActionParams) (*SendChatActionOK, error)
- func (a *Client) SetChatDescription(params *SetChatDescriptionParams) (*SetChatDescriptionOK, error)
- func (a *Client) SetChatPhoto(params *SetChatPhotoParams) (*SetChatPhotoOK, error)
- func (a *Client) SetChatTitle(params *SetChatTitleParams) (*SetChatTitleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UnbanChatMember(params *UnbanChatMemberParams) (*UnbanChatMemberOK, error)
- func (a *Client) UnpinChatMessage(params *UnpinChatMessageParams) (*UnpinChatMessageOK, error)
- type DeleteChatPhotoBadRequest
- type DeleteChatPhotoEnhanceYourCalm
- type DeleteChatPhotoForbidden
- type DeleteChatPhotoInternalServerError
- type DeleteChatPhotoNotFound
- type DeleteChatPhotoOK
- type DeleteChatPhotoParams
- func NewDeleteChatPhotoParams() *DeleteChatPhotoParams
- func NewDeleteChatPhotoParamsWithContext(ctx context.Context) *DeleteChatPhotoParams
- func NewDeleteChatPhotoParamsWithHTTPClient(client *http.Client) *DeleteChatPhotoParams
- func NewDeleteChatPhotoParamsWithTimeout(timeout time.Duration) *DeleteChatPhotoParams
- func (o *DeleteChatPhotoParams) SetChatID(chatID string)
- func (o *DeleteChatPhotoParams) SetContext(ctx context.Context)
- func (o *DeleteChatPhotoParams) SetHTTPClient(client *http.Client)
- func (o *DeleteChatPhotoParams) SetTimeout(timeout time.Duration)
- func (o *DeleteChatPhotoParams) SetToken(token *string)
- func (o *DeleteChatPhotoParams) WithChatID(chatID string) *DeleteChatPhotoParams
- func (o *DeleteChatPhotoParams) WithContext(ctx context.Context) *DeleteChatPhotoParams
- func (o *DeleteChatPhotoParams) WithHTTPClient(client *http.Client) *DeleteChatPhotoParams
- func (o *DeleteChatPhotoParams) WithTimeout(timeout time.Duration) *DeleteChatPhotoParams
- func (o *DeleteChatPhotoParams) WithToken(token *string) *DeleteChatPhotoParams
- func (o *DeleteChatPhotoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteChatPhotoReader
- type DeleteChatPhotoUnauthorized
- type ExportChatInviteLinkBadRequest
- type ExportChatInviteLinkEnhanceYourCalm
- type ExportChatInviteLinkForbidden
- type ExportChatInviteLinkInternalServerError
- type ExportChatInviteLinkNotFound
- type ExportChatInviteLinkOK
- type ExportChatInviteLinkParams
- func NewExportChatInviteLinkParams() *ExportChatInviteLinkParams
- func NewExportChatInviteLinkParamsWithContext(ctx context.Context) *ExportChatInviteLinkParams
- func NewExportChatInviteLinkParamsWithHTTPClient(client *http.Client) *ExportChatInviteLinkParams
- func NewExportChatInviteLinkParamsWithTimeout(timeout time.Duration) *ExportChatInviteLinkParams
- func (o *ExportChatInviteLinkParams) SetChatID(chatID string)
- func (o *ExportChatInviteLinkParams) SetContext(ctx context.Context)
- func (o *ExportChatInviteLinkParams) SetHTTPClient(client *http.Client)
- func (o *ExportChatInviteLinkParams) SetTimeout(timeout time.Duration)
- func (o *ExportChatInviteLinkParams) SetToken(token *string)
- func (o *ExportChatInviteLinkParams) WithChatID(chatID string) *ExportChatInviteLinkParams
- func (o *ExportChatInviteLinkParams) WithContext(ctx context.Context) *ExportChatInviteLinkParams
- func (o *ExportChatInviteLinkParams) WithHTTPClient(client *http.Client) *ExportChatInviteLinkParams
- func (o *ExportChatInviteLinkParams) WithTimeout(timeout time.Duration) *ExportChatInviteLinkParams
- func (o *ExportChatInviteLinkParams) WithToken(token *string) *ExportChatInviteLinkParams
- func (o *ExportChatInviteLinkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExportChatInviteLinkReader
- type ExportChatInviteLinkUnauthorized
- type GetChatAdministratorsBadRequest
- type GetChatAdministratorsEnhanceYourCalm
- type GetChatAdministratorsForbidden
- type GetChatAdministratorsInternalServerError
- type GetChatAdministratorsNotFound
- type GetChatAdministratorsOK
- type GetChatAdministratorsOKBody
- type GetChatAdministratorsParams
- func NewGetChatAdministratorsParams() *GetChatAdministratorsParams
- func NewGetChatAdministratorsParamsWithContext(ctx context.Context) *GetChatAdministratorsParams
- func NewGetChatAdministratorsParamsWithHTTPClient(client *http.Client) *GetChatAdministratorsParams
- func NewGetChatAdministratorsParamsWithTimeout(timeout time.Duration) *GetChatAdministratorsParams
- func (o *GetChatAdministratorsParams) SetChatID(chatID string)
- func (o *GetChatAdministratorsParams) SetContext(ctx context.Context)
- func (o *GetChatAdministratorsParams) SetHTTPClient(client *http.Client)
- func (o *GetChatAdministratorsParams) SetTimeout(timeout time.Duration)
- func (o *GetChatAdministratorsParams) SetToken(token *string)
- func (o *GetChatAdministratorsParams) WithChatID(chatID string) *GetChatAdministratorsParams
- func (o *GetChatAdministratorsParams) WithContext(ctx context.Context) *GetChatAdministratorsParams
- func (o *GetChatAdministratorsParams) WithHTTPClient(client *http.Client) *GetChatAdministratorsParams
- func (o *GetChatAdministratorsParams) WithTimeout(timeout time.Duration) *GetChatAdministratorsParams
- func (o *GetChatAdministratorsParams) WithToken(token *string) *GetChatAdministratorsParams
- func (o *GetChatAdministratorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetChatAdministratorsReader
- type GetChatAdministratorsUnauthorized
- type GetChatBadRequest
- type GetChatEnhanceYourCalm
- type GetChatForbidden
- type GetChatInternalServerError
- type GetChatMemberBadRequest
- type GetChatMemberEnhanceYourCalm
- type GetChatMemberForbidden
- type GetChatMemberInternalServerError
- type GetChatMemberNotFound
- type GetChatMemberOK
- type GetChatMemberOKBody
- type GetChatMemberParams
- func (o *GetChatMemberParams) SetChatID(chatID string)
- func (o *GetChatMemberParams) SetContext(ctx context.Context)
- func (o *GetChatMemberParams) SetHTTPClient(client *http.Client)
- func (o *GetChatMemberParams) SetTimeout(timeout time.Duration)
- func (o *GetChatMemberParams) SetToken(token *string)
- func (o *GetChatMemberParams) SetUserID(userID string)
- func (o *GetChatMemberParams) WithChatID(chatID string) *GetChatMemberParams
- func (o *GetChatMemberParams) WithContext(ctx context.Context) *GetChatMemberParams
- func (o *GetChatMemberParams) WithHTTPClient(client *http.Client) *GetChatMemberParams
- func (o *GetChatMemberParams) WithTimeout(timeout time.Duration) *GetChatMemberParams
- func (o *GetChatMemberParams) WithToken(token *string) *GetChatMemberParams
- func (o *GetChatMemberParams) WithUserID(userID string) *GetChatMemberParams
- func (o *GetChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetChatMemberReader
- type GetChatMemberUnauthorized
- type GetChatMembersCountBadRequest
- type GetChatMembersCountEnhanceYourCalm
- type GetChatMembersCountForbidden
- type GetChatMembersCountInternalServerError
- type GetChatMembersCountNotFound
- type GetChatMembersCountOK
- type GetChatMembersCountOKBody
- type GetChatMembersCountParams
- func NewGetChatMembersCountParams() *GetChatMembersCountParams
- func NewGetChatMembersCountParamsWithContext(ctx context.Context) *GetChatMembersCountParams
- func NewGetChatMembersCountParamsWithHTTPClient(client *http.Client) *GetChatMembersCountParams
- func NewGetChatMembersCountParamsWithTimeout(timeout time.Duration) *GetChatMembersCountParams
- func (o *GetChatMembersCountParams) SetChatID(chatID string)
- func (o *GetChatMembersCountParams) SetContext(ctx context.Context)
- func (o *GetChatMembersCountParams) SetHTTPClient(client *http.Client)
- func (o *GetChatMembersCountParams) SetTimeout(timeout time.Duration)
- func (o *GetChatMembersCountParams) SetToken(token *string)
- func (o *GetChatMembersCountParams) WithChatID(chatID string) *GetChatMembersCountParams
- func (o *GetChatMembersCountParams) WithContext(ctx context.Context) *GetChatMembersCountParams
- func (o *GetChatMembersCountParams) WithHTTPClient(client *http.Client) *GetChatMembersCountParams
- func (o *GetChatMembersCountParams) WithTimeout(timeout time.Duration) *GetChatMembersCountParams
- func (o *GetChatMembersCountParams) WithToken(token *string) *GetChatMembersCountParams
- func (o *GetChatMembersCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetChatMembersCountReader
- type GetChatMembersCountUnauthorized
- type GetChatNotFound
- type GetChatOK
- type GetChatOKBody
- type GetChatParams
- func (o *GetChatParams) SetChatID(chatID string)
- func (o *GetChatParams) SetContext(ctx context.Context)
- func (o *GetChatParams) SetHTTPClient(client *http.Client)
- func (o *GetChatParams) SetTimeout(timeout time.Duration)
- func (o *GetChatParams) SetToken(token *string)
- func (o *GetChatParams) WithChatID(chatID string) *GetChatParams
- func (o *GetChatParams) WithContext(ctx context.Context) *GetChatParams
- func (o *GetChatParams) WithHTTPClient(client *http.Client) *GetChatParams
- func (o *GetChatParams) WithTimeout(timeout time.Duration) *GetChatParams
- func (o *GetChatParams) WithToken(token *string) *GetChatParams
- func (o *GetChatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetChatReader
- type GetChatUnauthorized
- type KickChatMemberBadRequest
- type KickChatMemberEnhanceYourCalm
- type KickChatMemberForbidden
- type KickChatMemberInternalServerError
- type KickChatMemberNotFound
- type KickChatMemberOK
- type KickChatMemberParams
- func NewKickChatMemberParams() *KickChatMemberParams
- func NewKickChatMemberParamsWithContext(ctx context.Context) *KickChatMemberParams
- func NewKickChatMemberParamsWithHTTPClient(client *http.Client) *KickChatMemberParams
- func NewKickChatMemberParamsWithTimeout(timeout time.Duration) *KickChatMemberParams
- func (o *KickChatMemberParams) SetChatID(chatID string)
- func (o *KickChatMemberParams) SetContext(ctx context.Context)
- func (o *KickChatMemberParams) SetHTTPClient(client *http.Client)
- func (o *KickChatMemberParams) SetTimeout(timeout time.Duration)
- func (o *KickChatMemberParams) SetToken(token *string)
- func (o *KickChatMemberParams) SetUntilDate(untilDate *int64)
- func (o *KickChatMemberParams) SetUserID(userID int64)
- func (o *KickChatMemberParams) WithChatID(chatID string) *KickChatMemberParams
- func (o *KickChatMemberParams) WithContext(ctx context.Context) *KickChatMemberParams
- func (o *KickChatMemberParams) WithHTTPClient(client *http.Client) *KickChatMemberParams
- func (o *KickChatMemberParams) WithTimeout(timeout time.Duration) *KickChatMemberParams
- func (o *KickChatMemberParams) WithToken(token *string) *KickChatMemberParams
- func (o *KickChatMemberParams) WithUntilDate(untilDate *int64) *KickChatMemberParams
- func (o *KickChatMemberParams) WithUserID(userID int64) *KickChatMemberParams
- func (o *KickChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type KickChatMemberReader
- type KickChatMemberUnauthorized
- type LeaveChatBadRequest
- type LeaveChatEnhanceYourCalm
- type LeaveChatForbidden
- type LeaveChatInternalServerError
- type LeaveChatNotFound
- type LeaveChatOK
- type LeaveChatParams
- func (o *LeaveChatParams) SetChatID(chatID string)
- func (o *LeaveChatParams) SetContext(ctx context.Context)
- func (o *LeaveChatParams) SetHTTPClient(client *http.Client)
- func (o *LeaveChatParams) SetTimeout(timeout time.Duration)
- func (o *LeaveChatParams) SetToken(token *string)
- func (o *LeaveChatParams) WithChatID(chatID string) *LeaveChatParams
- func (o *LeaveChatParams) WithContext(ctx context.Context) *LeaveChatParams
- func (o *LeaveChatParams) WithHTTPClient(client *http.Client) *LeaveChatParams
- func (o *LeaveChatParams) WithTimeout(timeout time.Duration) *LeaveChatParams
- func (o *LeaveChatParams) WithToken(token *string) *LeaveChatParams
- func (o *LeaveChatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LeaveChatReader
- type LeaveChatUnauthorized
- type PinChatMessageBadRequest
- type PinChatMessageEnhanceYourCalm
- type PinChatMessageForbidden
- type PinChatMessageInternalServerError
- type PinChatMessageNotFound
- type PinChatMessageOK
- type PinChatMessageParams
- func NewPinChatMessageParams() *PinChatMessageParams
- func NewPinChatMessageParamsWithContext(ctx context.Context) *PinChatMessageParams
- func NewPinChatMessageParamsWithHTTPClient(client *http.Client) *PinChatMessageParams
- func NewPinChatMessageParamsWithTimeout(timeout time.Duration) *PinChatMessageParams
- func (o *PinChatMessageParams) SetChatID(chatID string)
- func (o *PinChatMessageParams) SetContext(ctx context.Context)
- func (o *PinChatMessageParams) SetDisableNotification(disableNotification *bool)
- func (o *PinChatMessageParams) SetHTTPClient(client *http.Client)
- func (o *PinChatMessageParams) SetMessageID(messageID int64)
- func (o *PinChatMessageParams) SetTimeout(timeout time.Duration)
- func (o *PinChatMessageParams) SetToken(token *string)
- func (o *PinChatMessageParams) WithChatID(chatID string) *PinChatMessageParams
- func (o *PinChatMessageParams) WithContext(ctx context.Context) *PinChatMessageParams
- func (o *PinChatMessageParams) WithDisableNotification(disableNotification *bool) *PinChatMessageParams
- func (o *PinChatMessageParams) WithHTTPClient(client *http.Client) *PinChatMessageParams
- func (o *PinChatMessageParams) WithMessageID(messageID int64) *PinChatMessageParams
- func (o *PinChatMessageParams) WithTimeout(timeout time.Duration) *PinChatMessageParams
- func (o *PinChatMessageParams) WithToken(token *string) *PinChatMessageParams
- func (o *PinChatMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PinChatMessageReader
- type PinChatMessageUnauthorized
- type PromoteChatMemberBadRequest
- type PromoteChatMemberEnhanceYourCalm
- type PromoteChatMemberForbidden
- type PromoteChatMemberInternalServerError
- type PromoteChatMemberNotFound
- type PromoteChatMemberOK
- type PromoteChatMemberParams
- func NewPromoteChatMemberParams() *PromoteChatMemberParams
- func NewPromoteChatMemberParamsWithContext(ctx context.Context) *PromoteChatMemberParams
- func NewPromoteChatMemberParamsWithHTTPClient(client *http.Client) *PromoteChatMemberParams
- func NewPromoteChatMemberParamsWithTimeout(timeout time.Duration) *PromoteChatMemberParams
- func (o *PromoteChatMemberParams) SetBody(body *models.PromoteChatMemberBody)
- func (o *PromoteChatMemberParams) SetContext(ctx context.Context)
- func (o *PromoteChatMemberParams) SetHTTPClient(client *http.Client)
- func (o *PromoteChatMemberParams) SetTimeout(timeout time.Duration)
- func (o *PromoteChatMemberParams) SetToken(token *string)
- func (o *PromoteChatMemberParams) WithBody(body *models.PromoteChatMemberBody) *PromoteChatMemberParams
- func (o *PromoteChatMemberParams) WithContext(ctx context.Context) *PromoteChatMemberParams
- func (o *PromoteChatMemberParams) WithHTTPClient(client *http.Client) *PromoteChatMemberParams
- func (o *PromoteChatMemberParams) WithTimeout(timeout time.Duration) *PromoteChatMemberParams
- func (o *PromoteChatMemberParams) WithToken(token *string) *PromoteChatMemberParams
- func (o *PromoteChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PromoteChatMemberReader
- type PromoteChatMemberUnauthorized
- type RestrictChatMemberBadRequest
- type RestrictChatMemberEnhanceYourCalm
- type RestrictChatMemberForbidden
- type RestrictChatMemberInternalServerError
- type RestrictChatMemberNotFound
- type RestrictChatMemberOK
- type RestrictChatMemberParams
- func NewRestrictChatMemberParams() *RestrictChatMemberParams
- func NewRestrictChatMemberParamsWithContext(ctx context.Context) *RestrictChatMemberParams
- func NewRestrictChatMemberParamsWithHTTPClient(client *http.Client) *RestrictChatMemberParams
- func NewRestrictChatMemberParamsWithTimeout(timeout time.Duration) *RestrictChatMemberParams
- func (o *RestrictChatMemberParams) SetBody(body *models.RestrictChatMemberBody)
- func (o *RestrictChatMemberParams) SetContext(ctx context.Context)
- func (o *RestrictChatMemberParams) SetHTTPClient(client *http.Client)
- func (o *RestrictChatMemberParams) SetTimeout(timeout time.Duration)
- func (o *RestrictChatMemberParams) SetToken(token *string)
- func (o *RestrictChatMemberParams) WithBody(body *models.RestrictChatMemberBody) *RestrictChatMemberParams
- func (o *RestrictChatMemberParams) WithContext(ctx context.Context) *RestrictChatMemberParams
- func (o *RestrictChatMemberParams) WithHTTPClient(client *http.Client) *RestrictChatMemberParams
- func (o *RestrictChatMemberParams) WithTimeout(timeout time.Duration) *RestrictChatMemberParams
- func (o *RestrictChatMemberParams) WithToken(token *string) *RestrictChatMemberParams
- func (o *RestrictChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestrictChatMemberReader
- type RestrictChatMemberUnauthorized
- type SendChatActionBadRequest
- type SendChatActionEnhanceYourCalm
- type SendChatActionForbidden
- type SendChatActionInternalServerError
- type SendChatActionNotFound
- type SendChatActionOK
- type SendChatActionParams
- func NewSendChatActionParams() *SendChatActionParams
- func NewSendChatActionParamsWithContext(ctx context.Context) *SendChatActionParams
- func NewSendChatActionParamsWithHTTPClient(client *http.Client) *SendChatActionParams
- func NewSendChatActionParamsWithTimeout(timeout time.Duration) *SendChatActionParams
- func (o *SendChatActionParams) SetAction(action string)
- func (o *SendChatActionParams) SetChatID(chatID string)
- func (o *SendChatActionParams) SetContext(ctx context.Context)
- func (o *SendChatActionParams) SetHTTPClient(client *http.Client)
- func (o *SendChatActionParams) SetTimeout(timeout time.Duration)
- func (o *SendChatActionParams) SetToken(token *string)
- func (o *SendChatActionParams) WithAction(action string) *SendChatActionParams
- func (o *SendChatActionParams) WithChatID(chatID string) *SendChatActionParams
- func (o *SendChatActionParams) WithContext(ctx context.Context) *SendChatActionParams
- func (o *SendChatActionParams) WithHTTPClient(client *http.Client) *SendChatActionParams
- func (o *SendChatActionParams) WithTimeout(timeout time.Duration) *SendChatActionParams
- func (o *SendChatActionParams) WithToken(token *string) *SendChatActionParams
- func (o *SendChatActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendChatActionReader
- type SendChatActionUnauthorized
- type SetChatDescriptionBadRequest
- type SetChatDescriptionEnhanceYourCalm
- type SetChatDescriptionForbidden
- type SetChatDescriptionInternalServerError
- type SetChatDescriptionNotFound
- type SetChatDescriptionOK
- type SetChatDescriptionParams
- func NewSetChatDescriptionParams() *SetChatDescriptionParams
- func NewSetChatDescriptionParamsWithContext(ctx context.Context) *SetChatDescriptionParams
- func NewSetChatDescriptionParamsWithHTTPClient(client *http.Client) *SetChatDescriptionParams
- func NewSetChatDescriptionParamsWithTimeout(timeout time.Duration) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) SetChatID(chatID string)
- func (o *SetChatDescriptionParams) SetContext(ctx context.Context)
- func (o *SetChatDescriptionParams) SetDescription(description string)
- func (o *SetChatDescriptionParams) SetHTTPClient(client *http.Client)
- func (o *SetChatDescriptionParams) SetTimeout(timeout time.Duration)
- func (o *SetChatDescriptionParams) SetToken(token *string)
- func (o *SetChatDescriptionParams) WithChatID(chatID string) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) WithContext(ctx context.Context) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) WithDescription(description string) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) WithHTTPClient(client *http.Client) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) WithTimeout(timeout time.Duration) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) WithToken(token *string) *SetChatDescriptionParams
- func (o *SetChatDescriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetChatDescriptionReader
- type SetChatDescriptionUnauthorized
- type SetChatPhotoBadRequest
- type SetChatPhotoEnhanceYourCalm
- type SetChatPhotoForbidden
- type SetChatPhotoInternalServerError
- type SetChatPhotoNotFound
- type SetChatPhotoOK
- type SetChatPhotoParams
- func (o *SetChatPhotoParams) SetChatID(chatID string)
- func (o *SetChatPhotoParams) SetContext(ctx context.Context)
- func (o *SetChatPhotoParams) SetHTTPClient(client *http.Client)
- func (o *SetChatPhotoParams) SetPhoto(photo runtime.NamedReadCloser)
- func (o *SetChatPhotoParams) SetTimeout(timeout time.Duration)
- func (o *SetChatPhotoParams) SetToken(token *string)
- func (o *SetChatPhotoParams) WithChatID(chatID string) *SetChatPhotoParams
- func (o *SetChatPhotoParams) WithContext(ctx context.Context) *SetChatPhotoParams
- func (o *SetChatPhotoParams) WithHTTPClient(client *http.Client) *SetChatPhotoParams
- func (o *SetChatPhotoParams) WithPhoto(photo runtime.NamedReadCloser) *SetChatPhotoParams
- func (o *SetChatPhotoParams) WithTimeout(timeout time.Duration) *SetChatPhotoParams
- func (o *SetChatPhotoParams) WithToken(token *string) *SetChatPhotoParams
- func (o *SetChatPhotoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetChatPhotoReader
- type SetChatPhotoUnauthorized
- type SetChatTitleBadRequest
- type SetChatTitleEnhanceYourCalm
- type SetChatTitleForbidden
- type SetChatTitleInternalServerError
- type SetChatTitleNotFound
- type SetChatTitleOK
- type SetChatTitleParams
- func (o *SetChatTitleParams) SetChatID(chatID string)
- func (o *SetChatTitleParams) SetContext(ctx context.Context)
- func (o *SetChatTitleParams) SetHTTPClient(client *http.Client)
- func (o *SetChatTitleParams) SetTimeout(timeout time.Duration)
- func (o *SetChatTitleParams) SetTitle(title string)
- func (o *SetChatTitleParams) SetToken(token *string)
- func (o *SetChatTitleParams) WithChatID(chatID string) *SetChatTitleParams
- func (o *SetChatTitleParams) WithContext(ctx context.Context) *SetChatTitleParams
- func (o *SetChatTitleParams) WithHTTPClient(client *http.Client) *SetChatTitleParams
- func (o *SetChatTitleParams) WithTimeout(timeout time.Duration) *SetChatTitleParams
- func (o *SetChatTitleParams) WithTitle(title string) *SetChatTitleParams
- func (o *SetChatTitleParams) WithToken(token *string) *SetChatTitleParams
- func (o *SetChatTitleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetChatTitleReader
- type SetChatTitleUnauthorized
- type UnbanChatMemberBadRequest
- type UnbanChatMemberEnhanceYourCalm
- type UnbanChatMemberForbidden
- type UnbanChatMemberInternalServerError
- type UnbanChatMemberNotFound
- type UnbanChatMemberOK
- type UnbanChatMemberParams
- func NewUnbanChatMemberParams() *UnbanChatMemberParams
- func NewUnbanChatMemberParamsWithContext(ctx context.Context) *UnbanChatMemberParams
- func NewUnbanChatMemberParamsWithHTTPClient(client *http.Client) *UnbanChatMemberParams
- func NewUnbanChatMemberParamsWithTimeout(timeout time.Duration) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) SetChatID(chatID string)
- func (o *UnbanChatMemberParams) SetContext(ctx context.Context)
- func (o *UnbanChatMemberParams) SetHTTPClient(client *http.Client)
- func (o *UnbanChatMemberParams) SetTimeout(timeout time.Duration)
- func (o *UnbanChatMemberParams) SetToken(token *string)
- func (o *UnbanChatMemberParams) SetUserID(userID string)
- func (o *UnbanChatMemberParams) WithChatID(chatID string) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) WithContext(ctx context.Context) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) WithHTTPClient(client *http.Client) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) WithTimeout(timeout time.Duration) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) WithToken(token *string) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) WithUserID(userID string) *UnbanChatMemberParams
- func (o *UnbanChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnbanChatMemberReader
- type UnbanChatMemberUnauthorized
- type UnpinChatMessageBadRequest
- type UnpinChatMessageEnhanceYourCalm
- type UnpinChatMessageForbidden
- type UnpinChatMessageInternalServerError
- type UnpinChatMessageNotFound
- type UnpinChatMessageOK
- type UnpinChatMessageParams
- func NewUnpinChatMessageParams() *UnpinChatMessageParams
- func NewUnpinChatMessageParamsWithContext(ctx context.Context) *UnpinChatMessageParams
- func NewUnpinChatMessageParamsWithHTTPClient(client *http.Client) *UnpinChatMessageParams
- func NewUnpinChatMessageParamsWithTimeout(timeout time.Duration) *UnpinChatMessageParams
- func (o *UnpinChatMessageParams) SetChatID(chatID string)
- func (o *UnpinChatMessageParams) SetContext(ctx context.Context)
- func (o *UnpinChatMessageParams) SetHTTPClient(client *http.Client)
- func (o *UnpinChatMessageParams) SetTimeout(timeout time.Duration)
- func (o *UnpinChatMessageParams) SetToken(token *string)
- func (o *UnpinChatMessageParams) WithChatID(chatID string) *UnpinChatMessageParams
- func (o *UnpinChatMessageParams) WithContext(ctx context.Context) *UnpinChatMessageParams
- func (o *UnpinChatMessageParams) WithHTTPClient(client *http.Client) *UnpinChatMessageParams
- func (o *UnpinChatMessageParams) WithTimeout(timeout time.Duration) *UnpinChatMessageParams
- func (o *UnpinChatMessageParams) WithToken(token *string) *UnpinChatMessageParams
- func (o *UnpinChatMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnpinChatMessageReader
- type UnpinChatMessageUnauthorized
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 (*Client) ExportChatInviteLink ¶
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 ¶
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 ¶
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 ¶
func (o *DeleteChatPhotoEnhanceYourCalm) Error() string
type DeleteChatPhotoForbidden ¶
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 ¶
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 ¶
func (o *DeleteChatPhotoInternalServerError) Error() string
type DeleteChatPhotoNotFound ¶
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 ¶
func (o *DeleteChatPhotoParams) WithContext(ctx context.Context) *DeleteChatPhotoParams
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 {
}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 ¶
func (o *DeleteChatPhotoUnauthorized) Error() string
type ExportChatInviteLinkBadRequest ¶
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 ¶
func (o *ExportChatInviteLinkBadRequest) Error() string
type ExportChatInviteLinkEnhanceYourCalm ¶
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 ¶
func (o *ExportChatInviteLinkEnhanceYourCalm) Error() string
type ExportChatInviteLinkForbidden ¶
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 ¶
func (o *ExportChatInviteLinkForbidden) Error() string
type ExportChatInviteLinkInternalServerError ¶
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 ¶
func (o *ExportChatInviteLinkInternalServerError) Error() string
type ExportChatInviteLinkNotFound ¶
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 ¶
func (o *ExportChatInviteLinkNotFound) Error() string
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 ¶
func (o *ExportChatInviteLinkParams) WithChatID(chatID string) *ExportChatInviteLinkParams
WithChatID adds the chatID to the export chat invite link params
func (*ExportChatInviteLinkParams) WithContext ¶
func (o *ExportChatInviteLinkParams) WithContext(ctx context.Context) *ExportChatInviteLinkParams
WithContext adds the context to the export chat invite link params
func (*ExportChatInviteLinkParams) WithHTTPClient ¶
func (o *ExportChatInviteLinkParams) WithHTTPClient(client *http.Client) *ExportChatInviteLinkParams
WithHTTPClient adds the HTTPClient to the export chat invite link params
func (*ExportChatInviteLinkParams) WithTimeout ¶
func (o *ExportChatInviteLinkParams) WithTimeout(timeout time.Duration) *ExportChatInviteLinkParams
WithTimeout adds the timeout to the export chat invite link params
func (*ExportChatInviteLinkParams) WithToken ¶
func (o *ExportChatInviteLinkParams) WithToken(token *string) *ExportChatInviteLinkParams
WithToken adds the token to the export chat invite link params
func (*ExportChatInviteLinkParams) WriteToRequest ¶
func (o *ExportChatInviteLinkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *ExportChatInviteLinkUnauthorized) Error() string
type GetChatAdministratorsBadRequest ¶
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 ¶
func (o *GetChatAdministratorsBadRequest) Error() string
type GetChatAdministratorsEnhanceYourCalm ¶
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 ¶
func (o *GetChatAdministratorsEnhanceYourCalm) Error() string
type GetChatAdministratorsForbidden ¶
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 ¶
func (o *GetChatAdministratorsForbidden) Error() string
type GetChatAdministratorsInternalServerError ¶
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 ¶
func (o *GetChatAdministratorsInternalServerError) Error() string
type GetChatAdministratorsNotFound ¶
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 ¶
func (o *GetChatAdministratorsNotFound) Error() string
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
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 ¶
func (o *GetChatAdministratorsParams) WithChatID(chatID string) *GetChatAdministratorsParams
WithChatID adds the chatID to the get chat administrators params
func (*GetChatAdministratorsParams) WithContext ¶
func (o *GetChatAdministratorsParams) WithContext(ctx context.Context) *GetChatAdministratorsParams
WithContext adds the context to the get chat administrators params
func (*GetChatAdministratorsParams) WithHTTPClient ¶
func (o *GetChatAdministratorsParams) WithHTTPClient(client *http.Client) *GetChatAdministratorsParams
WithHTTPClient adds the HTTPClient to the get chat administrators params
func (*GetChatAdministratorsParams) WithTimeout ¶
func (o *GetChatAdministratorsParams) WithTimeout(timeout time.Duration) *GetChatAdministratorsParams
WithTimeout adds the timeout to the get chat administrators params
func (*GetChatAdministratorsParams) WithToken ¶
func (o *GetChatAdministratorsParams) WithToken(token *string) *GetChatAdministratorsParams
WithToken adds the token to the get chat administrators params
func (*GetChatAdministratorsParams) WriteToRequest ¶
func (o *GetChatAdministratorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetChatAdministratorsUnauthorized) Error() string
type GetChatBadRequest ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *GetChatInternalServerError) Error() string
type GetChatMemberBadRequest ¶
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 ¶
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 ¶
func (o *GetChatMemberEnhanceYourCalm) Error() string
type GetChatMemberForbidden ¶
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 ¶
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 ¶
func (o *GetChatMemberInternalServerError) Error() string
type GetChatMemberNotFound ¶
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
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 ¶
func (o *GetChatMemberParams) WithContext(ctx context.Context) *GetChatMemberParams
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 {
}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 ¶
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 ¶
func (o *GetChatMembersCountBadRequest) Error() string
type GetChatMembersCountEnhanceYourCalm ¶
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 ¶
func (o *GetChatMembersCountEnhanceYourCalm) Error() string
type GetChatMembersCountForbidden ¶
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 ¶
func (o *GetChatMembersCountForbidden) Error() string
type GetChatMembersCountInternalServerError ¶
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 ¶
func (o *GetChatMembersCountInternalServerError) Error() string
type GetChatMembersCountNotFound ¶
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 ¶
func (o *GetChatMembersCountNotFound) Error() string
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
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 ¶
func (o *GetChatMembersCountParams) WithChatID(chatID string) *GetChatMembersCountParams
WithChatID adds the chatID to the get chat members count params
func (*GetChatMembersCountParams) WithContext ¶
func (o *GetChatMembersCountParams) WithContext(ctx context.Context) *GetChatMembersCountParams
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 ¶
func (o *GetChatMembersCountParams) WithTimeout(timeout time.Duration) *GetChatMembersCountParams
WithTimeout adds the timeout to the get chat members count params
func (*GetChatMembersCountParams) WithToken ¶
func (o *GetChatMembersCountParams) WithToken(token *string) *GetChatMembersCountParams
WithToken adds the token to the get chat members count params
func (*GetChatMembersCountParams) WriteToRequest ¶
func (o *GetChatMembersCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetChatMembersCountUnauthorized) Error() string
type GetChatNotFound ¶
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
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
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 {
}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 ¶
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 ¶
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 ¶
func (o *KickChatMemberEnhanceYourCalm) Error() string
type KickChatMemberForbidden ¶
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 ¶
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 ¶
func (o *KickChatMemberInternalServerError) Error() string
type KickChatMemberNotFound ¶
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 ¶
func (o *KickChatMemberParams) WithContext(ctx context.Context) *KickChatMemberParams
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 {
}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 ¶
func (o *KickChatMemberUnauthorized) Error() string
type LeaveChatBadRequest ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *LeaveChatInternalServerError) Error() string
type LeaveChatNotFound ¶
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 {
}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 ¶
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 ¶
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 ¶
func (o *PinChatMessageEnhanceYourCalm) Error() string
type PinChatMessageForbidden ¶
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 ¶
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 ¶
func (o *PinChatMessageInternalServerError) Error() string
type PinChatMessageNotFound ¶
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 ¶
func (o *PinChatMessageParams) WithContext(ctx context.Context) *PinChatMessageParams
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 {
}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 ¶
func (o *PinChatMessageUnauthorized) Error() string
type PromoteChatMemberBadRequest ¶
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 ¶
func (o *PromoteChatMemberBadRequest) Error() string
type PromoteChatMemberEnhanceYourCalm ¶
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 ¶
func (o *PromoteChatMemberEnhanceYourCalm) Error() string
type PromoteChatMemberForbidden ¶
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 ¶
func (o *PromoteChatMemberForbidden) Error() string
type PromoteChatMemberInternalServerError ¶
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 ¶
func (o *PromoteChatMemberInternalServerError) Error() string
type PromoteChatMemberNotFound ¶
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 ¶
func (o *PromoteChatMemberParams) SetBody(body *models.PromoteChatMemberBody)
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 ¶
func (o *PromoteChatMemberParams) WithBody(body *models.PromoteChatMemberBody) *PromoteChatMemberParams
WithBody adds the body to the promote chat member params
func (*PromoteChatMemberParams) WithContext ¶
func (o *PromoteChatMemberParams) WithContext(ctx context.Context) *PromoteChatMemberParams
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 ¶
func (o *PromoteChatMemberParams) WithTimeout(timeout time.Duration) *PromoteChatMemberParams
WithTimeout adds the timeout to the promote chat member params
func (*PromoteChatMemberParams) WithToken ¶
func (o *PromoteChatMemberParams) WithToken(token *string) *PromoteChatMemberParams
WithToken adds the token to the promote chat member params
func (*PromoteChatMemberParams) WriteToRequest ¶
func (o *PromoteChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PromoteChatMemberUnauthorized) Error() string
type RestrictChatMemberBadRequest ¶
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 ¶
func (o *RestrictChatMemberBadRequest) Error() string
type RestrictChatMemberEnhanceYourCalm ¶
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 ¶
func (o *RestrictChatMemberEnhanceYourCalm) Error() string
type RestrictChatMemberForbidden ¶
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 ¶
func (o *RestrictChatMemberForbidden) Error() string
type RestrictChatMemberInternalServerError ¶
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 ¶
func (o *RestrictChatMemberInternalServerError) Error() string
type RestrictChatMemberNotFound ¶
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 ¶
func (o *RestrictChatMemberNotFound) Error() string
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 ¶
func (o *RestrictChatMemberParams) SetBody(body *models.RestrictChatMemberBody)
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 ¶
func (o *RestrictChatMemberParams) WithBody(body *models.RestrictChatMemberBody) *RestrictChatMemberParams
WithBody adds the body to the restrict chat member params
func (*RestrictChatMemberParams) WithContext ¶
func (o *RestrictChatMemberParams) WithContext(ctx context.Context) *RestrictChatMemberParams
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 ¶
func (o *RestrictChatMemberParams) WithTimeout(timeout time.Duration) *RestrictChatMemberParams
WithTimeout adds the timeout to the restrict chat member params
func (*RestrictChatMemberParams) WithToken ¶
func (o *RestrictChatMemberParams) WithToken(token *string) *RestrictChatMemberParams
WithToken adds the token to the restrict chat member params
func (*RestrictChatMemberParams) WriteToRequest ¶
func (o *RestrictChatMemberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *RestrictChatMemberUnauthorized) Error() string
type SendChatActionBadRequest ¶
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 ¶
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 ¶
func (o *SendChatActionEnhanceYourCalm) Error() string
type SendChatActionForbidden ¶
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 ¶
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 ¶
func (o *SendChatActionInternalServerError) Error() string
type SendChatActionNotFound ¶
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 ¶
func (o *SendChatActionParams) WithContext(ctx context.Context) *SendChatActionParams
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 {
}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 ¶
func (o *SendChatActionUnauthorized) Error() string
type SetChatDescriptionBadRequest ¶
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 ¶
func (o *SetChatDescriptionBadRequest) Error() string
type SetChatDescriptionEnhanceYourCalm ¶
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 ¶
func (o *SetChatDescriptionEnhanceYourCalm) Error() string
type SetChatDescriptionForbidden ¶
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 ¶
func (o *SetChatDescriptionForbidden) Error() string
type SetChatDescriptionInternalServerError ¶
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 ¶
func (o *SetChatDescriptionInternalServerError) Error() string
type SetChatDescriptionNotFound ¶
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 ¶
func (o *SetChatDescriptionNotFound) Error() string
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 ¶
func (o *SetChatDescriptionParams) WithChatID(chatID string) *SetChatDescriptionParams
WithChatID adds the chatID to the set chat description params
func (*SetChatDescriptionParams) WithContext ¶
func (o *SetChatDescriptionParams) WithContext(ctx context.Context) *SetChatDescriptionParams
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 ¶
func (o *SetChatDescriptionParams) WithTimeout(timeout time.Duration) *SetChatDescriptionParams
WithTimeout adds the timeout to the set chat description params
func (*SetChatDescriptionParams) WithToken ¶
func (o *SetChatDescriptionParams) WithToken(token *string) *SetChatDescriptionParams
WithToken adds the token to the set chat description params
func (*SetChatDescriptionParams) WriteToRequest ¶
func (o *SetChatDescriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *SetChatDescriptionUnauthorized) Error() string
type SetChatPhotoBadRequest ¶
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 ¶
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 ¶
func (o *SetChatPhotoEnhanceYourCalm) Error() string
type SetChatPhotoForbidden ¶
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 ¶
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 ¶
func (o *SetChatPhotoInternalServerError) Error() string
type SetChatPhotoNotFound ¶
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 ¶
func (o *SetChatPhotoParams) WithContext(ctx context.Context) *SetChatPhotoParams
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 ¶
func (o *SetChatPhotoParams) WithPhoto(photo runtime.NamedReadCloser) *SetChatPhotoParams
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 {
}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 ¶
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 ¶
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 ¶
func (o *SetChatTitleEnhanceYourCalm) Error() string
type SetChatTitleForbidden ¶
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 ¶
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 ¶
func (o *SetChatTitleInternalServerError) Error() string
type SetChatTitleNotFound ¶
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 ¶
func (o *SetChatTitleParams) WithContext(ctx context.Context) *SetChatTitleParams
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 {
}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 ¶
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 ¶
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 ¶
func (o *UnbanChatMemberEnhanceYourCalm) Error() string
type UnbanChatMemberForbidden ¶
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 ¶
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 ¶
func (o *UnbanChatMemberInternalServerError) Error() string
type UnbanChatMemberNotFound ¶
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 ¶
func (o *UnbanChatMemberParams) WithContext(ctx context.Context) *UnbanChatMemberParams
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 {
}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 ¶
func (o *UnbanChatMemberUnauthorized) Error() string
type UnpinChatMessageBadRequest ¶
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 ¶
func (o *UnpinChatMessageBadRequest) Error() string
type UnpinChatMessageEnhanceYourCalm ¶
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 ¶
func (o *UnpinChatMessageEnhanceYourCalm) Error() string
type UnpinChatMessageForbidden ¶
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 ¶
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 ¶
func (o *UnpinChatMessageInternalServerError) Error() string
type UnpinChatMessageNotFound ¶
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 ¶
func (o *UnpinChatMessageParams) WithContext(ctx context.Context) *UnpinChatMessageParams
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 ¶
func (o *UnpinChatMessageParams) WithTimeout(timeout time.Duration) *UnpinChatMessageParams
WithTimeout adds the timeout to the unpin chat message params
func (*UnpinChatMessageParams) WithToken ¶
func (o *UnpinChatMessageParams) WithToken(token *string) *UnpinChatMessageParams
WithToken adds the token to the unpin chat message params
func (*UnpinChatMessageParams) WriteToRequest ¶
func (o *UnpinChatMessageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *UnpinChatMessageUnauthorized) Error() string
Source Files ¶
- chats_client.go
- delete_chat_photo_parameters.go
- delete_chat_photo_responses.go
- export_chat_invite_link_parameters.go
- export_chat_invite_link_responses.go
- get_chat_administrators_parameters.go
- get_chat_administrators_responses.go
- get_chat_member_parameters.go
- get_chat_member_responses.go
- get_chat_members_count_parameters.go
- get_chat_members_count_responses.go
- get_chat_parameters.go
- get_chat_responses.go
- kick_chat_member_parameters.go
- kick_chat_member_responses.go
- leave_chat_parameters.go
- leave_chat_responses.go
- pin_chat_message_parameters.go
- pin_chat_message_responses.go
- promote_chat_member_parameters.go
- promote_chat_member_responses.go
- restrict_chat_member_parameters.go
- restrict_chat_member_responses.go
- send_chat_action_parameters.go
- send_chat_action_responses.go
- set_chat_description_parameters.go
- set_chat_description_responses.go
- set_chat_photo_parameters.go
- set_chat_photo_responses.go
- set_chat_title_parameters.go
- set_chat_title_responses.go
- unban_chat_member_parameters.go
- unban_chat_member_responses.go
- unpin_chat_message_parameters.go
- unpin_chat_message_responses.go