This Proof of Concept (PoC) project demonstrates the idea of using AI to process social media messages, with a focus on Telegram, using .NET technologies. The project includes functionality to summarize chats and send messages to users in a smart way.
- Message Sending: The AI-powered Telegram client can send messages to users based on user input.
- Chat Summarization: It can summarize the last 10 messages of a conversation.
Follow the steps below to set up and run the project locally.
-
Clone the repository:
git clone https://github.com/Neo-vortex/ChatWIthTelegramPoC
-
cd in the dir :
cd ChatWIthTelegramPoC
-
run the project
dotnet run
Set up your Telegram API credentials, phone number and ollama url:
export APP_ID=your_app_id
export API_HASH=your_api_hash
export PHONE_NUMBER=your_phone_number
export OLLAMA_URL=your_ollama_api_url
- The project uses the WTelegram library for interacting with the Telegram API.
- AI responses are generated using the Ollama API, providing intelligent and context-aware replies.
- Ensure that you have the necessary permissions and authentication for using the Telegram API.
- The Ollama API should be accessible and configured with the appropriate models.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code.
- Thanks to the developers of WTelegram and Ollama for their excellent libraries and tools.