Closed Miha-x64 closed 4 years ago
Hey, I'm not sure that I understand you correctly. This sounds to me like a basic programming issue, you are talking about.
TelgramPollingBot
is an existing interface that is implemented here. You can implement it however you want to.void
and the bot sends the message. This has the additional benefit that you are not mixing conecerns: telegram domain and your business logic.StreamEx<BotApiMethod<?>>
, maybe.
Thank you.
Hello. Your
ExampleBot
is a callback for updates and also a place where you can call some API methods. Thus, if you try to move any logic outside of the bot, you end up having a cycle: