Giter Club home page Giter Club logo

Comments (15)

silvioprog avatar silvioprog commented on July 22, 2024

Great work! 👍

I'm not very familiar with Telegram's API, so I'm not sure if it is something related to client-side or server-side, or both. I need to test it when I have a free time. :-) Anyway, as server-side, it can be implemented in Brook4REST too; as client-side, it we need to wait the Brook4cURL be release.

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

[Telegram] bots - automatic helpers in the telegram messenger chat. Telegram bot API is useful for creating telegram bot.
In general, this is implemented on the server side. The endpoint of the API is the telegram server. As a client - any user of Telegram messenger, who will send commands and requests to the bot associated with our application, in particular, based on brookframework. A telegram server can communicate with a bot through a webhook or through long polling. In the above plugin, the webhook method is used (the address we defined on our site, for example, https://someexample.com/cgi-bin/secrettoken). It is also possible to work through long polling, but I have not yet realized it. In the case of long polling, you can make bots without webhook, that is, you do not need a site, you can run even on a desktop.

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

it we need to wait the Brook4cURL be release.

I just used TFPHTTPClient to access another server (In particular https://api.telegram.org/bot%bot-token%/ ) and everything worked... If I correctly understood the purpose of Brook4cURL

from brookframework.

silvioprog avatar silvioprog commented on July 22, 2024

Oops, I meant "... we need to wait the Brook4cURL be released ...". ^^'

Thanks for sharing the info regarding Telegram bots. It seems a great feature and it was added in my whishlist for future testings.

I just used TFPHTTPClient to access another server (In particular https://api.telegram.org/bot%bot-token%/ ) and everything worked... If I correctly understood the purpose of Brook4cURL

Brook4cURL will be a small HTTP/websocket library, so your Telegram plugin can be used anywhere: any compiler (FPC/Delphi/GCC etc.) and any target (Linux/ARM, Windows, MacOS etc.). :-)

As soon as I have a free time I'll check your Telegram plugin and try it with Brook4REST library too.

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

so your Telegram plugin can be used anywhere: any compiler (FPC/Delphi/GCC etc.)

Hmmm... Cool, I did not know that it was possible

from brookframework.

silvioprog avatar silvioprog commented on July 22, 2024

Please let me know if you implemented it. Closing but feel free to reissue if necessary! 😃

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

I have already implemented it for a long time, I use this plugin/unit in several of my telegram bots, implemented with the help of Your library as well. In both Fast-cgi and embedded server (the latter). To open topic I see no need

from brookframework.

silvioprog avatar silvioprog commented on July 22, 2024

Awesome news! Could you test it using this new broker? If so, it would be nice (if you agree) to publish your solution as a Brook plugin. What do you think? About the topic, feel free to ask via issues, but there is a Brook community that can be used to share this discussion with other members here (please send your e-mail -- Gmail -- I send the invite link for you 👍 ).

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

Could you test it using this new broker?

Ok. I try.

If so, it would be nice (if you agree) to publish your solution as a Brook plugin. What do you think?

That's fine with me. I do not know if there are any requirements and conditions for such plug-ins. My plugin is essentially just a class-descendant of TBrookAction, which uses the fp-telegram library to work with bots.

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

[email protected]

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

So, I tested my fast cgi application by updating the library from 3.9.9 to 4.0.0. :) And all ok (it's predicted...) To test tardigrade broker (V. 5.0 / v4.0??) I should devote more time to this... I need to use the new library .so? There are some how-to and FAQ of the applications with brookframework 4.0 to 5.0?

from brookframework.

silvioprog avatar silvioprog commented on July 22, 2024

@Al-Muhandis , I have an idea. What do you think about to add a new wiki page called Plugins/Extra containing projects like this? :-)

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

That's fine with me. In principle, you can even move the repository to the BrookFramework plugins folder. But I don't test it in BF 5.0

from brookframework.

Al-Muhandis avatar Al-Muhandis commented on July 22, 2024

So, I tested tardigrade (BF 4.0). This plugin works with legacy app via tardigrade very well too

from brookframework.

silvioprog avatar silvioprog commented on July 22, 2024

@Al-Muhandis thanks for testing and sharing it. A new page as added containing the project: https://github.com/silvioprog/brookframework/wiki/Third-party-plugins-solutions .

from brookframework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.