python-telegram-bot / ptbtest

GNU General Public License v3.0
50 stars 28 forks source link

Can't use Mockbot on Updater #16

Open lucaspg96 opened 6 years ago

lucaspg96 commented 6 years ago

When I try to create a Upater using the Mockbot like on your examples, I get the following error:

"AttributeError: 'Mockbot' object has no attribute 'request' "

Running your examples I got the same.

I manage to solve this by setting a request attribute as telegram.utils.request.Request. It shouldn't be already defined?

Eldinnie commented 6 years ago

Hi @lucaspg96

I'm sorry to say that due to other obligations I have had no time to work on ptbtest for a while. It will not work with any version of python-telegram-bot above 6.0. I will put a notice in the readme to reflect this.

lucaspg96 commented 6 years ago

Ok, thank you for your help!

madtyn commented 6 years ago

So, I was looking for some tool for testing my ptb bot. If this is not being developed, is there any other option?

Can I, at least, fix something for avoiding these kind of errors?:

'Mockbot' object has no attribute 'delete_webhook'