Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 812 Bytes

README.md

File metadata and controls

51 lines (35 loc) · 812 Bytes

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