restapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package restapi exposes the Telegram account as a JSON REST API. It uses only the standard library (net/http, Go 1.22+ method patterns).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the REST API handler set bound to a Telegram client.

func New

func New(client *telegram.Client) *Server

New creates the REST API server and registers all routes.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the root HTTP handler.

Jump to

Keyboard shortcuts

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