types

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendMessageReqBody

type SendMessageReqBody struct {
	ChatID int64  `json:"chat_id"`
	Text   string `json:"text"`
}

type SendPhotoReqBody

type SendPhotoReqBody struct {
	ChatID int64  `json:"chat_id"`
	Photo  string `json:"photo"`
}

type WeatherData

type WeatherData struct {
	State       string
	Temperature float64
	FeelsLike   float64
	Humidity    int
	Sunset      int
	Sunrise     int
	WindSpeed   float64
}

type WebhookReqBody

type WebhookReqBody struct {
	Message struct {
		Text string `json:"text"`
		Chat struct {
			ID int64 `json:"id"`
		} `json:"chat"`
	} `json:"message"`
}

Jump to

Keyboard shortcuts

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