code: async def end_takeout(self, success):
          
          try:
              async with _TakeoutClient(True, self, None) as takeout:
                  takeout.success = success
          except ValueError:
              return False
          return True
docs: Finishes a takeout, with specified result sent back to Telegram.
  
          Returns:
              ``True`` if the operation was successful, ``False`` otherwise.