mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[cm & ci] Send message on user unban. Trigger redeploy in CI.
This commit is contained in:
@@ -37,3 +37,10 @@ jobs:
|
|||||||
push: ${{ github.ref == 'refs/heads/dev' }}
|
push: ${{ github.ref == 'refs/heads/dev' }}
|
||||||
tags: ${{ secrets.REGISTRY_URL }}/west/telegram-bot:latest,
|
tags: ${{ secrets.REGISTRY_URL }}/west/telegram-bot:latest,
|
||||||
${{ secrets.REGISTRY_URL }}/west/telegram-bot:${{ steps.commit_sha.outputs.sha_short }}
|
${{ secrets.REGISTRY_URL }}/west/telegram-bot:${{ steps.commit_sha.outputs.sha_short }}
|
||||||
|
-
|
||||||
|
name: Redeploy container
|
||||||
|
uses: fjogeleit/http-request-action@v1
|
||||||
|
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||||
|
with:
|
||||||
|
url: ${{ secrets.CONTAINER_WEBHOOK }}
|
||||||
|
method: 'POST'
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using BotFramework.Attributes;
|
|||||||
using BotFramework.Enums;
|
using BotFramework.Enums;
|
||||||
using Kruzya.TelegramBot.Core;
|
using Kruzya.TelegramBot.Core;
|
||||||
using Kruzya.TelegramBot.Core.Data;
|
using Kruzya.TelegramBot.Core.Data;
|
||||||
|
using Kruzya.TelegramBot.Core.Extensions;
|
||||||
using Telegram.Bot;
|
using Telegram.Bot;
|
||||||
using Telegram.Bot.Types;
|
using Telegram.Bot.Types;
|
||||||
|
|
||||||
@@ -39,5 +40,7 @@ public class Ban : CommonHandler
|
|||||||
CanSendOtherMessages = true,
|
CanSendOtherMessages = true,
|
||||||
CanAddWebPagePreviews = true
|
CanAddWebPagePreviews = true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await Reply($"{From.ToHtml()} <code>разблокировал</code> {RepliedUser!.ToHtml()}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user