Skip to content

tg.api.sendMessage() sends same message times the amount of workers defined in Telegram constructor #193

@laurynas-karvelis

Description

@laurynas-karvelis

Hi,
thank you for an awesome API implementation.
I began using your module and found unwanted behaviour with tg.api.sendMessage method.
Basically, tg.api.sendMessage() sends same message (number of workers + 1) times. I.e. if you set number of workers in constructor to 1, it uses 1 worker, but sends the message twice, with my i7 CPU that has 8 cores, by not passing workers value into constructor at all, tg.api.sendMessage will send same message 9 times!

Sending message from routed controller sends only 1 message as intended.
It would be awesome if this could be fixed in the near future.

Thank you!

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