Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 880 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 880 Bytes

tgprintf View jacobian1128/tgprintf on File Exchange

TGPRINTF send a message to a Telegram bot from MATLAB

Use tgprintf() in the same way as sprintf().

Screenshot:

Example:

tgprintf('Hello, World!');
tgprintf('%d + %d = %d',1,2,1+2);

This uses Telegram Bot API. You MUST define token and chat_id before use, which are the authorization token of the target Telegram bot, and the identifier or username of the target chat.
Please refer the following post: Creating a Telegram bot for personal notifications.