yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.35k stars 1.52k forks source link

Always ERROR: BOT_DOMAIN_INVALID reply_markup inline_keyboard login_url #1090

Closed sequencerr closed 1 year ago

sequencerr commented 1 year ago

Bug Report

I have read:

I am using the latest version of the library. I have set exactly the same url (https://api_subdomain.host.com) in BotFather /setdomain. But still no progress.

Sending this message in the bot chat.

bot.sendMessage(message.chat.id, 'OAuth, sir.', {
  reply_markup: {
    inline_keyboard: [
      [
        {
          text: 'Tap to login, sir.',
          login_url: {
            url: `${publicApiBaseUrl}/auth/check-authorization`,
            forward_text: 'Redirecting to login page...',
            // bot_username: (await bot.getMe()).username,
            request_write_access: true
          }
        }
      ]
    ]
  }
});

https://github.com/telegraf/telegraf/issues/793