An Azure Function ⚡ that can be used to perform basic actions through a Telegram-Bot on the Zucchetti HR Platform.
/in
: Clock in/out
: Clock out/stamps
: Displays the stamps of the current date and the estimated clock-out time (Time when 8h are reached)
flowchart LR
TC(Telegram Client) --> TW(Telegram Webhook) --> AF(Azure Function) --> SIDP(IDP Session generation) --> ZA(Zucchetti HR Platform) --> TC
For your bot to work, you must bind a Webhook to the Azure function. You can do that by invoking the set-webhook
command as described in the documentation.
For the function to work properly, you have to set following variables:
TelegramChatId
: Id which identifies your Telegram userTelegramApiKey
: Api key of your Telegram botZucchettiBaseUrl
: Base URL under which your Zucchetti Platform is reachableZucchettiUser
: Your usernameZucchettiPassword
: Your password