使用 Telegram 进行交流 - iOS 8(应用内交流)
Communicate with Telegram - iOS 8 (In-App Communication)
我想确保无法在 iOS 8
上与 Telegram
通信。我的目标是在触摸 UIButton
后从我的应用程序打开 Telegram,在此过程中将我的 phone 号码作为参数作为发件人传递,并且 Telegram 可以处理发送给某些特定 [=] 的新短信22=]个数.
如果 Telegram 没有自己的自定义 'URL Scheme
',我不能那样做,对吧?即使在 iOS 8.
谢谢
嗯,你回答了你自己的问题。除非 Telegram 提供自定义 URL 方案 (which it promised to do in the future, but didn't do until the time of writing),否则您无法完成任务。
iOS Telegram 版本 2.8 支持 URL Schema tg 和 telegram 参数:
- //消息?
- 至
- 文字
- //下载语言?
- //解决?
示例 用于将文本为 "Foo" 的消息发送到 +391234567 :
tg://msg?text=Foo&to=+393331234657
官方文档中的更多信息:
Telegram URI Scheme; you can also see the implementation in the TGAppDelegate.mmclass
我想确保无法在 iOS 8
上与 Telegram
通信。我的目标是在触摸 UIButton
后从我的应用程序打开 Telegram,在此过程中将我的 phone 号码作为参数作为发件人传递,并且 Telegram 可以处理发送给某些特定 [=] 的新短信22=]个数.
如果 Telegram 没有自己的自定义 'URL Scheme
',我不能那样做,对吧?即使在 iOS 8.
谢谢
嗯,你回答了你自己的问题。除非 Telegram 提供自定义 URL 方案 (which it promised to do in the future, but didn't do until the time of writing),否则您无法完成任务。
iOS Telegram 版本 2.8 支持 URL Schema tg 和 telegram 参数:
- //消息?
- 至
- 文字
- //下载语言?
- //解决?
示例 用于将文本为 "Foo" 的消息发送到 +391234567 :
tg://msg?text=Foo&to=+393331234657
官方文档中的更多信息: Telegram URI Scheme; you can also see the implementation in the TGAppDelegate.mmclass