Source File
tl_messages_get_split_ranges_gen.go
Belonging Package
github.com/gotd/td/tg
// Code generated by gotdgen, DO NOT EDIT.package tgimport ()// No-op definition for keeping imports.var (_ = bin.Buffer{}_ = context.Background()_ = fmt.Stringer(nil)_ = strings.Builder{}_ = errors.Is_ = multierr.AppendInto_ = sort.Ints_ = tdp.Format_ = tgerr.Error{}_ = tdjson.Encoder{})// MessagesGetSplitRangesRequest represents TL type `messages.getSplitRanges#1cff7e08`.// Get message ranges for saving the user's chat history//// See https://core.telegram.org/method/messages.getSplitRanges for reference.type MessagesGetSplitRangesRequest struct {}// MessagesGetSplitRangesRequestTypeID is TL type id of MessagesGetSplitRangesRequest.const MessagesGetSplitRangesRequestTypeID = 0x1cff7e08// Ensuring interfaces in compile-time for MessagesGetSplitRangesRequest.var (_ bin.Encoder = &MessagesGetSplitRangesRequest{}_ bin.Decoder = &MessagesGetSplitRangesRequest{}_ bin.BareEncoder = &MessagesGetSplitRangesRequest{}_ bin.BareDecoder = &MessagesGetSplitRangesRequest{})func ( *MessagesGetSplitRangesRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *MessagesGetSplitRangesRequest) () string {if == nil {return "MessagesGetSplitRangesRequest(nil)"}type MessagesGetSplitRangesRequestreturn fmt.Sprintf("MessagesGetSplitRangesRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*MessagesGetSplitRangesRequest) () uint32 {return MessagesGetSplitRangesRequestTypeID}// TypeName returns name of type in TL schema.func (*MessagesGetSplitRangesRequest) () string {return "messages.getSplitRanges"}// TypeInfo returns info about TL type.func ( *MessagesGetSplitRangesRequest) () tdp.Type {:= tdp.Type{Name: "messages.getSplitRanges",ID: MessagesGetSplitRangesRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *MessagesGetSplitRangesRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode messages.getSplitRanges#1cff7e08 as nil")}.PutID(MessagesGetSplitRangesRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *MessagesGetSplitRangesRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode messages.getSplitRanges#1cff7e08 as nil")}return nil}// Decode implements bin.Decoder.func ( *MessagesGetSplitRangesRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode messages.getSplitRanges#1cff7e08 to nil")}if := .ConsumeID(MessagesGetSplitRangesRequestTypeID); != nil {return fmt.Errorf("unable to decode messages.getSplitRanges#1cff7e08: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *MessagesGetSplitRangesRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode messages.getSplitRanges#1cff7e08 to nil")}return nil}// MessagesGetSplitRanges invokes method messages.getSplitRanges#1cff7e08 returning error if any.// Get message ranges for saving the user's chat history//// See https://core.telegram.org/method/messages.getSplitRanges for reference.func ( *Client) ( context.Context) ([]MessageRange, error) {var MessageRangeVector:= &MessagesGetSplitRangesRequest{}if := .rpc.Invoke(, , &); != nil {return nil,}return []MessageRange(.Elems), nil}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |