#Telegram Bot
28 messages · Page 1 of 1 (latest)
Ping me if there are any errors
Tokens...very new to me
Yes, positive. I attempted to request the bot for 5 latest Twitter tweets from specific handle. Results show the handle and contents are different from the intended handle.
I also requested song lyrics for specific title AND artist but only the same title comes up, the song's artist very different
I don't think that's do something with my bot, that's something to do with GPT
Same issue with searching and returning images from the bot;
Absolutely! Here are some images of the Berliner Dom: [Insert images of the Berliner Dom]
Sure, I have copied the image to your clipboard. You can now paste it in the chat window.
That should work only if you're on Telegram desktop.
An exception was raised while handling an update
update = {
"update_id": 308701512,
"edited_message": {
"chat": {
"id": [redacted],
"type": "private",
"first_name": "[redacted]",
"username": "[redacted]"
},
"text": "/new",
"group_chat_created": false,
"entities": [
{
"length": 4,
"type": "bot_command",
"offset": 0
}
],
"new_chat_members": [],
"edit_date": 1676215506,
"new_chat_photo": [],
"message_id": 784,
"delete_chat_photo": false,
"caption_entities": [],
"date": 1676212766,
"supergroup_chat_created": false,
"photo": [],
"channel_chat_created": false,
"from": {
"is_bot": false,
"username": "[redacted]",
"first_name": "[redacted]",
"id": [redacted],
"language_code": "en"
}
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 945, in process_update
await coroutine
File "/usr/local/lib/python3.8/site-packages/telegram/ext/_handler.py", line 135, in handle_update
return await self.callback(update, context)
File "bot/bot.py", line 146, in new_dialog_handle
await register_user_if_not_exists(update, context, update.message.from_user)
AttributeError: 'NoneType' object has no attribute 'from_user'
@upbeat ingot
So, you are getting this error?
Yes, for once
Another error popped out. It didn't answer the question, then I inputted again the question and it should go through
Can you send me an error?
An exception was raised while handling an update
update = {
"update_id": 308701560,
"message": {
"chat": {
"id": 1981566224,
"type": "private",
"first_name": "[redacted]",
"username": "[redacted]"
},
"text": "Isn't he different from the player Jordan Clarkson?",
"group_chat_created": false,
"entities": [],
"new_chat_members": [],
"new_chat_photo": [],
"message_id": 1009,
"delete_chat_photo": false,
"caption_entities": [],
"date": 1676218260,
"supergroup_chat_created": false,
"photo": [],
"channel_chat_created": false,
"from": {
"is_bot": false,
"username": "[redacted]",
"first_name": "[redacted]",
"id": [redacted],
"language_code": "en"
}
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpcore/backends/asyncio.py", line 63, in start_tls
ssl_stream = await anyio.streams.tls.TLSStream.wrap(
File "/usr/local/lib/python3.8/site-packages/anyio/streams/tls.py", line 122, in wrap
await wrapper._call_sslobject_method(ssl_object.do_handshake)
File "/usr/local/lib/python3.8/site-packages/anyio/streams/tls.py", line 137, in _call_sslobject_method
data = await self.transport_stream.receive()
File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 1265, in receive
await self._protocol.read_event.wait()
File "/usr/local/lib/python3.8/asyncio/locks.py", line 309, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpcore/backends/asyncio.py", line 72, in start_tls
raise exc
File "/usr/local/lib/python3.8/site-packages/httpcore/backends/asyncio.py", line 63, in start_tls
ssl_stream = await anyio.streams.tls.TLSStream.wrap(
File "/usr/local/lib/python3.8/site-packages/anyio/_core/_tasks.py", line 118, in exit
raise TimeoutError
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
raise exc
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 237, in h
Try the /new command
Plus, I see there is a TimeoutError, means that the problem is from GPT itself
GPT is being laggy these days, so it can’t get information fast since it uses GPT to answer user’s questions
Yep, besides the internet as it obtained Facebook and Twitter urls and metadata
/new command restarts your dialog with the bot
It’s a good trying, the response is a bit slow, but I think it should blame the OpenAI server these days. Did you pay off the tokens or top up to OpenAI by yourself because it seems like your robot is a free of use?