Archived
1

Moving from long polling to webhook-based updates

This commit is contained in:
2018-01-31 00:10:10 +04:00
parent 5b13b6479a
commit 88e640d322
4 changed files with 16 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ func (b *Broadcaster) AdminBroadcastMessageSend(update *tgbotapi.Update, playerR
return "fail"
}
prettyName := profileRaw.Nickname + "(@" + profileRaw.TelegramNickname + ")"
prettyName := profileRaw.Nickname + " (@" + profileRaw.TelegramNickname + ")"
privateChats := []dbmapping.Chat{}
switch messageRaw.BroadcastType {

View File

@@ -24,7 +24,9 @@ type DatabaseConnection struct {
// TelegramConnection handles settings for Telegram connection in config.yaml
type TelegramConnection struct {
APIToken string `yaml:"api_token"`
APIToken string `yaml:"api_token"`
WebHookDomain string `yaml:"webhook_domain"`
ListenAddress string `yaml:"listen_address"`
}
// SpecialChats handles settings for special chats