python | Unsorted

Telegram-канал python - Python

135201

You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython

Subscribe to a channel

Python

Issue: I'm building a Telegram chatbot using python-telegram-bot.

on each response i added a translator inline keyboard button to translate the response between english and other language.

Everything works, but I added an inline keyboards on the /start menu (e.g., socials/links, /help command) buttons are missing on the /start response. only shows the greeting text.

Goal: Create a Telegram GPT bot with openai Turbo 3.5 for educational purposes.

Version: Python 3.12.7

Running on: Visual Studio Code (VSC)


Code Snippet: Here's the part where I add the inline keyboards, code example..

https://hastebin.com/share/avakokijac.rust

What am I missing?

Читать полностью…

Python

Instead of has_key what we can use now

Читать полностью…

Python

Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:

- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)

and more details, that way your chances to get help will increase.

Читать полностью…

Python

I was trying to make a telegram chatbot which have translator inline button between 2 different languages on each responses using python-telegram-bot.

the problem is, everything works, but when i add inlinekeyboards to my socials and some other links in the /start menu, it is not showing, it just shows the greeting text.

Читать полностью…

Python

Is python used in automotive industry??

Читать полностью…

Python

Please don't ask meta questions like:

- Any user of $x here?
- Anyone used technology $y?
- Hello, I need help on $z!

Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html

Читать полностью…

Python

Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:

- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)

and more details, that way your chances to get help will increase.

Читать полностью…

Python

Well I am trying to but every time it fails

Читать полностью…

Python

We preffer full error code
Mind the rule 5

And also, eyplain what it is you are doing and how are you doing it

Sharing the code YOU wrote also helps (again mind the rule 5)

Читать полностью…

Python

Can't we access it directly without super?

Читать полностью…

Python

Can somebody explain this?

Читать полностью…

Python

That depends on you, your understanding and a will to learn and practice

Читать полностью…

Python

Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results

Читать полностью…

Python

How long do I need to finish this?

Читать полностью…

Python

Is this enough to learn and work later?

Читать полностью…

Python

https://docs.python.org/3.0/whatsnew/3.0.html#builtins

Читать полностью…

Python

Is the has_key() method not working? Has it been removed in the updated version of Python?

Читать полностью…

Python

where could be the problem?

Читать полностью…

Python

i can't use root with python3 . i really struggling, can somebody help me ?

Читать полностью…

Python

do you want to hire someone?

Читать полностью…

Python

anyone with experience using python and yahoo finance?

Читать полностью…

Python

Its his module, its not external tool (i guess)

Читать полностью…

Python

Install this module or import

Читать полностью…

Python

ModuleNotFoundError: No module named 'utils.downloader_util'

Читать полностью…

Python

No it runs the constructor of the parent class which makes it possible to access the properties n methods of parent's class

Читать полностью…

Python

I have a learning issue.
In python oop, why do we use the super function when inheriting from the parent class?
It seems useless.

Читать полностью…

Python

async def get_redis(config: RedisConfig) -> AsyncGenerator[Redis, None]:
redis: Redis = Redis.from_url(url=config.get_connection_url())

logging.info("Redis client was created.")

try:
yield redis
finally:
await redis.close()
logging.info("Redis client has been closed.")

GUys, when i use redis i shoud connect per request by user or redis shoud be as singletone ?

Читать полностью…

Python

currently which python technology is most useful for placement?

Читать полностью…

Python

No, you need way more in todays market
But its a good start

Читать полностью…

Python

https://pythonbooks.org/free-books/

Читать полностью…
Subscribe to a channel