Notifications
Clear all

Telegram help needed.

1 Posts
1 Users
0 Reactions
50 Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7283
Topic starter  

I have an existing Telegram account. I have an API key and I think I have one bot set up. The sketch I am trying to execute the following line

if (telegram.to(TELEGRAM_CHAT).send(camera.frame).isOk())

but it fails. I don't know what a TELEGRAM_CHAT is. All my searching has resulted in nothing that works, I thinki I tried the following, GROUPS, USERS, CHANNELL, and maybe some other stuff.

What I want, is when a picture is taken, it is sent to telegram.

The first line of code that references the variable TELEGRAM_CHAT is (I have the bot token)

// replace with your bot token and chat id
 
#define TELEGRAM_CHAT "0123456789"

!@#$ I was just cleaning up what I did assuming it was wrong, and somehow both my bots are now missing on the Chats page.

I am going backwards fast guys, experienced help needed.

 

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
Quote