Created
April 3, 2020 07:14
-
-
Save terjokhin/80bff51c6021f1ee9b81922452ecc5e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private def buildTelegramClient[F[_]: Execute: ConcurrentEffect](isProd: Boolean, token: String): Resource[F, TelegramClient[F]] = | |
buildHttp4sClient.map { httpsClient => | |
TelegramClient.fromHttp4sClient[F](token)( | |
if (isProd) httpsClient | |
else ResponseLogger(true, true)(httpsClient) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment