Skip to content

jacobian1128/tgprintf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.