我用电报创建了一个组控制器bot。 现在我遇到了一个问题:我能检测到包含内联按钮的消息吗?
标准电报API没有检测这些消息的方法。
解决方案是什么?
答案 0 :(得分:3)
由内联键盘触发的消息将具有键CREATE TYPE Doctor_type AS OBJECT(
regNo char(100),
name varchar2(50),
specialization varchar2(50)
)
/
CREATE TYPE HospitalVisits_type AS OBJECT(
visitNo char(10),
hosCharge char(10),
makedate date,
Doctor REF Doctor_type
)
not final
/
CREATE TYPE Make_type AS TABLE OF HospitalVisits_type;
/
CREATE TYPE Patient_type AS OBJECT(
id char(10),
name varchar2(50),
dateofBirth date,
phone varchar2(10),
dependents Make_type
)
/
CREATE TYPE Admission_type UNDER HospitalVisits_type (
dischDate date
)
/
CREATE TYPE OPDVisit_type UNDER HospitalVisits_type(
docCharge char(10)
)
/
CREATE TABLE Doctor OF Doctor_type(regNo primary key )
/
CREATE TABLE Patient OF Patient_type(id primary key)NESTED TABLE dependents STORE AS HospitalVisits_Table
/
##ALTER TABLE HospitalVisits_Table ADD CONSTRAINT Doc_FK FOREIGN KEY(Doctor) REFERENCES Doctor(regNo)
/
。
这是您将收到的结构。
callback_query