code: async def click(self):
          
          if isinstance(self.button, types.KeyboardButton):
              return await self._client.send_message(
                  self._chat, self.button.text, reply_to=self._msg_id)
          elif isinstance(self.button, types.KeyboardButtonCallback):
              req = functions.messages.GetBotCallbackAnswerRequest(
                  peer=self._chat, msg_id=self._msg_id, data=self.button.data
              )
              try:
                  return await self._client(req)
              except BotTimeout:
                  return None
          elif isinstance(self.button, types.KeyboardButtonSwitchInline):
              return await self._client(functions.messages.StartBotRequest(
                  bot=self._bot, peer=self._chat, start_param=self.button.query
              ))
          elif isinstance(self.button, types.KeyboardButtonUrl):
              return webbrowser.open(self.button.url)
          elif isinstance(self.button, types.KeyboardButtonGame):
              req = functions.messages.GetBotCallbackAnswerRequest(
                  peer=self._chat, msg_id=self._msg_id, game=True
              )
              try:
                  return await self._client(req)
              except BotTimeout:
                  return None
docs: Emulates the behaviour of clicking this button.
  
          If it's a normal :tl:`KeyboardButton` with text, a message will be
          sent, and the sent `telethon.tl.custom.message.Message` returned.
  
          If it's an inline :tl:`KeyboardButtonCallback` with text and data,
          it will be "clicked" and the :tl:`BotCallbackAnswer` returned.
  
          If it's an inline :tl:`KeyboardButtonSwitchInline` button, the
          :tl:`StartBotRequest` will be invoked and the resulting updates
          returned.
  
          If it's a :tl:`KeyboardButtonUrl`, the URL of the button will
          be passed to ``webbrowser.open`` and return ``True`` on success.