Skip to content

itpcc/Thai-Law-Telegram-Bot

Repository files navigation

Telegram bot for search Thai Act article

What?

It's a Telegram bot for search Thai Act article using a text from Krisdika. For quick and crude to search the law.

Screenshot example

How?

  1. Install Bun
  2. Create a Telegram bot using Botfather
  3. Rename (sample.env)[./.sample.env) to .env and change the value in the file
  4. bun run index.ts
  5. In the bot chat, type:
กม ชื่อกฎหมาย(ป.อ.|ป.พ.พ.|พ.ร.บ.xxxx) xxเลขมาตรา(ถ้ามีเลขบาลีให้เขียนติดกันกับเลขมาตราหลัก)xx
กม ชื่อกฎหมาย(ป.อ.|ป.พ.พ.|พ.ร.บ.xxxx) คำ,สำคัญ

Where?

The text is direcctly fetched from Krisdika. The database and the source URL is complied by PyThaiNLP.

Help?

You may open an issue and PR if you want.

Disclaimer

This project is intended for personal-use only. Use at your own risk

About

It's a Telegram bot for search Thai Act article using a text from Krisdika. For quick and crude to search the law.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors