Something to get me started on setting up Telegram with the API?

I’m a beginner at coding and am trying to figure out how to setup GPT-3 with Telegram so I can try it out as a chatbot on there. I’ve successfully made a regular rule based Telegram bot, but I don’t understand how to implement the basic code from the playground alongside Telegram’s API, input/output code etc.

Anyone who can help me get started?