estimateSmsBytes
estimateSmsBytes(
text):number
Defined in: packages/messaging/src/sms-bytes.ts:16
Estimates the bytes a text takes as an SMS or LMS, counted the way KMsg
counts them to choose between the two: one byte for each ASCII character
and two for any other, such as Hangul. KMsg sends text over
defaults.sms.autoLmsBytes (90 by default) as LMS.
Parameters
섹션 제목: “Parameters”text
섹션 제목: “text”string
Returns
섹션 제목: “Returns”number
Example
섹션 제목: “Example”estimateSmsBytes("Hello"); // 5estimateSmsBytes("안녕하세요"); // 10