Comments (15)
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.
[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.
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.
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.
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.
Please let me know if you implemented it. Closing but feel free to reissue if necessary! 😃
from brookframework.
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.
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.
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.
from brookframework.
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.
@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.
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.
So, I tested tardigrade (BF 4.0). This plugin works with legacy app via tardigrade very well too
from brookframework.
@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)
- Why plugins projects on github to brookframework is closing? HOT 4
- i18n HOT 4
- Version 4 ? HOT 14
- libbrook.pas in Source HOT 3
- tardigrade demos throwing errors in libbrook HOT 4
- Server requirements? HOT 4
- dopf & LastInsertID HOT 4
- httprouter.lpr throwing error HOT 2
- How am I supposed to free worker thread in brook daemon? HOT 9
- Use legacy application with tardigrade HOT 19
- CPU Activity is high for tardigrade projects BROOK4 HOT 4
- More documentation HOT 1
- Can't get POST request data HOT 13
- Brookframework with sagui (legacy) HOT 11
- HTTP Client HOT 1
- Where did the captcha plugin for 4.0 go? HOT 1
- Some suggestion about JTemplate? HOT 3
- [IDEA] New repository HOT 1
- EBrookHTTPServer: Failed to send data in request for HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brookframework.