@ -264,8 +264,7 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
}
func (b *Btelegram) handleGroupUpdate(update tgbotapi.Update) {
msg := update.Message
if msg := update.Message; msg != nil {
switch {
case msg.NewChatMembers != nil:
b.handleUserJoin(update)
@ -273,6 +272,7 @@ func (b *Btelegram) handleGroupUpdate(update tgbotapi.Update) {
b.handleUserLeave(update)
func (b *Btelegram) handleUserJoin(update tgbotapi.Update) {