Skip to content

bot receiving contact request for groups if no 1:1 chat exist yet #5514

@adbenitez

Description

@adbenitez

it seems there is a regression in core 1.137.4, if you create a group with a bot you have not contacted in 1:1 first, the group appears as a contact request for the bot, and sending messages fails, instead of the chat being auto-accepted for example:

May 01 11:53:53 bomba invitebot[1104567]: 2024-05-01T11:53:53Z ERROR [-1] cannot send to Chat#229: contact request chat should be accepted before sending messages {"acc": 2, "chat": 229}
May 01 11:53:53 bomba invitebot[1104567]: main.sendInviteQr                                                                                                                                                       
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/work/invitebot/invitebot/invitebot.go:137                                                                                                          
May 01 11:53:53 bomba invitebot[1104567]: main.onNewMsg                                                                                                                                                           
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/work/invitebot/invitebot/invitebot.go:76                                                                                                           
May 01 11:53:53 bomba invitebot[1104567]: github.com/deltachat/deltachat-rpc-client-go/deltachat.(*Bot).processMessages                                                                         
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/go/pkg/mod/github.com/deltachat/deltachat-rpc-client-go@v1.134.0/deltachat/bot.go:176                                    
May 01 11:53:53 bomba invitebot[1104567]: github.com/deltachat/deltachat-rpc-client-go/deltachat.(*Bot).Run                                                                               
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/go/pkg/mod/github.com/deltachat/deltachat-rpc-client-go@v1.134.0/deltachat/bot.go:136
May 01 11:53:53 bomba invitebot[1104567]: github.com/deltachat-bot/deltabot-cli-go/botcli.serveCallback
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/go/pkg/mod/github.com/deltachat-bot/deltabot-cli-go@v0.6.1-0.20240206182306-1262a8de3fc0/botcli/cmd.go:193
May 01 11:53:53 bomba invitebot[1104567]: github.com/deltachat-bot/deltabot-cli-go/botcli.(*BotCli).Start 
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/go/pkg/mod/github.com/deltachat-bot/deltabot-cli-go@v0.6.1-0.20240206182306-1262a8de3fc0/botcli/botcli.go:102
May 01 11:53:53 bomba invitebot[1104567]: main.main
May 01 11:53:53 bomba invitebot[1104567]:         /home/runner/work/invitebot/invitebot/invitebot.go:143
May 01 11:53:53 bomba invitebot[1104567]: runtime.main
May 01 11:53:53 bomba invitebot[1104567]:         /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:267

related: #4377

Metadata

Metadata

Assignees

Labels

botbugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions