Moving from long polling to webhook-based updates
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user