PaulSonOfLars / gotgbot

Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
MIT License
469 stars 107 forks source link

webhook dosen't work #123

Closed sgree104 closed 9 months ago

sgree104 commented 9 months ago
webhookDomain :="45.62.123.123"
    webhookSecret:="123456"
    if webhookDomain != "" {
        err := startWebhookBots(global.Updater,bots, webhookDomain, webhookSecret)
        if err != nil {
            panic("Failed to start bots via webhook: " + err.Error())
        }

    } else {
        err := startLongPollingBots(global.Updater, bots)
        if err != nil {
            logrus.Errorln("Failed to start bots via polling: " + err.Error())
            // panic("Failed to start bots via polling: " + err.Error())
        }
    }

when i send message to bot,did't get any response

PaulSonOfLars commented 9 months ago

Resolved in the support chat - question here: https://t.me/GotgbotChat/11149