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

问题描述

电报API ,用于使用Botfather创建Bot.

There are some steps that has 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.

推荐答案

是的,这很有可能.

但是,您需要构建一个与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与电报一起创建Bot,并且仅使用代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 18:23