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
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?
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.
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.
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
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.
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)
That depends on you, your understanding and a will to learn and practice
Читать полностью…
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
https://docs.python.org/3.0/whatsnew/3.0.html#builtins
Читать полностью…
Is the has_key() method not working? Has it been removed in the updated version of Python?
Читать полностью…
i can't use root with python3 . i really struggling, can somebody help me ?
Читать полностью…
anyone with experience using python and yahoo finance?
Читать полностью…
ModuleNotFoundError: No module named 'utils.downloader_util'
Читать полностью…
No it runs the constructor of the parent class which makes it possible to access the properties n methods of parent's class
Читать полностью…
I have a learning issue.
In python oop, why do we use the super function when inheriting from the parent class?
It seems useless.
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.")
currently which python technology is most useful for placement?
Читать полностью…
No, you need way more in todays market
But its a good start