Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
527 stars 261 forks source link

Support Payments 2.0 deep linking invoices #127

Open valentino-sm opened 3 years ago

valentino-sm commented 3 years ago

Payments 2.0 test implementation.

Don't use if you are not sure what you are doing.

valentino-sm commented 3 years ago

related to #107

Steffo99 commented 3 years ago

What does this do, exactly? :)

I'll have a look when I can.

Steffo99 commented 3 years ago

So... this adds fast/smart checkout from the Payments 2.0 API to greed, correct?

valentino-sm commented 3 years ago

Yes. The code is pretty clear so I didn't think for commenting.

Additional panel in admin menu for forwarding invoices letting people buy directly from forwarded invoice instantly. The code works perfectly as I have it in the prod =D However it is not ready for merge as additional rework interface/localization and photo_url feature is needed.

valentino-sm commented 3 years ago

The problem with photo_url in API is it should be the url only. So in my local fork I did a hack with replacing all binary photo functions to url

Steffo99 commented 3 years ago

Sorry if it's taking a while!

I'm currently busy with my university studies, and this PR looks like it needs a bit of testing to ensure it doesn't break anything...

valentino-sm commented 3 years ago

No apologies. It's up to you. Just trying help you with some ideas

MoussLaTache commented 1 year ago

Is it actually working ? I want to implement payment 2.0 on my bot.