All commands are available on @kiwiyou_bot
/lang <language>
- Set the bot's language for the current chat.
/usearch <keyword>
- Look up a unicode character whose name contains the keyword.
- Prerequisites
- npm
- serverless framework
- Rust 1.41.0 or higher
- Amazon AWS Account
- A telegram bot account (can be created by talking to @BotFather)
- Clone the repository:
git clone https://github.com/kiwiyou/kiwiyou-bot.git
- Configure your AWS Systems Manager to have the bot's token
- In the Parameter Store, You should have both
/kiwiyou-bot/token/head
and/kiwiyou-bot/token/body
. - Given the bot's token, for example, say 01234567890:ABCDEFGHIJKLMabcdefghijklm123456789:
/kiwiyou-bot/token/head
should be01234567890
./kiwiyou-bot/token/body
should beABCDEFGHIJKLMabcdefghijklm123456789
.
- Edit
serverless.yml
to match with your bot's settings.
BOT_NAME: '@your_bot'
- Deploy your bot:
serverless deploy
# Or, if you have the npm version:
npx serverless deploy
It will give you an endpoint URL like:
endpoints:
POST - https://example123.execute-api.eu-west-2.amazonaws.com/dev/<your-token-head>/<your-token-body>
- Setup a webhook for your bot by visiting:
https://api.telegram.org/bot<your-bot-token>/setWebhook?url=<your-endpoint-url>
Done! You can enjoy your own bot.