FW and Telegram

FW and Telegram

Postby Natter » Tue Sep 27, 2022 10:22 am

Is there a working example of FW working with Telegram ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: FW and Telegram

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FW and Telegram

Postby Silvio.Falconi » 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 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
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW and Telegram

Postby Natter » Tue Sep 27, 2022 11:03 am

Thanks, I'll try!
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: FW and Telegram

Postby Antonio Linares » Wed Sep 28, 2022 7:56 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FW and Telegram

Postby Silvio.Falconi » Wed Sep 28, 2022 7: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 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
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW and Telegram

Postby Antonio Linares » Wed Sep 28, 2022 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FW and Telegram

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

Re: FW and Telegram

Postby Natter » 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.
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: FW and Telegram

Postby Silvio.Falconi » Thu Sep 29, 2022 6: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: Select all  Expand view  RUN
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  RUN
:: 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
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW and Telegram

Postby CharlesKwon » Fri Sep 30, 2022 2: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
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

Postby CharlesKwon » Fri Sep 30, 2022 2: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
User avatar
CharlesKwon
 
Posts: 28
Joined: Sun Nov 02, 2014 7:03 am

Re: FW and Telegram

Postby richard-service » Fri Sep 30, 2022 4: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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: FW and Telegram

Postby Natter » Fri Apr 12, 2024 9: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 ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 25 guests