FW and Telegram

Post Reply
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

FW and Telegram

Post by Natter »

Is there a working example of FW working with Telegram ?
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FW and Telegram

Post by Antonio Linares »

A great work developed by our friend Ritzan:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: FW and Telegram

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: FW and Telegram

Post by Natter »

Thanks, I'll try!
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FW and Telegram

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: FW and Telegram

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FW and Telegram

Post by Antonio Linares »

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
User avatar
CharlesKwon
Posts: 28
Joined: Sun Nov 02, 2014 7:03 am

Re: FW and Telegram

Post by CharlesKwon »

Hello

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

Regards,
Charles KWON
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: FW and Telegram

Post 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.
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: FW and Telegram

Post 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

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

:: 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 November 2023 - January 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
User avatar
CharlesKwon
Posts: 28
Joined: Sun Nov 02, 2014 7:03 am

Re: FW and Telegram

Post 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
Last edited by CharlesKwon on Fri Sep 30, 2022 2:25 am, edited 1 time in total.
User avatar
CharlesKwon
Posts: 28
Joined: Sun Nov 02, 2014 7:03 am

Re: FW and Telegram

Post 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
User avatar
richard-service
Posts: 807
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 1 time
Contact:

Re: FW and Telegram

Post 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.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: FW and Telegram

Post 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 ?
Post Reply