Create a telegram ollama client
why not?
- tags
- ollama
- telegram
- bot
Contents
I was looking around a different projects that integrate with ollama and saw one about a telgram bot. I rarely use telegram but it looks like fun, so lets go through and plug it in.
Setup the telegram bot.
https://core.telegram.org/bots#how-do-i-create-a-bot to create a bot. The short answer is you need to message the botfather.
Say /newbot
.
Give it a name. Give it an account name. Save the API key. Save that stuff for later.
Find your user id
Go to the userinfobot and say /start
to get your info.
Download ruecat/ollama-telegram
|
|
Set it up
|
|
Edit the config
TOKEN | Telegram token |
ADMIN_IDS | Your user id |
USER_IDS | Your user id |
INITMODEL | llama3.1 |
OLLAMA_BASE_URL | localhost |
Then
|
|
Conclusion
I had no idea it was so easy to create telegram bots! That's super fun.
Previously
Next