Qatar Airways has told the world's biggest airline it plans to buy up to $808m (£638m) of its shares.