📚 https://core.telegram.org/bots/api#making-requests
- Interact with BotFather to create a new bot
- From the list of your bots, get the token of the new bot
- Check the profile of the bot and tap
Add to Group or Channel
- Add the bot to the channel you want to send messages to
- Open the profile of the channel you want to send messages to
- Check the
https://t.me/xxx
link: the handle (channel ID) you want is thexxx
part
- copy the variables to your local
.env
file. - assign the token and channel ID values to the variables
You can now send a message with
$messenger->sendMessageToChannel($messageText)`