icealtria / obsidian-telegram-inbox

Receive messages from Telegram bots and add them to Obsidian's daily note.
GNU General Public License v3.0
25 stars 1 forks source link

Instruction: how to show text output on Obsidian? #6

Closed rotello closed 1 month ago

rotello commented 2 months ago

I know I am a noob but how do i receive the telegram text? I added the {{{text}}} in the template and nothing happens dinamically. I am sure I m doing something wrong, can you help?

icealtria commented 2 months ago

Is the Bot set up and connected successfully?

If the bot is working and you send it a message, you will receive a reaction❤️(success) or an error message.

rotello commented 2 months ago

Mmmhh I thought so... but i only get a double check and nothing else. i guess i m doing something wrong...

Screenshot 2024-08-10 at 17 10 52 Screenshot 2024-08-10 at 17 08 09 Screenshot 2024-08-10 at 17 09 35
icealtria commented 2 months ago

Actually "Validate" is just to make sure the syntax is correct. This is to avoid program errors. {{{text_telegramBot}}} is not valid. There is indeed some ambiguity here.

https://github.com/icealtria/obsidian-telegram-inbox/wiki/Message-template Only these fields can be used. You may replace {{{text_telegramBot}}} with {{{text}}}.

Also, I noticed that there is no reaction❤️ in your telegram message. Have you added your username or id to Allowed users? image

rotello commented 2 months ago

Thanks for your patience for my noob questions:

Let me recap:

Create a bot using @BotFather. - OK

Copy the bot token provided by @BotFather. Paste the token into the Bot Token field in the plugin settings. Add your username or telegram id to Allowed Users. You can get your id from @Get_UIDbot

It was wrong - i Added the @ MyName istead of just MyName And now it does work

Screenshot 2024-08-10 at 21 23 02

Click the Restart button. DONE

Then:

Added {{{text}}} - {{time}} in the daily template... what should i expect now?

If I send a message to my bot, I should get an heart OK

Screenshot 2024-08-10 at 21 37 53

and the message get delivered to obsidian everytime i create a new page? or it 's "live" ?

Screenshot 2024-08-10 at 21 46 40

Thanks!

icealtria commented 2 months ago

After send a message to the bot, you will get a text in your daily notes that according to the Settings > Core Plugins > Daily Notes. For today, the text be saved to "2024-08-11".

As long as Obsidian is running, this will be handled automatically.

rotello commented 2 months ago

We are done I ve tried the custom path with Telegram-Inbox.md and it does work! then i switched back and it does work. it happens data at the end of the page and not where the {{{text}}} is but it does work! GREAT! Thank you man!