Giter Club home page Giter Club logo

doggobot's People

Contributors

dzakyputra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

doggobot's Issues

starting the bot

how can i run the bot after writing the code? i did python3 main.py but bot is not working.

Error Timed Out

python3 rdog.py
Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 402, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 398, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1373, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 311, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 272, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.6/ssl.py", line 1012, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.6/ssl.py", line 874, in read
return self._sslobj.read(len, buffer)
File "/usr/lib/python3.6/ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 253, in _request_wrapper
resp = self._con_pool.request(*args, **kwargs)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 70, in request
**urlopen_kw)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 666, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 347, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/packages/six.py", line 686, in reraise
raise value
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 617, in urlopen
chunked=chunked)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 405, in _make_request
exc_cls=ReadTimeoutError)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 321, in _raise_timeout
raise exc_cls(*args)
telegram.vendor.ptb_urllib3.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=5.0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "rdog.py", line 23, in
main()
File "rdog.py", line 19, in main
updater.start_polling()
File "/home/user/.local/lib/python3.6/site-packages/telegram/ext/updater.py", line 305, in start_polling
self._init_thread(self.dispatcher.start, "dispatcher", ready=dispatcher_ready)
File "/home/user/.local/lib/python3.6/site-packages/telegram/ext/updater.py", line 225, in _init_thread
name=f"Bot:{self.bot.id}:{name}",
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 331, in id
return self.bot.id
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 324, in bot
self._bot = self.get_me()
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 127, in decorator
result = func(*args, **kwargs)
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 408, in get_me
result = self._post('getMe', timeout=timeout, api_kwargs=api_kwargs)
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 260, in _post
f'{self.base_url}/{endpoint}', data=data, timeout=effective_timeout
File "/home/user/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 355, in post
**urlopen_kwargs,
File "/home/user/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 255, in _request_wrapper
raise TimedOut() from error
telegram.error.TimedOut: Timed out

No error handlers are registeres, logging exception

Hi! Thanks for this cool Bot. However, I'm getting the following error:

No error handlers are registered, logging exception.

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telegram/ext/dispatcher.py", line 432, in process_update
handler.handle_update(update, self, check, context)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telegram/ext/handler.py", line 156, in handle_update
return self.callback(update, context)
File "/Users/dcorreavi/Dev/woofbot/main.py", line 12, in bop
allowed_extension = ['jpg','jpeg','png']
AttributeError: 'CallbackContext' object has no attribute 'message'

The code is old no longer working Please update

python3 rdog.py
/home/user/.local/lib/python3.6/site-packages/telegram/ext/handler.py:160: TelegramDeprecationWarning: The @run_async decorator is deprecated. Use the run_async parameter of your Handler or Dispatcher.run_async instead.
return self.callback(update, context)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.