[Gambas-user] Request for advice

bb 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
tb_BOT code.

bruce
p.s. That word "bot" almost makes me PUKE as much as "app".  (Not your
fault.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TGram_API.png
Type: image/png
Size: 34430 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210713/33cd2350/attachment-0001.png>


More information about the User mailing list