feat: integrate the AI assistant.

This commit is contained in:
Yiyang Kang 2023-03-20 18:12:41 +08:00
parent 522d253410
commit dcb251d2ad
Signed by: kkyy
GPG key ID: 80FD317ECAF06CC3
7 changed files with 366 additions and 7 deletions

View file

@ -140,7 +140,7 @@ func handleTranslateBtn(c tele.Context) error {
break
}
respoText := respBuilder.String() + "\n... (Writting)"
respoText := respBuilder.String() + assistantWritingSign
minWait = time.After(691 * time.Millisecond) // renew the timer
if msg, err = c.Bot().Edit(msg, respoText, tele.Silent); err != nil {
logger.Warnf("failed to edit the temporary message: %v", err)