Simple Telegram bot on Go (telego) that builds messages in this format:
<name> thinks that: <text>
The generated message is sent in italic formatting.
<name> is resolved with this priority:
usernamefirst_namesomeone
- Handles inline query updates.
- Returns one inline result (article) with the final message text.
- Handles
/me <text>command in regular chat messages:- sends a new bot message in the same style;
- deletes the original user command message.
- Uses dedicated handlers for inline and command flows, wired through a shared update dispatcher.
- Keeps an in-memory usage counter and logs to stdout after every chosen inline result.
export TELEGRAM_BOT_TOKEN="<your_bot_token>"
go run ./cmd/botBuild image:
docker build -t ircme-bot .Run container:
docker run --restart unless-stopped \
--name ircme_bot \
-d \
-e TELEGRAM_BOT_TOKEN="<your_bot_token>" \
ircme-bot