Documentation ¶
Index ¶
- func Activate(chatID int64) string
- func Deactivate(chatID int64) string
- func DeleteItem(chatID int64, productUrl string) string
- func GetIDState(chatID int64) (int, error)
- func GetItemList(chatID int64) string
- func Register(data tgbotapi.Update) string
- func SaveItem(chatID int64, productUrl string) string
- func SendMessage(chatID int64, chatText string)
- func SetStateAddItem(chatID int64) string
- func SetStateDeleteItem(chatID int64) string
- func SetStateHome(chatID int64) string
- func StartListening()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteItem ¶
delete item from user follow list
func GetIDState ¶
get telegram chat state 0 = home, 1 = additem, 2 = deleteitem
func GetItemList ¶
TODO finish this function get user item list
func SendMessage ¶
send bot message to telegram chat id
func SetStateAddItem ¶
set telegram chat id state to 1 (add item)
func SetStateDeleteItem ¶
set telegram chat id state to 2 (delete item)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.