lyosu / quote-api Goto Github PK
View Code? Open in Web Editor NEWtelegram quote api
telegram quote api
Question about arguments in the API.
Is it possible to change the color of the name in the quote?
And how to add a premium emotion to a name?
Can you add documentation?
I tried to understand your code but I was not silent in the java script
MB, I was still a junior dev when I tried to use this repo
You recently update your API, mostly time's this error occurred Request failed with status code 500
even that request is same as usual didn't change a bit, but still sometimes that error Occurred.
I already checked both json!
{"type":"quote","format":"png","backgroundColor":"#FFFFFF","width":512,"height":768,"scale":2,"messages":[{"entities":[],"avatar":true,"from":{"id":1,"name":"deey","photo":{"url":"https://upload.wikimedia.org/wikipedia/commons/a/ac/Default_pfp.jpg"}},"text":"Hmmm","replyMessage":{}}]}
response: Request failed with status code 500
{"type":"quote","format":"png","backgroundColor":"#FFFFFF","width":512,"height":768,"scale":2,"messages":[{"entities":[],"avatar":true,"from":{"id":1,"name":"Alι_Aryαɴ","photo":{"url":"https://telegra.ph/file/e991bb4b535a0f1425aa0.jpg"}},"text":"Hello","replyMessage":{}}]}
response: "successful"
Pretty weird, sometimes that error Occurred. else both works
I need to get just the quotes without the users profile pic
Tried "photo": None
But not working.
When I run script the quote create but avatar of user is empty
{"ok":false,"error":{"code":500,"message":"Cannot read property 'name' of undefined"}}
Although "name" is specified
My code:
from requests import post
url = "https://bot.lyo.su/quote/generate.png/"
data = {"type": "quote", "messages": [{"from": {"id": event.sender_id, "first_name": event.sender.first_name, "last_name": "pro", "language_code": "en", "title": "hi"}, "text": "love", "name": "pro"}]}
r = post(url, data=data)
print(r.text)
The API (https://bot.lyo.su/quote/generate) that was used for generation and referenced in the Readme is currently out of service.
Seems fixed now.
I used the code from the example, requests were sent to the site and returned 404
What link should I use for the API now?
Hello, sorry if this is not a correct place to request this feature. But I want to add an opt-out feature, which will not quote the user in any way.
/optout@QuotLyBot
either in the group that has the bot, or in the bot PM./opt@QuotLyBot
.I hope this will be added.
Hello there
I want to use your project without the Telegram Part, but I have no knowledge of nodejs.
profile photo username surname should get them from json, not from telegram, but I don't have nodejs knowledge and I don't have friends who know.
can you give me any ideas.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.