Skip to content

Forward with more tham 1 file attached #276

@paulobreim

Description

@paulobreim

I have a telegram bot in dart and I use the function teledart.onMessage().listen((message) async { checkmessage(message);
});

And when someone sends a pdf file, for example, through up to 1 forward, I identify which file it is through message.document and everything works fine.

If the person sends more than 1 file at once, they are all saved.

However, when the message arrives through a forward, the following happens: If there is only 1 file in that forward, it works normally, but if there is more than 1 file in that forward, it doesn't even go through teledart.onMessage().listen((message) async {checkmessage(message);});

How do I solve this?

this is my code:
teledart.start();

teledart.onMessage(entityType: 'bot_command').listen((message) async {
checkCommand(message);
}
});

teledart.onMessage().listen((message) async {
checkMenssage(message); // if is a forrward with more than 1 attached, don´t past here.
});

tks
paulo

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions