Telegram module on send chart error

Hi All
I have a workflow for analyse the share. i get stuck on the send chart module.


See the above image the red box highlight where my error is.
i am not sure what to fill in the parameter : -

Can some one tell me , chart ID what info i need to fill in ?

Thank you

Paul

The chat ID is wrong, apparently.
Try to get the chat ID from the trigger and send it to the Sub-workflow.

Do you know how to do that or do you need help?

You can also write the chat ID in simple text. To find out the chat ID you can use this bot;

@solomon
Thank you for your sharing.
Yes , i need help badly.
I don’t know how to get ChatID from telegram app.
May i know Where can i find the sub-workflow from below diagram ?

Can you please share your workflow with us?
You can copy and paste it inside a code block.

To create a code block you just have to click here:
image

Your workflow will show up like this:

@solomon
Below is my workflow

Chat ID

So the first thing you need to do is get the ID of your own user:

Choose this option in IDBot and find yourself. This way the bot will be able to message you.

Another option is to create a channel with your bot and use the channel ID instead.

Credentials

The other thing you can do is to create a Header Auth credential to safely use your API key.

Execute workflow fields

Lastly, adjust the fields you are going to accept in your subworkflow, so you always have the same field name and you can also instruct the AI in a easier way.

Final result

I’ve made some extra adjustments to make it easier for you. Including some small tweaks to your prompt to simplify and get more consistent results.

You can copy and paste everything, if you’d like:

1 Like

@solomon Thank you for your sharing.
you mention the first thing i need to do is get the ID , i am not aware how to go to User button ? As my telegram i can only see below info :-

Paul

Have you seen the link I provided for the IDBot?

This is the IDBot: Telegram: Launch @username_to_id_bot

The one in your screenshot is called BotFather, not IDBot

@solomon
Thank you very much , it work fine after i setup credential for Chart IMG API.
I have one question , When i set up credential for chart-IMG API , the name i must use x-api-key , if i try to change to api-key , it will appear credential issue, when i watch some you tube video , they enter Authorization.


question , refer to below image , the node A and node B workflow , are they allow having same file name , how node A call node B ?

question:- the workflow you share , it is every time can display chart ? Mine alway unable to display charge and no error .

questions , if i not set the content type what are consequences ?


Appreciate very much for your sharing.
Paul

Credentials

This is a Header Auth credential. The service that receives the request decides the name of the header field where the key should go. Some services use "Authorization", others use "key"etc… It depends on how the service is set up.

Node A, Node B

That is a sub-workflow. See documentation here.
They can be in the sabe workflow or a separate one.

You can have only 1 trigger for “Execute on called by another workflow” in your workflow. So if you decide to have multiple sub-workflows, each sub-workflow will its own file/workflow.

Chart Error

Check your executions to understand why the subworkflow is giving an error.
Do you know how to check your executions?

Content-Type

The default content type for many API calls is “application/json”. In most cases you don’t need to specify that in n8n.

So no consequences at all.

@solomon wow your reply very neat . I need some time to disgust. Thsnk you very much .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.