Filter löschen
Filter löschen

matlab telegram how to use it

21 Ansichten (letzte 30 Tage)
piero
piero am 15 Sep. 2023
Kommentiert: piero am 15 Sep. 2023
Hi, anyone used this script :
i try to use this example in documentation but i get error
  2 Kommentare
Dyuman Joshi
Dyuman Joshi am 15 Sep. 2023
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 am 15 Sep. 2023
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by