MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / calculateOffset

Method calculateOffset

trace/trace.ts:123–126  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

121 // Telegram uses UTF-16 code units for offset calculation
122 return text.length;
123 }
124
125
126 build(): { text: string, entities: Api.TypeMessageEntity[] } {
127 return { text: this.text.trim(), entities: this.entities };
128 }
129 // Panel Settings Adapter

Callers 1

addCustomEmojiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected