it("extracts group ID from provider group format", () => {
expect(extractSimpleExplicitGroupId("chat:group:-1003776849159")).toBe("-1003776849159");
});
it("extracts group ID from provider topic format, stripping topic suffix", () => {
expect(extractSimpleExplicitGroupId("chat:group:-1003776849159:topic:1264")).toBe( "-1003776849159",
);
});
it("extracts group ID from channel format", () => {
expect(extractSimpleExplicitGroupId("chat:channel:-1001234567890")).toBe("-1001234567890");
});
it("extracts group ID from channel format with topic", () => {
expect(extractSimpleExplicitGroupId("chat:channel:-1001234567890:topic:42")).toBe( "-1001234567890",
);
});
it("extracts group ID from bare group: prefix", () => {
expect(extractSimpleExplicitGroupId("group:-1003776849159")).toBe("-1003776849159");
});
it("extracts group ID from bare group: prefix with topic", () => {
expect(extractSimpleExplicitGroupId("group:-1003776849159:topic:999")).toBe("-1003776849159");
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.