I want to take user data from array["from"]
, but when i want to print it, it says None
This is for python 2.xx. in the past i've tried with a basic array and it works fine, but when I use an Instagram bot and print in an app it doesn't work fine
print update.message
print update.message['from']
First code output :
> {'delete_chat_photo': False, 'new_chat_photo': [], 'from':
> {'first_name': u'error', 'is_bot': False, 'id': 0000000,
> 'language_code': u'kkk'}, 'text': u'namaewa?', 'caption_entities': [],
> 'entities': [], 'channel_chat_created': False, 'new_chat_members': [],
> 'supergroup_chat_created': False, 'chat': {'type': u'supergroup',
> 'id': -0, 'title': u'IE'}, 'photo': [], 'date': 1565793310,
> 'group_chat_created': False, 'message_id': 159}
Second code output :
> None