Skip to content

Only one bot receives the message when more than one are in the same chat #34

@kted

Description

@kted

When there are more than one bot in a chat, the first one to receive the message acts on it, ant the others do not receive anything, as if the message get deleted as soon one bot receives it.
This is my bot initialization code.

  bot.setToken(myToken);
  bot.skipUpdates();
  bot.setPollMode(fb::Poll::Long, 20000);
  bot.onUpdate(handleBot);

When there is only one bot listening in the chat, the message prints whatever I type, instantly.
When there are more, it's a hit and miss, as only one gets the update.

void handleBot(fb::Update& u) {
  Serial.println(u.message().text());
  if (u.isMessage()) handleMessage(u);
}

Is there a setting somewhere, to NOT erase a message after it is received?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions