Remove debug logging

This commit is contained in:
Astra 2026-02-05 12:50:53 +00:00
parent 78a520efad
commit 49203653d5

View file

@ -53,7 +53,6 @@ func main() {
for update := range updatesChannel { for update := range updatesChannel {
if update.ChatJoinRequest != nil { if update.ChatJoinRequest != nil {
log.Printf("%+v - %+v - %+v\n", update.ChatJoinRequest.Chat.ID, b.Config.TargetChatId, update.ChatJoinRequest.From)
if update.ChatJoinRequest.Chat.ID == b.Config.TargetChatId { if update.ChatJoinRequest.Chat.ID == b.Config.TargetChatId {
b.handleJoinRequest(update.ChatJoinRequest) b.handleJoinRequest(update.ChatJoinRequest)
} }
@ -149,7 +148,6 @@ func (bot *Bot) handleJoinRequest(request *api.ChatJoinRequest) {
if bot.Config.AdminChatTopicId != 0 { if bot.Config.AdminChatTopicId != 0 {
m.MessageThreadID = bot.Config.AdminChatTopicId m.MessageThreadID = bot.Config.AdminChatTopicId
} }
log.Printf("%+v\n", m)
r, err := bot.API.Send(m) r, err := bot.API.Send(m)
if err != nil { if err != nil {
log.Printf("Failed to send join request to admin chat: %v", err) log.Printf("Failed to send join request to admin chat: %v", err)