![]() ![]() We’ll use a cloud provider to deploy our handler as function-as-a-service, meaning you’re billed only when your handler actually uses resources. If you recognize yourself in 1., Telegram offers detailed documentation on how to set up your webhook. You also are comfortable with setting up certificates. You have your own server, and you know how to set up your handler to listen to a given port.Don’t worry you’re already 95% done by now. Let’s now deploy the handler and make your bot available on Telegram. Nice! All this code lives beautifully on our machine. Want to write more tests to ensure everything works as expected? Telegram does an fantastic job by providing developers with sample update JSON to use for our test cases, make sure to check them out on their documentation to build a robust handler. ![]() Run go test in the test file folder to run the test ![]()
0 Comments
Leave a Reply. |