> For the complete documentation index, see [llms.txt](https://monsterdeveloper.gitbook.io/java-telegram-bot-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monsterdeveloper.gitbook.io/java-telegram-bot-tutorial/readme.md).

# Introduction

* Note: this guide is not maintained. It's open for all contributions through GitHub.

## Introduction

[![Book Status](https://img.shields.io/badge/book-passing-brightgreen.svg)](https://www.gitbook.io/book/MonsterDeveloper/writing-telegram-bots-on-java/details)

Hello everyone! While reading this book you will learn how to create Telegram Bots from start to finish. I assume you already know Java programming language.

All sources are available at [GitHub repository](https://github.com/MonsterDeveloper/java-telegram-bot-tutorial/).

### Table of contents

* [Lesson 1. Simple "echo" bot](/java-telegram-bot-tutorial/chapter1.md)
* [Lesson 2. PhotoBot](/java-telegram-bot-tutorial/lesson-2.-photobot.md)
* [Lesson 3. Logging](/java-telegram-bot-tutorial/lesson-3.-logging.md)
* [Lesson 4. Emoji](/java-telegram-bot-tutorial/lesson-4.-emoji.md)
* [Lesson 5. Deploy your bot](/java-telegram-bot-tutorial/lesson-5.-deploy-your-bot.md)
* [Lesson 6. Inline keyboards and editing message's text](/java-telegram-bot-tutorial/lesson-6.-inline-keyboards-and-editing-messages-text.md)
* [Lesson 7. Creating users database with MongoDB](/java-telegram-bot-tutorial/lesson-7.-creating-users-database-with-mongodb.md)
* [Lesson 8. Integrating with Redis](/java-telegram-bot-tutorial/lesson-8-integrating-with-redis.md)

### Credits

* [Rubenlagus](https://github.com/rubenlagus/) for his amazing library and support
* [Clevero](https://github.com/Clevero) for his amazing HOWTO guide
* [MasterGroosha](https://github.com/MasterGroosha) for his amazing Python book


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://monsterdeveloper.gitbook.io/java-telegram-bot-tutorial/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
