[Gambas-user] Request for advice
adamnt42 at gmail.com
Mon Jul 12 22:46:48 CEST 2021
On Mon, 2021-07-12 at 14:22 -0500, John Dovey wrote:
> I love to hear I’m over complicating things because it means there’s
> a better way… which is why the advice requested.
> > I had a quick look at their "API". It is just a pure JSON service
This is how I would be doing it. It's a standard web service pattern
and the Telegram "API" is just a web service that uses JSON over http:
rather than html.
Attached pic : tb_BOT is the class that "stores" the current state of
your _bot_. The other classes excise the "general" code away from that
class so they can be pluggable, changeable, etc without disturbing the
p.s. That word "bot" almost makes me PUKE as much as "app". (Not your
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 34430 bytes
Desc: not available
More information about the User