Python-Based Telegram Frequently Asked Questions (FAQ) Chatbot Using Text Retrieval

DOI: https://doi.org/10.33650/coreai.v7i1.15554
Authors

(1) * Mochammad Faid   (Universitas Nurul Jadid)  
        Indonesia
(2)  Sudriyanto Sudriyanto   ()
(3)  Moh Sukron   ()
(4)  Syaiful Syaiful   ()
(*) Corresponding Author

Abstract


This study presents the implementation of a Telegram FAQ chatbot developed in Python to address the difficulty of providing rapid and consistent responses to recurring public-service questions. The system stores question-and-answer pairs in memory, extracts FAQ entries from free-form text, and retrieves the closest answer using text similarity through Python's difflib library. The prototype also provides inline menus, an interactive quiz, FAQ reset and update commands, and an optional large language model refinement stage constrained by the retrieved context. The research followed an implementation-oriented prototyping approach comprising requirements identification, code analysis, system design, implementation review, and scenario-based functional inspection. Static analysis identified 14 principal functions, 273 built-in FAQ pairs, and 100 quiz questions. The implementation analysis indicates that lightweight retrieval can support a practical and resource-efficient FAQ automation prototype while maintaining answers within the available knowledge base. Nevertheless, production deployment requires stronger secret management, persistent storage, access control, logging, and empirical evaluation using real user questions. The study contributes a replicable architecture for controlled FAQ automation on Telegram and establishes priorities for subsequent reliability and usability testing.


Keywords

chatbot FAQ; Telegram Bot; Python; retrieval teks; pencocokan fuzzy



Full Text: VIEW PDF



References


Adamopoulou, E., & Moussiades, L. (2020). Chatbots: History, technology, and applications. Machine Learning with Applications, 2, Article 100006. https://doi.org/10.1016/j.mlwa.2020.100006

Agustini, D., Farida, M., Rosadi, M. E., Firdaus, M. I., & Muttaqin, R. (2025). Platform kuis interaktif pembelajaran anak sekolah dengan integrasi bot Telegram berbasis generatif AI. Jurnal Nasional Komputasi dan Teknologi Informasi, 8(1), 532–541.

Alfaiz, F. Z., & Maryam. (2021). Implementation Telegram chat bot on student orientation period registration system for efficiency of data management. Jurnal Teknik Informatika, 2(2), 85–93. https://doi.org/10.20884/1.jutif.2021.2.2.56

Astari, M. R., Mardlian, M. S. A. K., Bahri, S., & Siregar, M. U. (2023). Rancangan aplikasi chatbot Telegram “Tanya Zaid” sebagai media pembelajaran nahwu. Prosiding Konferensi Integrasi Interkoneksi Islam dan Sains, 5, 313–323.

Ferelestian, V. J., Susanto, B., & Senapartha, I. K. D. (2023). Pengembangan Telegram chatbot informasi mahasiswa menggunakan Wit.ai. JUTEI, 7(2), 89–97. https://doi.org/10.21460/jutei.72.257

Firdaus, F., & Najiyah, I. (2024). Implementasi bot Telegram untuk otomatisasi pelaporan harian: Studi kasus PT Dirgantara Indonesia. E-Proceeding Teknik Informatika, 5(1), 67–79.

Furqan, M., Sriani, & Shidqi, M. N. (2023). Chatbot Telegram menggunakan natural language processing. Walisongo Journal of Information Technology, 5(1), 15–26. https://doi.org/10.21580/wjit.2023.5.1.14793

Hidayat, R., Susanto, F., Rahayu, E. M., Hertiki, Arbani, A. N., & Soelistijowati, J. O. (2021). Pemanfaatan Quiz Bot Telegram dalam pembelajaran menyimak bahasa Inggris. Jurnal Penamas Adi Buana, 4(2), 76–86.

Maharani, A. A., Khotimah, K., & Dewi, U. (2026). Pemanfaatan multimedia interaktif bot Telegram untuk meningkatkan hasil belajar fisika pada materi gerak harmonik sederhana. SCIENCE: Jurnal Inovasi Pendidikan Matematika dan IPA, 6(3), 1916–1928. https://doi.org/10.51878/science.v6i3.13384

Manning, C. D., Raghavan, P., & Schütze, H. (2008). Introduction to information retrieval. Cambridge University Press.

Mulyana, D. I., Lestari, D., Ramdhani, F., Ruliansyah, M. J., & Beay, R. (2023). Implementasi chatbot Telegram dalam meningkatkan partisipasi kegiatan warga. Jurnal Pengabdian kepada Masyarakat Nusantara, 4(2), 866–874.

Python Software Foundation. (n.d.). difflib—Helpers for computing deltas. Python documentation. https://docs.python.org/3/library/difflib.html

python-telegram-bot Authors. (n.d.). python-telegram-bot documentation. https://docs.python-telegram-bot.org/

Riyanto, N. D., & Asmunin. (n.d.). Perancangan dan pembuatan aplikasi chatbot Telegram untuk layanan informasi akademik Fakultas Vokasi Universitas Negeri Surabaya metode natural language processing menggunakan Wit.ai [Unpublished manuscript]. Fakultas Vokasi, Universitas Negeri Surabaya.

Setiyawan, M. A., & Kenoya, E. D. (2025). Pengembangan chatbot Telegram FAQ layanan ICT menggunakan algoritma Random Forest dan metode Word2Vec. INTI Nusa Mandiri, 20(1), 150–162. https://doi.org/10.33480/inti.v20i1.5766

Shawar, B. A., & Atwell, E. (2007). Chatbots: Are they really useful? LDV Forum, 22(1), 29–49.

Sudiatmika, I. P. G. A., & Dewi, K. H. S. (2020). E-learning berbasis Telegram Bot. Jurnal Riset Inovasi Bidang Informatika dan Pendidikan Informatika, 1(2), 49–60.

Sutiyo, F. R. A., Harahap, N. S., Agustian, S., & Candra, R. M. (2024). Implementasi question answering berbasis chatbot Telegram pada Tafsir Al-Jalalain menggunakan LangChain dan LLM. KLIK: Kajian Ilmiah Informatika dan Komputer, 4(5), 2464–2472. https://doi.org/10.30865/klik.v4i5.1784

Talenggoran, R. H. H., Krisnawati, L. D., & Virginia, G. (2025). Penerapan framework RASA untuk membangun sistem FAQ Bot sebagai layanan informasi BIRO 3. JUTEI, 9(2), 81–92. https://doi.org/10.21460/jutei.2025.92.431

Umam, A. K., Wijayanti, E., & Chamid, A. A. (2025). Pengembangan chatbot pada platform Telegram sebagai media informasi seputar handphone. Bit-Tech, 8(1), 33–40. https://doi.org/10.32877/bt.v8i1.2150


Dimensions, PlumX, and Google Scholar Metrics

10.33650/coreai.v7i1.15554


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Mochammad Faid .

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


Creative Commons License
 
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

COREAI: Jurnal Kecerdasan Buatan, Komputasi dan Teknologi Informasi

Published by Technic Faculty of Nurul Jadid University, Probolinggo, East Java, Indonesia.