Hi ALL
Telegram Messenger is like whatsapp but with a comprehensive API. Has anybody integrate it to his/her application?
Thanks
Joe
Telegram Messenger
Re: Telegram Messenger
Hello,
look at Pushbullet, works great and easy to implement, have most of the API functions in Xbase
regards
Rudolf
look at Pushbullet, works great and easy to implement, have most of the API functions in Xbase
regards
Rudolf
Re: Telegram Messenger
Thank you Rudolf
Can you please send me a sample code of how you implemented it in your application.
Thanks.
Joe
Can you please send me a sample code of how you implemented it in your application.
Thanks.
Joe
Re: Telegram Messenger
Hello Joe,
you find the docs at
https://docs.pushbullet.com/
Attached a sample, I would use Chilkat instead of OT4XB because it has much more possibilities, especially for json parsing. Have also for this code, but must bevore extract from other things. But you can see that is not so complicated.
regards
Rudolf
you find the docs at
https://docs.pushbullet.com/
Attached a sample, I would use Chilkat instead of OT4XB because it has much more possibilities, especially for json parsing. Have also for this code, but must bevore extract from other things. But you can see that is not so complicated.
regards
Rudolf
Code: Select all
function pushb_getdevices()
******************************************************************
local cUrl := "https://api.pushbullet.com/v2/devices"
local aVars := {}
local cToken := dcc_iniread("FORMCOMMANDER.INI","PUSHBULLET","TESTTOKEN"),xRet
local oHttp := TServerXMLHTTPRequest():New()
aadd(aVars,"active")
aadd(aVars,"app_version")
aadd(aVars,"created")
aadd(aVars,"iden")
aadd(aVars,"manufacturer")
aadd(aVars,"model")
aadd(aVars,"modified")
aadd(aVars,"nickname")
aadd(aVars,"push_token")
xRet := oHttp:Open( "GET" , cUrl , .F.)
xRet := oHttp:lIgnoreCertAll := .T.
xRet := oHttp:SetRequestHeader( "Access-Token", cToken )
xRet := oHttp:Send()
cc := oHttp:responseText
dcqdebug oHttp:status
oHttp:Release()
dcqdebug cc
prot("getdevices:" + CRLF + cc + CRLF,PUSHBULLETLOG)
prot("pretty:" + CRLF + json_pretty_out(cc) + CRLF,PUSHBULLETLOG)
aTmp := jsonreadblock(json_pretty_out(cc),,aVars)
//dc_arrayview(aTmp)
return .t.
Re: Telegram Messenger
Hello Joe,
the json functions I can send you if needed.
regards
Rudolf
the json functions I can send you if needed.
regards
Rudolf
Re: Telegram Messenger
pushbullet looks interesting....
I'm wondering how you use it in your application...
I'm wondering how you use it in your application...
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: Telegram Messenger
Hello Brian,
I use it in my digital pen & paper and CRM software for some workflows to inform user about events and documents. The nice thing is that it also has addons for browser. Actually I have problems to send files, but should be no problem also.
regards
Rudolf
I use it in my digital pen & paper and CRM software for some workflows to inform user about events and documents. The nice thing is that it also has addons for browser. Actually I have problems to send files, but should be no problem also.
regards
Rudolf
Re: Telegram Messenger
Great.
Pls send the json functions.
Joe
Pls send the json functions.
Joe
Re: Telegram Messenger
Hello Joe,
sent you a pm
regards
Rudolf
sent you a pm
regards
Rudolf