The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
This GoLang-based Telegram bot is designed for businesses to gather product ratings and feedback from customers. It utilizes semantic analysis to interpret user feedback, providing valuable insights into customer satisfaction and product performance. Additionally, the bot integrates an HTTP server to handle order creation, and it sends notifications to users via Telegram.
Features
Product Rating: Users can rate products and provide feedback directly through Telegram.
Semantic Analysis: The bot analyzes user feedback for sentiment, helping businesses understand customer opinions.
Order Creation via HTTP: External systems can create product orders through HTTP requests, and the bot will notify the relevant user on Telegram.
User Notifications: Sends automated messages to users on Telegram regarding their orders and requests for product feedback.
Dependencies
Chi Router: A lightweight, idiomatic, and composable router for building Go HTTP services.
Telegram Bot API (tgbotapi): A Go package that wraps the Telegram Bot API. GitHub Repository
PostgreSQL: A powerful, open-source object-relational database system.
Set up your PostgreSQL database and run the provided SQL scripts to create the necessary tables.
Run the Bot
go run main.go
Usage
Interacting with the Bot: Users can start a conversation with the bot on Telegram to rate products and provide feedback.
Creating Orders via HTTP: Send a POST request to /orders/{user_id} with the order details. The bot will process the order and send a notification to the user on Telegram.
Database Schema
Configuration
Bot Token: Ensure your bot token is correctly set in the .env file.
Database Connection: Configure your PostgreSQL connection string in the .env file.
Contributing
Contributions to the project are welcome. Please follow the standard fork-and-pull request workflow.