Page 1 of 1

FW and Telegram

PostPosted: Tue Sep 27, 2022 10:22 am
by Natter
Is there a working example of FW working with Telegram ?

Re: FW and Telegram

PostPosted: Tue Sep 27, 2022 10:46 am
by Antonio Linares
A great work developed by our friend Ritzan:

https://github.com/riztan/hbtelegram

Re: FW and Telegram

PostPosted: Tue Sep 27, 2022 10:58 am
by Silvio.Falconi
Antonio Linares wrote:A great work developed by our friend Ritzan:

https://github.com/riztan/hbtelegram


I made a software with this class to show on telegram the absences of the teachers and the acceptance of the dispositions
the software must always be loaded in the tray from the windows because in my case it connects to a dbf archive, in the telegram Bot the user can send some commands for example /list and see all the dispositions of the day
each connected user has a reference number and if a teacher accepts a provision the software records that acceptance in the archive, the software connects to a telegram every n seconds via the internet

Re: FW and Telegram

PostPosted: Tue Sep 27, 2022 11:03 am
by Natter
Thanks, I'll try!

Re: FW and Telegram

PostPosted: Wed Sep 28, 2022 7:56 am
by Antonio Linares

Re: FW and Telegram

PostPosted: Wed Sep 28, 2022 7:27 pm
by Silvio.Falconi
Antonio Linares wrote:Kindly provided from Mr. Charles Kwon:

https://github.com/FiveTechSoft/FWH_tools/blob/master/fwtelegram.rar



Antonio,
making test for telegram ( i not used any classes)

I had many problems : ( some with ohttp := CreateObject( "winhttp.winhttprequest.5.1" ) ) not corrected

viewtopic.php?f=3&t=39875&start=30&hilit=telegram
viewtopic.php?f=3&t=39870&p=237884&hilit=+telegram&sid=b04d10e24e8da95fb75840ebe96342f5#p237884
viewtopic.php?f=3&t=39022&start=0&hilit=telegram
viewtopic.php?f=3&t=36149&start=15&hilit=telegram
viewtopic.php?f=3&t=36109&start=0&hilit=telegram

then I don't Know If I resolved , I not use that software from many years

we can try making a our BOT on telegram with Father Bot

Re: FW and Telegram

PostPosted: Wed Sep 28, 2022 9:23 pm
by Antonio Linares
Dear Silvio,

> we can try making a our BOT on telegram with Father Bot

Ritzan has implemented it many years ago :-)

Re: FW and Telegram

PostPosted: Thu Sep 29, 2022 12:08 pm
by CharlesKwon
Hello

::oHttp := win_oleCreateObject( "WinHttp.WinHttpRequest.5.1" ) is no problem with me.
It is not createObject()

Regards,
Charles KWON

Re: FW and Telegram

PostPosted: Thu Sep 29, 2022 12:17 pm
by Natter
I made a chatbot through Father. The class from Mr. Charles Kwon works well. Is it possible to filter the mailing of messages somehow? For example, the chatbot has access to 10 subscribers, and I need to make a message for only 5 of them.

Re: FW and Telegram

PostPosted: Thu Sep 29, 2022 6:55 pm
by Silvio.Falconi
Antonio Linares wrote:Dear Silvio,

> we can try making a our BOT on telegram with Father Bot

Ritzan has implemented it many years ago :-)



Antonio,
when I created the procedure (in Win Xp) the Ritzan class did not exist,
nor that of Charles KWON

Initially I have been working using the telegram bees directly

Later on an old project by the Greek Yunus (September 2018) who did not use any class and had created a shop on telegram

I honestly believe that my search for telegram bees goes even further back in time and there really were no classes for telegram.

Two years ago and exactly in 2020/2021 I tried the Ritzan class but I was having problems and asked the author

my latest version dates back to when I started with James's tdatabase and tdata class

and when in Windows Seven and Win 10 I had problems for the transmission protocols unfortunately no longer supported


Now I have seen that the Ritzan class has been modified and uses the
Code: Select all  Expand view
pCurl = curl_easy_init ()
system before it wasn't like that


Charles KWON,
I don't know your class but I took a look and you use a protocol which seems to be no longer supported

Code: Select all  Expand view
:: oHttp: = win_oleCreateObject ("WinHttp.WinHttpRequest.5.1")


Are you sure you have no problems in the Win Seven and Win 10 operating systems?

There is a request from me on the forum with problems just using this same protocol

In the next few days I can try your class as well and will post here if I run into any problems

Re: FW and Telegram

PostPosted: Fri Sep 30, 2022 2:14 am
by CharlesKwon
Natter

Hello.

1.
My TDrTelegram class was created to send a simple message from Fivewin to Telegram.

2.
In addition, functions for processing Korean, Chinese, and special characters were added.

3.
The function you want is possible, but additional development is required.

With Best Regards,
Charles KWON

Re: FW and Telegram

PostPosted: Fri Sep 30, 2022 2:23 am
by CharlesKwon
Hello Mr. Silvio.Falconi

I also used hb_tip at first, but ported back to the standard COM Library provided by Windows.
I use Windows 10 and Windows 11 and Windows Server 2019 and there is working fine with my software.

I am thinking of implementing it with only using fivewin sockets functions in my free time. but I am very busy. :-/

Regards,
Charles KWON

Re: FW and Telegram

PostPosted: Fri Sep 30, 2022 4:41 am
by richard-service
CharlesKwon wrote: Natter

Hello.

1.
My TDrTelegram class was created to send a simple message from Fivewin to Telegram.

2.
In addition, functions for processing Korean, Chinese, and special characters were added.

3.
The function you want is possible, but additional development is required.

With Best Regards,
Charles KWON


My Dear friend Charles,
Sounds good.

Re: FW and Telegram

PostPosted: Fri Apr 12, 2024 9:47 am
by Natter
Mr, CharlesKwon, I have a telegram bot and I want to send messages to users from it (the IDs of these users are known).
How can I do this using your class ?