Loving Hono.js in my MyGO!!!!! Telegram Bot 🚀 #4005
calpa
started this conversation in
Show and tell
Replies: 1 comment
-
|
Great, I learned a lot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Hono.js community! 👋
I wanted to share my experience using Hono.js in my latest project - a Telegram bot for searching MyGO!!!!! anime images! 🎸✨
https://github.com/calpa/mygobot
I've built a Telegram bot using Hono.js alongside Grammy that's deployed on Cloudflare Workers. The architecture leverages Hono's efficient request handling capabilities to create a fast and responsive edge-deployed application.
Architecture Highlights 🏗️
My application follows this architecture:
Here's a snippet of the architecture diagram from my project:
graph TD A[User] -->|Sends messages| B[Telegram] B -->|Webhook| C[Cloudflare Workers] subgraph CloudflareEnv[Cloudflare Workers Environment] C -->|Processes requests| D[Hono App] D -->|Routes| E[Webhook Endpoint] D -->|Health check| F[Root Endpoint] E -->|Handles Telegram events| G[Grammy Bot] subgraph BotFunc[Bot Functionality] G -->|Command handling| H[Start & Help Commands] G -->|Message handling| I[Search Functionality] G -->|Callback handling| J[Result Selection & Pagination] end I -->|Queries| K[(data.json)] J -->|Retrieves| K subgraph Storage[In-memory Storage] L[userResults Map] M[userPagination Map] end I -->|Stores results| L J -->|Updates pagination| M J -->|Retrieves results| L end G -->|Sends responses| B J -->|Fetches images| N[Cloudflare R2 Storage] classDef external fill:#f9f,stroke:#333,stroke-width:2px; classDef storage fill:#bbf,stroke:#333,stroke-width:2px; classDef component fill:#bfb,stroke:#333,stroke-width:2px; class A,B,N external; class K,L,M storage; class D,E,F,G,H,I,J component; style CloudflareEnv fill:#f5f5f5,stroke:#333,stroke-width:1px style BotFunc fill:#e6f7ff,stroke:#333,stroke-width:1px style Storage fill:#fff7e6,stroke:#333,stroke-width:1pxHono.js has been incredible for this project - its lightweight nature and edge-first approach made it perfect for a Cloudflare Workers deployment. The middleware system and routing capabilities are exactly what I needed!
Thank you for creating such an amazing framework! ❤️
#HonoJS #EdgeComputing #TelegramBot
Beta Was this translation helpful? Give feedback.
All reactions