(chatEntity: any, msg: Api.Message)
| 200 | (msg as any).chatId; |
| 201 | return String(raw); |
| 202 | } |
| 203 | |
| 204 | function getJobKey(chatKey: string, userId: number): string { |
| 205 | return `${chatKey}:${userId}`; |
| 206 | } |
| 207 | |
| 208 | function messageHasReply(msg: Api.Message): boolean { |
| 209 | return !!((msg as any).replyToMsgId || (msg as any).replyTo?.replyToMsgId); |
| 210 | } |
| 211 | |
| 212 | function getTargetSourceMessage(msg: Api.Message, trigger?: Api.Message): Api.Message { |
no outgoing calls
no test coverage detected