skip to Main Content

Code Snippet:

ctx.reply(
    `Hi! ${ctx.from.first_name} 👋 n n Shall we start? 👇 `,
    Markup.inlineKeyboard(
      [
  
        Markup.button.url(
          "Covid-19 🇮🇳 IN",
          "https://www.covid19india.org/"
        ),
        Markup.button.url("WHO 🌎", "https://covid19.who.int/"),
       

      ],
      { columns: 2 }
    )
  );

This is throwing a 400 Bad request URL exception.

Any help, how to open these URL’s in telegram inline browser ?

2

Answers


  1.  Markup.urlButton("NAME", "https://url.com/"),
    
    Login or Signup to reply.
  2. ctx.replyWithHTML(texts, Markup.inlineKeyboard([
                      [Markup.button.url(linktext,url)]
                 ]))
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search