()
| 353 | } |
| 354 | |
| 355 | async getTelegraphToken(): Promise<string> { |
| 356 | this.ensureReady(); |
| 357 | await this.dbMain.read(); |
| 358 | this.dbMain.data ||= { chats: {}, telegraphToken: "" }; |
| 359 | this.dbMain.data.telegraphToken ||= ""; |
| 360 | return this.dbMain.data.telegraphToken || ""; |
| 361 | } |
| 362 | |
| 363 | async setTelegraphToken(token: string): Promise<void> { |
| 364 | this.ensureReady(); |
no test coverage detected