A simple telegram bot to take a picture from a connected web cam.
The bot uses big Emgu.CV
lib to work with the web cam, let me know if you know better way.
- Obtain a telegram bot auth token.
- Create a telegram bot using @BotFather.
- Download the latest release or compile the project locally.
- Configure your bot.
- Adjust
appsettings.json
file with auth token. - Add your telegram user id to Security -> Allowed Users array.
- You can send
/start
command to the bot to get your user id.
- You can send
- Adjust
- Run your bot (
SnapTgBot.exe
), send/takepicture
to take a picture.
Publish single file: dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained true