Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1021 Bytes

telegram.md

File metadata and controls

31 lines (18 loc) · 1021 Bytes

📚 https://core.telegram.org/bots/api#making-requests

🤖 1. Manage the Bot

  1. Interact with BotFather to create a new bot
  2. From the list of your bots, get the token of the new bot
  3. Check the profile of the bot and tap Add to Group or Channel
  4. Add the bot to the channel you want to send messages to

📺 2. Get the handle of the channel you want to send messages to

  1. Open the profile of the channel you want to send messages to
  2. Check the https://t.me/xxx link: the handle (channel ID) you want is the xxx part

🌳 3. Setup the .env

  1. copy the variables to your local .env file.
  2. assign the token and channel ID values to the variables

📨 6. Send messages

You can now send a message with

$messenger->sendMessageToChannel($messageText)`

👉 Check the example here