Documentation
¶
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 represents an HTTP server for handling Telegram webhook updates.
func (*Server) Handle ¶
Handle sets up the HTTP handler for the specified pattern to process incoming Telegram updates.
func (*Server) Serve ¶
Serve starts the HTTP server and blocks until an error occurs or the server is shut down.
func (*Server) Shutdown ¶
Shutdown gracefully stops the server, allowing active connections to finish.
func (*Server) Updates ¶
func (srv *Server) Updates() tgbotapi.UpdatesChannel
Updates returns the channel for receiving incoming Telegram updates.
Click to show internal directories.
Click to hide internal directories.