Working on geometrizebot Telegam bot learned URLSession is not available on Linux. From URLSession Concurrency on Linux learned that FoundationNetworking module provides implementation of URLSession for Linux and implementation of URLSession differs a bit in Apple platforms and Linux.