tg

package
v1.25.19 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChatId int64

Functions

func Server

func Server()

Types

type Aio

type Aio struct {
	CryptoApi   *crypto.CryptoMonitor
	ChatGPTApi  *chatgpt.ChatGPT
	VpsApi      *vps.VpsMonitor
	PhotoApi    *photo.Cutouts
	CryptoV2Api *crypto.Probe
	Cron        *cron.Task
	Video       *video.VideoDownload
	Gif         *Gif
	Sticker     *Sticker
	Utils       *utils.Utils
	Lists       *lists.Lists
	Track       *crypto.Track
	Bitcointalk *bbs.Bitcointalk
	// contains filtered or unexported fields
}

func (*Aio) AppendMsg added in v1.9.0

func (t *Aio) AppendMsg(id int64, msgId int, msg string)

func (*Aio) DeleteAfterSendMarkdown added in v0.0.36

func (t *Aio) DeleteAfterSendMarkdown(id int64, msg string, preview bool)

func (*Aio) DeleteAfterSendMessage added in v1.0.2

func (t *Aio) DeleteAfterSendMessage(msg string)

func (*Aio) LocalServerSendFile

func (t *Aio) LocalServerSendFile(id int64, filepath string, filename string)

func (*Aio) NewBot

func (t *Aio) NewBot(token string, local string)

func (*Aio) SendAudio

func (t *Aio) SendAudio(id int64, cfg []interface{})

func (*Aio) SendFile

func (t *Aio) SendFile(id int64, file string)

func (*Aio) SendImg

func (t *Aio) SendImg(id int64, img string)

func (*Aio) SendMarkdown

func (t *Aio) SendMarkdown(id int64, msg string, preview bool) (tgbotapi.Message, error)

func (*Aio) SendMessage

func (t *Aio) SendMessage(msg string)

func (*Aio) SendMsg

func (t *Aio) SendMsg(id int64, msg string)

func (*Aio) SendVideo

func (t *Aio) SendVideo(id int64, video string)

func (*Aio) WaitToSend

func (t *Aio) WaitToSend()

type Gif

type Gif struct {
	C    chan string
	MsgC chan string
	// contains filtered or unexported fields
}

func NewGif

func NewGif() *Gif

func (*Gif) GifDownload

func (t *Gif) GifDownload(fileId string)

type Sticker

type Sticker struct {
	C    chan string
	MsgC chan string
	// contains filtered or unexported fields
}

func NewSticker

func NewSticker() *Sticker

func (*Sticker) StickerDownload

func (t *Sticker) StickerDownload(fileId string, gif bool)

Jump to

Keyboard shortcuts

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