Question: I recently was looking at Azure logic apps and wanted implement the CICD process. I was successful in getting the template and use it for ARM deployment but what I am looking forward for is a way to store the arm template into GitHub (for my dev logic app) and use it to promote to higher environment , just like how Azure data factory does [Link](https://learn.microsoft.com/en-us/azure/data-factory/source-control)

Unfortunately I couldn’t find a way to intergrade Logicapp and GitHub , Can we do that ?

This [Link](https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/logic-apps/logic-apps-create-azure-resource-manager-templates.md) describes how to generate it but nothing on integration to GitHub in an automated fashion.

Any info is much appreciated.

Answer: 
$apiToken = ''; //your bot apiToken

$chat\_id ='-1001790282017'; // your channel id

$url = "https://t.me/+OlaTFdG1UftkOTgy";

$purl = parse\_url($url);

$output = substr($purl['path'], 2); // OlaTFdG1UftkOTgy

$revoke\_link = "https://api.telegram.org/bot{apiToken}/revokeChatInviteLink?chat\_id={$chat\_id}&invite\_link={output}";
<https://core.telegram.org/bots/api#revokechatinvitelink>

*Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object.*

You get 400 error. Ok, but what is the description of the error? Too less infomration to understand.

If it doesn't find the chat, have you putted the '-100' before chat id? Channels and supergroup have this value before chat id.
You can also use the bot api to finde the correct chat id.