2017-06-30 97 views

回答

0

可以读取数据基本单元并插入文本[\ “” + SqlDataReaderTest [ “YouDataCell”]。的ToString()+ “\”]

string keyboard= "&reply_markup={\"keyboard\":["; 
string temp=""; 
while (SqlDataReaderTest.Read()) 
       { 
     temp+=(temp.length==0?"[\"":"],[\"")+SqlDataReaderTest["YouDataCell"].ToString()+"\"]"; 
       } 
keyboard+=temp+"}"; 

记得你(消息+键盘)长度必须不超过4000个字符

相关问题