-
-
Notifications
You must be signed in to change notification settings - Fork 70
Description
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