add initial complete webui, more ai commands for moderation, add api
This commit is contained in:
parent
19e794e34c
commit
173d4e7a52
112 changed files with 8176 additions and 780 deletions
9
telegram/utils/language-code.ts
Executable file
9
telegram/utils/language-code.ts
Executable file
|
@ -0,0 +1,9 @@
|
|||
import { Context } from "telegraf";
|
||||
|
||||
export const languageCode = (ctx: Context) => {
|
||||
if(ctx.from) {
|
||||
return ctx.from.language_code
|
||||
} else {
|
||||
return 'en'
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue