필터 지우기
필터 지우기

matlab telegram how to use it

조회 수: 21 (최근 30일)
piero
piero 2023년 9월 15일
댓글: piero 2023년 9월 15일
Hi, anyone used this script :
i try to use this example in documentation but i get error
  댓글 수: 2
Dyuman Joshi
Dyuman Joshi 2023년 9월 15일
It would be best to ask the author of the file for support. You can post a comment in the Discussion section of the file.
However, if you want help from the forum, you will have to specify what you tried and what error you encountered.
piero
piero 2023년 9월 15일
i see this example:
MyBot=telegram_bot('');
% to tune webhook you need point next variables
url = ''; % HTTPS url to send updates to
certificate_path = ''; % *.pem, your public key certificate
ip_addres = ''; % Optional The fixed IP address which will be used to send webhook requests
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% check state of bot %%%%%%%%%%%%%%%%%%%%%%
BotInfo = MyBot.getMe;
disp('This was returned by MyBot.getMe:');
disp(BotInfo);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%% set webhook %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MyBot.setWebhook(url, 'certificate', certificate_path, 'ip_address', ip_addres)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%% check webhok status %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MyBot.getWebhookInfo()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% delete webhook %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MyBot.deleteWebhook()
i dont know how telegram bot works so not how to initialize those variables (url = '';
certificate_path = ''; ip_address = '';)
Maybe someone who has already used it can help me

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by