ptbtest icon indicating copy to clipboard operation
ptbtest copied to clipboard

Can't use Mockbot on Updater

Open lucaspg96 opened this issue 8 years ago • 3 comments

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?

lucaspg96 avatar Nov 08 '17 13:11 lucaspg96

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.

Eldinnie avatar Nov 08 '17 13:11 Eldinnie

Ok, thank you for your help!

lucaspg96 avatar Nov 08 '17 14:11 lucaspg96

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'

madtyn avatar Mar 08 '18 12:03 madtyn