bot

package
v0.0.0-...-a9181b3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAllDayMessage

func SendAllDayMessage(task *model.Task, user *model.User) error

SendAllDayMessage ...

func SendNotifyMessage

func SendNotifyMessage(task *model.Task, user *model.User) error

SendNotifyMessage ...

func SendTodayHandler

func SendTodayHandler(count int, user *model.User) error

SendTodayHandler ...

Types

type BotMessage

type BotMessage struct {
	ChatID int    `json:"chat_id"`
	Text   string `json:"text"`
}

BotMessage ...

type Chat

type Chat struct {
	ChatID int `json:"id"`
}

Chat ...

type Message

type Message struct {
	Chat Chat   `json:"chat"`
	Text string `json:"text"`
}

Message ...

type ResResponse

type ResResponse struct {
	Result []Update `json:"result"`
}

ResResponse ...

type Update

type Update struct {
	UpdateID int     `json:"update_id"`
	Message  Message `json:"message"`
}

Update ...

Jump to

Keyboard shortcuts

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