Update telegram-approval-join submodule and apply patches

This commit is contained in:
Astra 2026-03-09 21:39:28 +00:00
parent f753dd5c6b
commit c78fe1a912
3 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ RUN apk add --no-cache ca-certificates
WORKDIR /opt WORKDIR /opt
# Copy binary into a standard location # Copy binary into a standard location
COPY --from=builder /bin/telegram-join-approval-nuzzles /usr/local/bin/telegram-approval-join COPY --from=builder /bin/telegram-approval-join /usr/local/bin/telegram-approval-join
# Create a non-root user and group with specific UID:GID and set ownership # Create a non-root user and group with specific UID:GID and set ownership
RUN addgroup -g 65532 app && \ RUN addgroup -g 65532 app && \

View file

@ -34,6 +34,7 @@ func (bot *Bot) HandleJoinRequest(request *api.ChatJoinRequest) {
fmt.Sprintf(AdminJoinRequestMsg, userString, request.From.ID, "(awaiting user response)")) fmt.Sprintf(AdminJoinRequestMsg, userString, request.From.ID, "(awaiting user response)"))
m.ReplyMarkup = utils.NewApprovalKeyboard(request.From.ID) m.ReplyMarkup = utils.NewApprovalKeyboard(request.From.ID)
m.ParseMode = api.ModeHTML m.ParseMode = api.ModeHTML
m.LinkPreviewOptions = api.LinkPreviewOptions{IsDisabled: true}
if topic := *bot.Config.AdminChatTopicId; topic != 0 { if topic := *bot.Config.AdminChatTopicId; topic != 0 {
m.MessageThreadID = topic m.MessageThreadID = topic
} }

@ -1 +1 @@
Subproject commit 4e71c09c5a6a3f93bd4f0702b0e6f417b6e9e995 Subproject commit 1c48c2a40ccc8d83ef2bff80fd4d5f9b848afab2