abrekhov / yc-serverless-tgbot-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yc-serverless-tgbot-template

Thie repo shows how to make simple telegram bot with webhook on Yandex Serverless Containers.

Prerequisite

  • Make installed
  • yc installed and inited
  • service account with at lease image.puller role
  • Telegram bot is created and you have bot token

Quickstart

  • Clone repo
git clone https://github.com/abrekhov/yc-serverless-tgbot-template.git
cd yc-serverless-tgbot-template
  • Create your registry
yc container registry create <your_registry_name>
  • Insert your bot token, registry url, container name and so on in the .env file
cp .env.example .env
vi .env
  • Create serverless container
make create
  • Build and push your image
make build
make push
  • Deploy to Yandex Cloud
make deploy

About


Languages

Language:Makefile 41.0%Language:Go 38.7%Language:Dockerfile 10.8%Language:Shell 9.5%