FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FW and Telegram
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
FW and Telegram
Posted: Tue Sep 27, 2022 10:22 AM

Is there a working example of FW working with Telegram ?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FW and Telegram
Posted: Tue Sep 27, 2022 10:46 AM
A great work developed by our friend Ritzan:

https://github.com/riztan/hbtelegram
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: FW and Telegram
Posted: Tue Sep 27, 2022 10:58 AM
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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: FW and Telegram
Posted: Tue Sep 27, 2022 11:03 AM

Thanks, I'll try!

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FW and Telegram
Posted: Wed Sep 28, 2022 07:56 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: FW and Telegram
Posted: Wed Sep 28, 2022 07:27 PM
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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FW and Telegram
Posted: Wed Sep 28, 2022 09:23 PM

Dear Silvio,

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

Ritzan has implemented it many years ago :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 28
Joined: Sun Nov 02, 2014 07:03 AM
Re: FW and Telegram
Posted: Thu Sep 29, 2022 12:08 PM

Hello

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

Regards,
Charles KWON

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: FW and Telegram
Posted: Thu Sep 29, 2022 12:17 PM

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.

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: FW and Telegram
Posted: Thu Sep 29, 2022 06:55 PM
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 (fw): Select all Collapse
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 (fw): Select all Collapse
:: 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 28
Joined: Sun Nov 02, 2014 07:03 AM
Re: FW and Telegram
Posted: Fri Sep 30, 2022 02:14 AM
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
Posts: 28
Joined: Sun Nov 02, 2014 07:03 AM
Re: FW and Telegram
Posted: Fri Sep 30, 2022 02:23 AM
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
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: FW and Telegram
Posted: Fri Sep 30, 2022 04:41 AM
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.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: FW and Telegram
Posted: Fri Apr 12, 2024 09:47 AM

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 ?

Continue the discussion