向用户的电报联系人列表发送消息 - Android

Send a message to the telegram contact list of the user - Android

我正在开发一个 android application.I 在我的应用程序用户将其安装在他们的设备上时向他们的电报联系人列表发送消息时遇到问题。我能做什么?我怎样才能在我的应用程序中使用电报的表单服务来解决这个问题。有样品吗?

Telegram 不允许机器人向之前未与机器人开始对话的用户发送消息。您应该建议联系人列表中的用户通过单击您的机器人的开始按钮将您的机器人添加到他们的聊天中。 (例如,您可以从包含其 link 的您自己的机器人转发 post,然后要求用户点击 /start 按钮或简单地将其作为命令发送给机器人。)

Simply, telegram bots are different from systems like Email starting a conversation is a one-way process. But right after the conversation began, it changes to a two-way conversation.