TGPRINT send an image to a Telegram bot from MATLAB
You can choose sending mode:
- tgprint('photo'): send an image w/ compression using sendPhoto of Telegram Bot API
- tgprint('document'): send an image w/o compression using sendDocument of Telegram Bot API
Example:
figure(1);
plot(x,y);
tgprint();
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.
In addition, this uses urlreadpost by Dan Eills from File Exchange, MathWorks.
Screenshot: