Telegram Bot "chat not found" : <p>I have the following code in Python to send a message to myself from a bot.</p>

<pre><code>import requests

token = '320835125:AAFUUC-fdo_EFzsCjvmxu8HBk7qVzZXXXXX'
method = 'sendMessage'
myuserid = 1949275XX
response = requests.post(
    url='https://api.telegram.org/bot{0}/{1}'.format(token, method),
    data={'chat_id': myuserid, 'text': 'hello friend'}
).json()
print(response)
</code></pre>

<p>but this returns <code>{'description': 'Bad Request: chat not found', 'error_code': 400, 'ok': False}</code></p>

<p>What am I doing wrong? I got <code>myuserid</code> by sending <code>/getid</code> to <code>@myidbot</code> and I got my token from <code>@BotFather</code></p>
