Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use Mockbot on Updater #16

Open
lucaspg96 opened this issue Nov 8, 2017 · 3 comments
Open

Can't use Mockbot on Updater #16

lucaspg96 opened this issue Nov 8, 2017 · 3 comments

Comments

@lucaspg96
Copy link

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
Copy link
Member

Eldinnie commented Nov 8, 2017

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
Copy link
Author

Ok, thank you for your help!

@madtyn
Copy link

madtyn commented Mar 8, 2018

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants