abstract class apptools.core.telebot
Utilities for working in Telegram
parameter GN = "^%apptools.ref";
Global Name Store Referens
classmethod AddIdItem(lb="", iditem="")
as %String
Procedure for ##class(apptools.core.telebot).AddIdItem("temp",123)
classmethod AddUrl(Val, Col, Head, Temp, Del=0)
as %String
Procedure for ##class(apptools.core.telebot).AddUrl
classmethod Alerts(arg="", js="")
as %String
Alerts Systems
w ##class(apptools.core.telebot).Alerts(,.json)
classmethod CheckSSLCertificate(name)
as %String
The method checks for the existence of the configured SSL configuration
and creates an empty configuration with that name if this yet
to connect to a https server, that's enough
classmethod ExecuteRequest(request As %Net.HttpRequest, method As %String, botId="")
as %DynamicObject
classmethod GetFooter(arg="", js)
as %String
Get Info for Footer
w ##class(apptools.core.telebot).GetFooter("")
classmethod GetMe(botId)
as %DynamicObject
Get info from telebot
classmethod GetPortal(arg="", js)
as %String
Get Info for Managment Portal
w ##class(apptools.core.telebot).GetPortal("",.js)
classmethod GetPortalApps(count, gn, mode="Security.Applications", %Param="", gnTab)
as %String
do ##class(apptools.core.telebot).GetPortalApps(1,"^tmpNS","Namespaces"," ")
classmethod GetPortalFile(path, gn, gnTab)
as %String
w ##class(apptools.core.telebot).GetPortalFile("C:\InterSystems\IRISHealth\mgr\messages.log","^||tmpL","^||tmpL2")
classmethod GetPortalLock(count, gn, gnTab)
as %String
w ##class(apptools.core.telebot).GetPortalLock(1,"^||tmpL")
classmethod GetPortalNS(count, gn, SectionHeader="Namespaces", %Param="", gnTab)
as %String
do ##class(apptools.core.telebot).GetPortalNS(1,"^tmpNS","Namespaces"," ")
classmethod GetPortalProc(count, gn, SectionHeader="Namespaces", %Param=" ", gnTab)
as %String
do ##class(apptools.core.telebot).GetPortalProc(1,"^tmpNSoutpot","Namespaces"," ")
classmethod GetPortalProd(count, gn, %Param=" ", gnTab)
as %String
do ##class(apptools.core.telebot).GetPortalProd(1,"^tmpNSoutpot"," ")
classmethod GetPortalProds(count, gn, %Param=" ")
as %String
do ##class(apptools.core.telebot).GetPortalProds(1,"^tmpNSoutpot"," ")
classmethod GetRequestObj()
as %Net.HttpRequest
classmethod GetResp(arg="")
as %String
--------------Django modules
Get base responce
classmethod GetUpdates(botId, offset As %Integer = "", limit As %Integer = 100, timeout As %Integer = 0)
as %DynamicObject
classmethod SS(arg="", js)
as %String
Status Systems
classmethod Send(chatId As %String, botId, text As %String, obj=0)
as %Integer
$wc($zhex("1F6A8")) ;U+0038 U+20E3 =8; U+0031 U+20E3 =1 ;* U+2744 snow X - $wc($zhex("274C")) ;https://apps.timwhitlock.info/emoji/tables/unicode
w ##class(apptools.core.telebot).Send(5111112,"13333333:AHEАWAASDDDpepSSAA","Not recognized !!! Пример кириллицы "_$wc($zhex("1F6A8")))
classmethod SendMessage(chatId As %Integer, text As %String, botId, replyMarkup As %DynamicObject = 0)
as %DynamicObject
classmethod TS(arg="", js)
as %String
TimeStamp
w ##class(apptools.core.telebot).TS(,.json)
classmethod Table2Json(obj, gn)
as %Status
set js={} do ##class(apptools.core.telebot).Table2Json(js,"^||test")