Telegram shipped a small alternatively in truth useful substitute to their iOS app no longer too long ago. I first were given right here all the way through it while browsing the pro Telegram iOS GitHub repo, and it kind of feels you’ll have the ability to now create a slightly in iOS that lets Siri (and CarPlay) send messages on your Telegram bot by way of voice. No third-party apps, no shortcuts, no workarounds.
I benefit from this to ping my OpenClaw bot hands-free while the use of. It merely works.
Bot Peer ID First
Faster than environment problems up, you wish to have your bot’s Peer ID. It’s buried in your bot’s API token.
Open the chat in conjunction with your bot in Telegram. Whilst you created the bot by the use of @BotFather, the confirmation message incorporates the API token, something like 851234567:AA.... The Peer ID is the amount previous than the colon. In that example, 851234567.
When you’ll have the ability to now not find that message, open @BotFather, make a selection your bot, tap API Token, and Telegram will show the token over again.
Write it down. You’ll need it in a 2d.

Create the Contact
Open the Contacts app on your iPhone. Tap the + button in an effort to upload a brand spanking new contact.
Pick a temporary establish, something Siri can recognise merely and unambiguously. I went with “Claw”, alternatively “OpenClaw” or “MyBot” works merely as neatly. Avoid names that sound like other contacts.
Scroll down, tap add url, alternate the label to Telegram (this phase problems, so don’t skip it), then paste:
https://t.me/@oid
Exchange in conjunction with your actual amount. So if your Peer ID is 851234567, all of the URL becomes:
https://t.me/@oid851234567
Save the contact.

One Prerequisite
Bear in mind to’re the usage of the pro Telegram app on iPhone and that it’s relatively up to date. This trick is dependent upon Telegram’s iOS contact integration, so if the Telegram URL label does no longer show up in Contacts, substitute the app first.
The bot won’t answer till you’ve already sent it a minimum of one message from your account. Whilst you’ve in no way chatted with it previous than, open the bot in Telegram, hit Get began or send any message, then come once more.
The usage of It
- Say “Hi Siri, message Claw on Telegram”, the usage of regardless of establish you gave the contact.
- Siri opens the Telegram chat in conjunction with your bot and is ready in your next voice command.
- On CarPlay, the identical contact turns out in your app list and responds on your automobile’s voice assistant.
It’s the identical mechanism, merely carried over to a the use of context.
What If truth be told Works
- Any Telegram bot you’re going to have an provide chat with, no longer merely OpenClaw bots.
- The contact establish will have to be transient and distinct. Naming a slightly “Test” or “Bot” will confuse Siri.
- Whilst you rename the contact later, substitute the Siri phrase accordingly.
The post Use Siri to Message Your Telegram Bot (Sure, Even on CarPlay) seemed first on Hongkiat.
Supply: https://www.hongkiat.com/blog/use-siri-message-telegram-bot/


0 Comments