THe objective of this bot is (at least for now) to just convert an image to the size and format required by @Sticker bot
https://core.telegram.org/bots/tutorial#obtain-your-bot-token
-
pip install -r requirements.txt
-
Either add your Token to your environment variables or replace line 15 of main.py with your Token
-
python main.py --local
-
Install Google Cloud CLI - https://cloud.google.com/sdk/docs/install
-
gcloud functions deploy webhook --set-env-vars "BOT_TOKEN=<YOUR_TOKEN_HERE>" --runtime python312 --trigger-http
-
curl "https://api.telegram.org/bot<YOUR_TOKEN_HERE>/setWebhook?url=URL_RETURNED_FROM_PREVIOUS_COMMAND