简体   繁体   English

如何使用 API 创建自定义应用程序电报?

[英]How to create customize app telegram using API?

I want to build an app that continues an only one group maybe with API.我想构建一个应用程序,它可能只使用 API 继续一组。 Someone can guide me with this, please?有人可以指导我吗? It's for an Educational app.这是一个教育应用程序。

One option you have is to work with a server.您拥有的一种选择是使用服务器。

On your server, you host a database and an API.在您的服务器上,您托管一个数据库和一个 API。 You can use the database to save the users and the messages.您可以使用数据库来保存用户和消息。 You should also send your push notifications with this server.您还应该使用此服务器发送推送通知。 You can send push using FCM , but I personally had some problems with it and switched to OneSignal .您可以使用FCM发送推送,但我个人对此有一些问题并切换到OneSignal

In your APP you can show the different messages using a ListView with custom list items.在您的应用程序中,您可以使用带有自定义列表项的 ListView 显示不同的消息。 To communicate between server and app you can use a Volley request.要在服务器和应用程序之间进行通信,您可以使用Volley请求。

Some time ago I wrote nearly the same app.前段时间我写了几乎相同的应用程序。 I would recommend you to use a server with an API (a simple PHP API is enough).我建议您使用带有 API 的服务器(一个简单的 PHP API 就足够了)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM