Appunti python
telegram lib telepot
pip install telepotpython -m pip install telepotpython3 -m pip install telepotpython3 -m pip3 install telepotpython3 -m pip install telepotfind your bot data(sendbox) dietpi@DStarGW:~/ISS_phishing/sendbox/project$ pythonPython 3.5.3 (default, Sep 27 2018, 17:25:39)[GCC 6.3.0 20170516] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import telepot>>> bot = telepot.Bot('XXXXXXXXXXXXXXXXXXXXXXXXx')>>> bot.getMe(){'username': 'Gr1964Bot', 'can_join_groups': False, 'first_name': 'Gp_Home_bot', 'can_read_all_group_messages': True, 'supports_inline_queries': False, 'id': 179215035, 'is_bot': True}* ambiente virtuale 2:virtualenv telepot-examplecd telepot-examplepip install telepotcd telepot-example/source bin/activatedeactivate* per usare ambiente virtuale 3:sudo apt-get install python3-venvpython3 -m venv sendboxpip install telepotpip install serialper rimuovere un modulo sbagliato pip uninstall serialquello corretto e' questo pip install pyserialgestione stringe https://www.computerhope.com/issues/ch001721.htm
Per usare il modem senza innescare la ricezione dei caratteri in echomeglio andare in echo off poi conv (ctrl-C echo on per ripristinare)