dto

package
v0.0.0-...-d086b3f Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ad struct {
	MessageType string  `json:"message_type"`
	Interval    float64 `json:"interval"` // Default: 0.1
	Test        bool    `json:"test"`

	Text        string                   `json:"text"`                // Will be translated to "caption" if the type is not TEXT
	FileBlob    *string                  `json:"file_blob,omitempty"` // used for PHOTO, ANIMATION and VIDEO
	ReplyMarkup *tb.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

func NewAd

func NewAd() Ad

func (*Ad) Scan

func (a *Ad) Scan(value interface{}) error

func (Ad) Value

func (a Ad) Value() (driver.Value, error)

type Bot

type Bot struct {
	ID    int    `json:"id" db:"id"`
	Token string `json:"token" db:"token"`
}

type Chat

type Chat struct {
	ID int64 `json:"id" db:"id"`
}

type MultipleBotsStatistics

type MultipleBotsStatistics struct {
	ID         int64
	Statistics []Statistics
	StartTime  time.Time
}

type ScheduledAd

type ScheduledAd struct {
	Year  int `json:"year"`
	Month int `json:"month"`
	Day   int `json:"day"`

	Message Ad `json:"message"`
}

type Statistics

type Statistics struct {
	BotID                  int       `json:"bot_id"`
	BotName                string    `json:"bot_name"`
	SuccessfulSendAttempts int       `json:"successful_send_attempts"`
	FailedSendAttempts     int       `json:"failed_send_attemplts"`
	StartTime              time.Time `json:"start_time"`
}

Jump to

Keyboard shortcuts

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