code: def inline(text, data=None):
          
          if not data:
              data = text.encode('utf-8')
          elif not isinstance(data, (bytes, bytearray, memoryview)):
              data = str(data).encode('utf-8')
  
          if len(data) > 64:
              raise ValueError('Too many bytes for the data')
  
          return types.KeyboardButtonCallback(text, data)
docs: Creates a new inline button.
  
          If `data` is omitted, the given `text` will be used as `data`.
          In any case `data` should be either ``bytes`` or ``str``.
  
          Note that the given `data` must be less or equal to 64 bytes.
          If more than 64 bytes are passed as data, ``ValueError`` is raised.