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:
@@ -36,4 +36,11 @@ jobs:
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.ref == 'refs/heads/dev' }}
|
||||
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 Kruzya.TelegramBot.Core;
|
||||
using Kruzya.TelegramBot.Core.Data;
|
||||
using Kruzya.TelegramBot.Core.Extensions;
|
||||
using Telegram.Bot;
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
@@ -39,5 +40,7 @@ public class Ban : CommonHandler
|
||||
CanSendOtherMessages = true,
|
||||
CanAddWebPagePreviews = true
|
||||
});
|
||||
|
||||
await Reply($"{From.ToHtml()} <code>разблокировал</code> {RepliedUser!.ToHtml()}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user