Skip to content

jacobian1128/tgprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgprint

TGPRINT send an image to a Telegram bot from MATLAB

You can choose sending mode:

  1. tgprint('photo'): send an image w/ compression using sendPhoto of Telegram Bot API
  2. 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:

About

send an image to a Telegram bot from MATLAB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages