Documentation
¶
Index ¶
Constants ¶
View Source
const PluginName = "tgbotserver"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Mode Mode `mapstructure:"mode"`
}
func (*Config) InitDefault ¶
func (cfg *Config) InitDefault()
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
type PollingConfig ¶
type PollingConfig struct {
Offset int `mapstructure:"offset"`
Limit int `mapstructure:"limit"`
Timeout int `mapstructure:"timeout"`
AllowedUpdates []string `mapstructure:"allowed_updates"`
}
func (*PollingConfig) BuildUpdateConfig ¶
func (cfg *PollingConfig) BuildUpdateConfig() tgbotapi.UpdateConfig
func (*PollingConfig) InitDefault ¶
func (cfg *PollingConfig) InitDefault()
type WebhookConfig ¶
type WebhookConfig struct {
URL string `mapstructure:"url"`
Certificate string `mapstructure:"certificate"`
IPAddress string `mapstructure:"ip"`
AllowedUpdates []string `mapstructure:"allowed_updates"`
MaxConnections int `mapstructure:"max_connections"`
DropPendingUpdates bool `mapstructure:"drop_pending_updates"`
}
func (*WebhookConfig) BuildWebhookConfig ¶
func (cfg *WebhookConfig) BuildWebhookConfig() (tgbotapi.WebhookConfig, error)
Click to show internal directories.
Click to hide internal directories.