Telegram 可以直接通过电报聊天发送到telegra.ph吗?
除了有一个云信使平台,Telegram还有一个名为telegra.ph的博客网站。它的功能相当于Medium或WordPress,并使用电报帐户作为记账帐户。可以通过与bot帐户@telegraph聊天来登录该帐户,但据我所知,帖子的实际创建和编辑只能在web浏览器中完成 可以直接从聊天界面发送到telegra.ph吗?我不知道怎么做,但也许我看起来不够好Telegram 可以直接通过电报聊天发送到telegra.ph吗?,telegram,Telegram,除了有一个云信使平台,Telegram还有一个名为telegra.ph的博客网站。它的功能相当于Medium或WordPress,并使用电报帐户作为记账帐户。可以通过与bot帐户@telegraph聊天来登录该帐户,但据我所知,帖子的实际创建和编辑只能在web浏览器中完成 可以直接从聊天界面发送到telegra.ph吗?我不知道怎么做,但也许我看起来不够好 谢谢 您可以使用API执行您的请求您可以使用API执行您的请求聊天可以使用API.telegra.ph或tgraph.io/API直接发送到
谢谢 您可以使用API执行您的请求您可以使用API执行您的请求聊天可以使用API.telegra.ph或tgraph.io/API直接发送到telegra.ph或tgraph.io/API。 如果您愿意,我将为您提供我创建的API,使您能够更轻松地使用python编程语言完成这项工作
import json
MAIN_URL = 'https://api.telegra.ph/'
class apiuz():
def __init__(self):
self.http = requests.Session()
def callMethod(self, n_method=None, a_method=None):
xitoy2= MAIN_URL + n_method.__name__+'?'
for x,y in a_method:
if x!='self' and y!=None: xitoy2+=x+'='+str(y)+'&'
response = self.http.get(xitoy2[:-1])
xitoy2 = eval(response.text.replace('\/','/').replace('true','True').replace('false','False'))
return xitoy2
#Methods created by @apiuz
def createAccount(self, short_name=None, author_name=None, author_url=None):
return self.callMethod(n_method=self.createAccount, a_method=locals().items())
def editAccountInfo(self, access_token=None, short_name=None, author_name=None, author_url=None):
return self.callMethod(n_method=self.editAccountInfo, a_method=locals().items())
def getAccountInfo(self, access_token=None, field=None):
return self.callMethod(n_method=self.getAccountInfo, a_method=locals().items())
def revokeAccessToken(self, access_token=None):
return self.callMethod(n_method=self.revokeAccessToken, a_method=locals().items())
def createPage(self, access_token=None, title=None, author_name=None, author_url=None,
content=None):
return self.callMethod(n_method=self.createPage, a_method=locals().items())
def editPage(self, access_token=None, path=None, title=None, content=None,
author_name=None, author_url=None):
return self.callMethod(n_method=self.editPage, a_method=locals().items())
def getPage(self, path=None):
return self.callMethod(n_method=self.getPage, a_method=locals().items())
def getPageList(self, access_token=None, offset=0, limit=50):
return self.callMethod(n_method=self.getPageList, a_method=locals().items())
def getViews(self, path=None, year=None, month=None, day=None, hour=None):
return self.callMethod(n_method=self.getPageList, a_method=locals().items())
聊天可以使用api.telegra.ph或tgraph.io/api直接发送到telegra.ph或tgraph.io/api。 如果您愿意,我将为您提供我创建的API,使您能够更轻松地使用python编程语言完成这项工作
import json
MAIN_URL = 'https://api.telegra.ph/'
class apiuz():
def __init__(self):
self.http = requests.Session()
def callMethod(self, n_method=None, a_method=None):
xitoy2= MAIN_URL + n_method.__name__+'?'
for x,y in a_method:
if x!='self' and y!=None: xitoy2+=x+'='+str(y)+'&'
response = self.http.get(xitoy2[:-1])
xitoy2 = eval(response.text.replace('\/','/').replace('true','True').replace('false','False'))
return xitoy2
#Methods created by @apiuz
def createAccount(self, short_name=None, author_name=None, author_url=None):
return self.callMethod(n_method=self.createAccount, a_method=locals().items())
def editAccountInfo(self, access_token=None, short_name=None, author_name=None, author_url=None):
return self.callMethod(n_method=self.editAccountInfo, a_method=locals().items())
def getAccountInfo(self, access_token=None, field=None):
return self.callMethod(n_method=self.getAccountInfo, a_method=locals().items())
def revokeAccessToken(self, access_token=None):
return self.callMethod(n_method=self.revokeAccessToken, a_method=locals().items())
def createPage(self, access_token=None, title=None, author_name=None, author_url=None,
content=None):
return self.callMethod(n_method=self.createPage, a_method=locals().items())
def editPage(self, access_token=None, path=None, title=None, content=None,
author_name=None, author_url=None):
return self.callMethod(n_method=self.editPage, a_method=locals().items())
def getPage(self, path=None):
return self.callMethod(n_method=self.getPage, a_method=locals().items())
def getPageList(self, access_token=None, offset=0, limit=50):
return self.callMethod(n_method=self.getPageList, a_method=locals().items())
def getViews(self, path=None, year=None, month=None, day=None, hour=None):
return self.callMethod(n_method=self.getPageList, a_method=locals().items())
当然,我只是想知道是否有人已经做了这么一点。当然,我只是想知道是否有人已经做了这么一点。