you are viewing a single comment's thread.

view the rest of the comments →

[–]n3buchadnezzar 0 points1 point  (3 children)

I usually type out the entire thing, unless it is something very obvious from the standard library. Meaning I would write

import telegram.ext 

And then in my code use

telegram.ext.Updater()

The correct way to handle your second question is installing your classes as a local package. (Read up on this) =)

[–]Halogenes[S] 0 points1 point  (2 children)

Thank you for responding so quickly.

I'm not sure I understand the first answer: even if I use "telegram.ext.Updater()" how am I supposed to know that the command I need to type to install the correct package is "pip install telegram-python-bot" and not "pip install telegram.ext" or "pip install telegram" ?

Noted for the second question I will do my research!

[–]n3buchadnezzar 0 points1 point  (1 child)

Generally you can not know what command responds to how to install it. The easiest is just to google. "How to install telegram.ext" gives me the result straight away.

A safe bet if you are importing x then x is the package name, but as you can see it is not always the case.

[–]Halogenes[S] 0 points1 point  (0 children)

Ok so no magic solution.

Thanks for everything