(cond: any, msg: string)
| 126 | } |
| 127 | |
| 128 | const requireUser = (cond: any, msg: string) => { |
| 129 | if (!cond) throw new UserError(msg); |
| 130 | }; |
| 131 | |
| 132 | class MessageSender { |
| 133 | static async sendOrEdit(msg: Api.Message, text: string, parseMode: "html" | "markdown" = "html"): Promise<Api.Message | undefined> { |
no outgoing calls
no test coverage detected