title: How to use both callback_data and url in InlineKeyboardButton python telegram
body: <p>I want to count how many users clicked on a button and I used callback_data for it :</p>
  <pre><code>for n in list2 :
       buttons.append([InlineKeyboardButton(n[0], callback_data=f&quot;click on { n[0] }&quot; , url = &quot;https://t.me/test&quot;)])
  context.bot.send_message(chat_id=update.effective_chat.id, reply_markup=InlineKeyboardMarkup(buttons), text=&quot;List of my channals&quot;)
  </code></pre>
  <p>the button does open the URL but it doesn't make a callback request and when I delete the url parameter callback works as expected ... is there a way to use both parameters at the same time ?</p>