Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
/ kiwiyou-bot Public archive

rusty telegram bot built on serverless platform

License

Notifications You must be signed in to change notification settings

kiwiyou/kiwiyou-bot

Repository files navigation

kiwiyou-bot

Rusty telegram bot built on serverless platform

Table of contents

Commands

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.

How to build

  1. Clone the repository:
git clone https://github.com/kiwiyou/kiwiyou-bot.git
  1. 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 be 01234567890.
    • /kiwiyou-bot/token/body should be ABCDEFGHIJKLMabcdefghijklm123456789.
  1. Edit serverless.yml to match with your bot's settings.
BOT_NAME: '@your_bot'
  1. 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>
  1. 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.

Credits

About

rusty telegram bot built on serverless platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages