Skip to main content

Kaztau

Kaztau is a simple cli app to send message whatsapp or telegram. Just call command on shell or execute via cron for create reminder notification.

Installation

pip install kaztau

export your telegram credential

export KAZTAU_TELEGRAM_API_ID=112233
export KAZTAU_TELEGRAM_API_HASH='11aaa22bb'
export KAZTAU_TELEGRAM_BOT_TOKEN='22bb33cc'

export your whatsapp device_id

export WA_DEVICE_ID="a012asdf09123"

on this package author use whatsapp api from whacenter.com

How to use

Send Whatsapp Message

  • Send message run command
    kaztau send_wa_message "{identifier}" "{your_message}"
    
    Example:
    kaztau send_wa_message "628998123123" "Test send message from kaztau"
    

Send Whatsapp Image

  • Send image run command
    kaztau send_wa_image "{identifier}" "{your_message}" "{image_path}"
    
    Example:
    kaztau send_wa_image "628998123123" "New Picture" "/Users/Userexam/Pictures/image_report.png"
    

Send Whatsapp Multi Images

  • Send images run command
    kaztau send_wa_mult_image "{identifier}" "{your_message"} --path-file "{path_file_1}" --path-file "{path_file_2}"
    
    Example:
    kaztau send_wa_multi_image "628998123123" "Multi Picture" --path-file "/Users/Userexam/Pictures/image_report_1.png" --path-file "/Users/userexam/Pictures/image_report_2.png"
    
    Alternative argument you can use --path-folder to send all image in the folder
    kaztau send_wa_multi_image "628998123123" "Multi Picture" --path-folder "/Users/Userexam/Pictures/dir_images"
    

Send Whatsapp Message or Images to group

If you want to send message, image or multi image, you just change {identifier} from number to group name and add option --togroup, Example:

kaztau send_wa_message "Dev Python" "Test send message from kaztau" --togroup
kaztau send_wa_multi_image "Dev Python" "Multi Picture" --path-folder "/Users/Userexam/Pictures/dir_images" --move-folder "/Users/Userexam/Pictures/success" --togroup

Send Telegram Message

  • Send message run command
    kaztau send_telegram_message "{identifier}" "{your_message}"
    
    Example:
    kaztau send_telegram_message "irfanpule" "Test send message from kaztau"
    

Send Telegram Image

  • Send image run command
    kaztau send_telegram_image "{identifier}" "{your_message}" "{image_path}"
    
    Example:
    kaztau send_telegram_image "irfanpule" "New Picture" "/Users/Userexam/Pictures/image_report.png"
    

Send Telegram Multi Images

  • Send images run command
    kaztau send_telegram_multi_image "{identifier}" --path-file "{path_file_1}" --path-file "{path_file_2}"
    
    Example:
    kaztau send_wtelegrammultii_image "628998123123" --path-file "/Users/Userexam/Pictures/image_report_1.png" --path-file "/Users/userexam/Pictures/image_report_2.png"
    
    Alternative argument you can use --path-folder to send all image in the folder
    kaztau send_wa_multi_image "628998123123" "Multi Picture" --path-folder "/Users/Userexam/Pictures/dir_images"
    

Send Whatsapp Message or Images to group

Whatsapp

If you want to send message, image or multi image, you just change {identifier} from number to group name and add option --togroup, Example:

kaztau send_wa_message "Dev Python" "Test send message from kaztau" --togroup
kaztau send_wa_multi_image "Dev Python" "Multi Picture" --path-folder "/Users/Userexam/Pictures/dir_images" --move-folder "/Users/Userexam/Pictures/success" --togroup

Telegram

on telegram {identifier} auto detect number, username, ID as a personal, group or channel. So you just type the telegram ID / identifier

Send Whatsapp or Telegram Images Option Arg

If you want to send image and move image to another folder after success, you can use this option

  • Move image to another directory after success send_wa_image or send_wa_multi_image or send_telegram_image or send_telegram_multi_image.

    You can add argument --move-path {move_path}. Example on send_image

    kaztau send_wa_image "628998123123" "New Pictures" --path-file "/Users/Userexam/Pictures/image_report.png" --move-folder "/Users/Userexam/Pictures/success"
    
    kaztau send_telegram_image "628998123123" --path-file "/Users/Userexam/Pictures/image_report.png" --move-folder "/Users/Userexam/Pictures/success"
    

    Example on send_wa_multi_image

    kaztau send_wa_multi_image "628998123123" "Multi Picture" --path-file "/Users/Userexam/Pictures/image_report_1.png" --path-file "/Users/userexam/Pictures/image_report_2.png" --move-folder "/Users/Userexam/Pictures/success"
    

    or

    kaztau send_telegram_multi_image "628998123123" --path-folder "/Users/Userexam/Pictures/dir_images" --move-folder "/Users/Userexam/Pictures/success"
    

Metadata

Release files for kaztau 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kaztau 0.2.0
File Size Uploaded
kaztau-0.2.0.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kaztau 0.2.0
File Interpreter ABI Platform
kaztau-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / kaztau-0.2.0.tar.gz

Download URL kaztau-0.2.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
de5bd06b79caf81dddba0d48867aed5349ba4424a47b4b0368e3b12ce41874b2
BLAKE2b-256 checksum
How to use checksums
131bf4936ce4b05bf4c2882f1d698f4b3a6d9c8c2f085eaed3ae89395b9bb8bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release files / kaztau-0.2.0-py3-none-any.whl

Download URL kaztau-0.2.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
431d048a38c6ecac94aabdb7066fdf198da820a842b03ca9ebd0e7aa2e9c7f7e
BLAKE2b-256 checksum
How to use checksums
6c9505741e999b17aa994cb0dc52409e4e5bd3cd7c1d42dd6190c1435a22ae67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page