handler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OWMApiKey string
View Source
var RedisClient database.RedisClient
View Source
var TelegramApikey string

Functions

func CreateWeatherMsg

func CreateWeatherMsg(data types.WeatherData) string

func Handler

func Handler(res http.ResponseWriter, req *http.Request)

func SendMessage

func SendMessage(chatID int64, text string) error

func SendPhoto

func SendPhoto(chatID int64, photoURL string) error

func SendWeather

func SendWeather(chatID int64, cityLocation string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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