A simple Telegram bot
cp .env.example .env
go run .
curl --location --request GET 'localhost:3000/{API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"message": {
"text": "pepe",
"chat": {
"id": 42
},
"entities": [
{
"type": "mention"
},
{
"type": "bold"
}
]
}
}'
curl --location --request GET 'localhost:3000/{API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"message": {
"text": "/tokens",
"chat": {
"id": 42
}
}
}'