потом перестало.
                  
                  
                   
                  
                  
                  #pip install python-telegram
                  
                  
                  
                  
                  
                  from telegram.client import Telegram
                  
                  
                  line = 'my number'
                  
                  
                  tg = Telegram(**tg_creds)
                  
                  
                  tg.login()
                  
                  
                  response = tg.call_method('importContacts', {'contacts': [{'phone_number' : line}]})
                  
                  
                  user_ids = response.update['user_ids']
                  
                  
                  
                  
                  
                      user_ids = response.update['user_ids']
                  
                  
                  TypeError: 'NoneType' object is not subscriptable
                  
                  
                
А аккаунт не заблокирован? Что-то не похоже, что ты пишешь клиент для телеги.
в логах пишет что логин проходит успешно и генерится session_id
Тогда под отладкой смотри, что в response лежит.
)) AsyncResult <4d0eac00c90545bcaa1caf52c06581cb>
print - это не полноценная отладка.
Обсуждают сегодня