Code Monkey home page Code Monkey logo

quote-api's People

Contributors

aliaryantech avatar arrshad avatar dependabot[bot] avatar durof avatar kylmakalle avatar lyosu avatar nyaruta avatar purofle avatar ron788 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

quote-api's Issues

Question about arguments in the 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

Does not work with unicode text

Hi, when I tried to make an image using this text "𝖒𝖆𝖒𝖆𝖓𝖌"

When I used bot.lyo.su:
image

When using local api

image

Request failed with status code 500

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

Avatar not load

When I run script the quote create but avatar of user is empty

Getting error response

{"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)

Error 404 on the site

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?

[ FEATURE REQUEST ] Opt-out of quotly if user requested.

Greetings

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.

The concept

  • By default, everyone can be quoted.
  • If an user, who doesn't like quote, they can use a command, like /optout@QuotLyBot either in the group that has the bot, or in the bot PM.
  • This will blacklist user from being quoted, even when other user forward the blacklisted user to bot PM to quote.
  • Whenever that opt-ed out user want to revert it, they can use /opt@QuotLyBot.

I hope this will be added.

I need Quote-Api without Telegram Part.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.