Documentation
¶
Index ¶
- Variables
- func Call(fn_struct interface{}) (responseBody string, err error)
- func EditMessageCaption(client *Client, messageId int64, caption string, args ...interface{}) (err error)
- func EditMessageText(client *Client, messageId int64, text string, args ...interface{}) (err error)
- func GetMessageTypeCallback(messageTypeHash string) (fn func(client *Client, update *tlg.Update) (string, error), err error)
- func MakeTransition(client *Client, update *tlg.Update, signal string) (err error)
- func SaveClients() (err error)
- func SendMessage(client *Client, text string, args ...interface{}) (err error)
- func SendPhotoByURL(client *Client, photoURL tlg.InputFile, args ...interface{}) (err error)
- func SetMessageType(fn func(client *Client, update *tlg.Update) (string, error), types ...int64) (err error)
- func SetRedisPrefixKey(prefix string)
- func SetStates(stateNames ...string) (err error)
- func SetToken(token string)
- func SetTransition(stateFrom, stateTo, signal string, ...) (err error)
- func SetupRedisSettings(addr, password string, db int) (err error)
- type Client
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RedisClient *redis.Client
)
Functions ¶
func EditMessageCaption ¶
func EditMessageCaption(client *Client, messageId int64, caption string, args ...interface{}) (err error)
args: 1 - keyboard *constructor.Keyboard
func EditMessageText ¶
args: 1 - keyboard *constructor.Keyboard
func GetMessageTypeCallback ¶
func MakeTransition ¶
func SaveClients ¶
func SaveClients() (err error)
func SendMessage ¶
args: 1 - keyboard *constructor.Keyboard 2 - ProtectContent bool 3 - DisableNotification bool 4 - DisableWebPagePreview bool
func SendPhotoByURL ¶
add - additional parameters: 1. caption string 2. keyboard 3. has_spoiler bool 4. disable_notifiaction bool 5. protect_content bool
func SetMessageType ¶
func SetRedisPrefixKey ¶
func SetRedisPrefixKey(prefix string)
func SetTransition ¶
func SetupRedisSettings ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.