Thie repo shows how to make simple telegram bot with webhook on Yandex Serverless Containers.
- Make installed
- yc installed and inited
- service account with at lease image.puller role
- Telegram bot is created and you have bot token
- 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