如何使用botfather的电报创建一个机器人并且只使用一个代码? [英] how to create a bot with in telegram with botfather and using only a code?

查看:181
本文介绍了如何使用botfather的电报创建一个机器人并且只使用一个代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

中提到了一些步骤用于使用 botfather 创建机器人的电报 api.

There are some steps that have been mentioned in telegram api for creating a bot using a botfather.

我希望是否有办法将这些步骤转化为代码.

I was hoping if there is a way that these steps can turn into code.

具体来说,我想使用代码从 botfather 获取一个令牌,然后在代码中,我使用这个令牌.

to be specific, I want to get a token from botfather using code, and then later in the code, I use this token.

推荐答案

是的,这很有可能.

然而,您需要构建一个 Telegram 客户端,它将与 BotFather 交互.

You would however need to build a Telegram Client, that will interact with BotFather.

交互应该易于编写脚本,因为 BotFather 交互只需几个简单的步骤

The interaction should be easy to script, as BotFather interaction follows just a few simple steps

这篇关于如何使用botfather的电报创建一个机器人并且只使用一个代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆