Remove debug logging
This commit is contained in:
parent
78a520efad
commit
49203653d5
1 changed files with 0 additions and 2 deletions
2
main.go
2
main.go
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue