Telegram bot for tracking car expences and notifications of regular service
-
Install dev environment (Docker env for VS Code) link
-
Re-open folder in container
-
ngrok http 7071 -
put https temprary URL to
.envfile asNGROK_URL. Env file should be in form of KEY=VALUE -
define
SharegoodTokenvariable in .env file. Check Botfather to get token for corresponding bot. -
run
bash utils/set-webhook.sh -
define
botUsersIDsasxxxxxxxxx;allowed telegram ids -
run func in VS Code - press F5
- install Azure CLI
- install Azure Func core tools
- install ngrok
- run
ngrok http 7071 - put https temprary URL to
.envfile asNGROK_URL - run
bash utils/set-webhook.sh - run
func host start
- Define local Azurite as temp database
StorageAccountConnectionStringequal to
DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;
- Run Azurite: see doc
- run
pytests mybot/testsor use VSCode Test Explorer
- Install dev environment (Docker env for VS Code) [link] (https://code.visualstudio.com/docs/remote/containers#_getting-started)
- Try asyncio
-[x] Bulid echo bot local link -[x] Migrate to webhook - see set-webhook.sh
- Sample test local echo function
- Switch to Docker
- [-] Deploy to Azure
Helping links: