I prepared a public channel.
I created a bot using botFather.
I made the bot as the administrator of public channel.
then I made the following HTTP GET request without success:
var myUrl = ‘https://api.telegram.org/bot[MY_BOT_TOKEN]/sendmessage?chat_id =MY_CHANNEL_NAME&text=’ + myMessage;
The fetch command returns this error:
Exception: Invalid argument: https://api.telegram.org/bot(1246662861:AAFGejYXvmstfH-
Please somebody help me to solve this problem.
I thank you very much for soonest response.