httpHandlers

package
v0.0.0-...-c8a31f5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(w http.ResponseWriter, r *http.Request)

func SetTelegramBot

func SetTelegramBot(bot *telegram.TelegramBot)

Types

type Response

type Response struct {
	Message string `json:"message"`
	Success bool   `json:"success"`
}

type SendMessageRequest

type SendMessageRequest struct {
	ChatID    int    `json:"chat_id"`
	Text      string `json:"text"`
	Image     string `json:"image,omitempty"`
	ImageName string `json:"image_name,omitempty"` // Optional, used for image file name
}

Jump to

Keyboard shortcuts

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