spammer

package
v0.0.0-...-d08261a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostParams

type PostParams struct {
	Photo     string `url:"photo,omitempty"`
	Video     string `url:"video,omitempty"`
	ParseMode string `url:"parse_mode,omitempty"`
	ChatID    int    `url:"chat_id,omitempty"`
	Caption   string `url:"caption,omitempty"`
}

type Spammer

type Spammer struct {
	// contains filtered or unexported fields
}

func (*Spammer) Busy

func (s *Spammer) Busy(chatId int)

func (*Spammer) Init

func (s *Spammer) Init()

func (*Spammer) Post

func (s *Spammer) Post(chatID int, post *danbooru.BooruPost) error

type TGError

type TGError struct {
	Ok          bool   `json:"ok"`
	Description string `json:"description,omitempty"`
}

type TGResponse

type TGResponse struct {
	Ok bool `json:"ok"`
}

Jump to

Keyboard shortcuts

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