Update telegram-approval-join submodule and apply branding patches
This commit is contained in:
parent
015f99dc83
commit
8aa8521304
5 changed files with 80 additions and 21 deletions
|
|
@ -8,14 +8,15 @@ import (
|
|||
)
|
||||
|
||||
type Config struct {
|
||||
BotToken *string `yaml:"bot_token"`
|
||||
AdminChatId *int64 `yaml:"admin_chat_id"`
|
||||
AdminChatTopicId *int `yaml:"admin_chat_topic_id"`
|
||||
TargetChatId *int64 `yaml:"target_chat_id"`
|
||||
EntryMessage string `yaml:"entry_message"`
|
||||
ApprovalMessage string `yaml:"approval_message"`
|
||||
SendApprovalMessage bool `yaml:"send_approval_message"`
|
||||
DeleteRequestAfterDecision bool `yaml:"delete_request_after_decision"`
|
||||
BotToken *string `yaml:"bot_token"`
|
||||
AdminChatId *int64 `yaml:"admin_chat_id"`
|
||||
AdminChatTopicId *int `yaml:"admin_chat_topic_id"`
|
||||
TargetChatId *int64 `yaml:"target_chat_id"`
|
||||
EntryMessage string `yaml:"entry_message"`
|
||||
ApprovalMessage string `yaml:"approval_message"`
|
||||
SendApprovalMessage bool `yaml:"send_approval_message"`
|
||||
DeleteRequestAfterDecision bool `yaml:"delete_request_after_decision"`
|
||||
CannedDeclineResponses []string `yaml:"canned_decline_responses"`
|
||||
}
|
||||
|
||||
func (c *Config) LoadConfig() error {
|
||||
|
|
@ -47,6 +48,7 @@ func (c *Config) CreateConfig() error {
|
|||
ApprovalMessage: "",
|
||||
SendApprovalMessage: false,
|
||||
DeleteRequestAfterDecision: false,
|
||||
CannedDeclineResponses: []string{},
|
||||
}
|
||||
|
||||
encoder := yaml.NewEncoder(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue