python-telegram-bot / python-telegram-bot

We have made you a wrapper you can't refuse
https://python-telegram-bot.org
GNU General Public License v3.0
25.91k stars 5.25k forks source link

Payment method not working #665

Closed Doomsk closed 7 years ago

Doomsk commented 7 years ago

I've installed the python-telegram-bot library last Wednesday via pip and tried to run the payment.py example. No success. I've got the error:

from telegram import LabeledPrice, ShippingOption File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/telegram/shippingoption.py", line 21, in from telegram import TelegramObject, LabeledPrice ImportError: cannot import name 'LabeledPrice'

Then I upgraded the library earlier today. No success. Is there an issue to the actual git version and the pip repository? I need to run the application on Heroku, so even if I, let's say, unzip the git version local it won't work anyways for my purposes.

Eldinnie commented 7 years ago

The payement stuff is still in our bèta release. To try and use it use pip install python-telegram-bot==6.1b2

jeffffc commented 7 years ago

v6.1b2 only supports payment without shipping options while master now already support full payment methods

Doomsk commented 7 years ago

@Eldinnie worked! thank you very much!

@jeffffc wow, I'll test later on for shipping