|
@ -43,7 +43,7 @@ func (env *Env) showRoutes(shortCode string, text string) (bool, *string) { |
|
|
commandSplitted := telegrampackage.ParseTelegramBotCommand(text) |
|
|
commandSplitted := telegrampackage.ParseTelegramBotCommand(text) |
|
|
if len(commandSplitted) > 0 && commandSplitted[0] == "/show" { |
|
|
if len(commandSplitted) > 0 && commandSplitted[0] == "/show" { |
|
|
var results []WebhookRoute |
|
|
var results []WebhookRoute |
|
|
env.DB.Where(&WebhookRoute{WebhookID: shortCode}).Find(&results) |
|
|
|
|
|
|
|
|
env.DB.Where(&WebhookRoute{TelegramShortCode: shortCode}).Find(&results) |
|
|
responseText := "The following webhook URLs were previously registered:" |
|
|
responseText := "The following webhook URLs were previously registered:" |
|
|
for _, curr := range results { |
|
|
for _, curr := range results { |
|
|
baseURL, _ := url.Parse(env.HostURL) |
|
|
baseURL, _ := url.Parse(env.HostURL) |
|
|