title: How to pass a list to callback method in telethon?
body: <p>I'm working on a callback function in <a href="https://github.com/LonamiWebs/Telethon" rel="nofollow noreferrer">telethon</a>, my code is something like this:</p>
  
  <pre><code>def callback(update):
      channel_entity = client.get_entity('myzoomg') #Get specific Channel information
      update.message.to_id.channel_id == channel_entity.id: #Check message from that specific channel
          # do something
  
  client.add_update_handler(callback)
  client.idle()  # ends with Ctrl+C
  client.disconnect()
  </code></pre>
  
  <p>I want to pass a parameter as a list item to <a href="https://github.com/LonamiWebs/Telethon/wiki/Working-with-Updates" rel="nofollow noreferrer"><code>get_entity</code></a> method, something like this:</p>
  
  <pre><code>channel_entity = client.get_entity(channel_list[0])
  </code></pre>
  
  <p>This objective normally is accessible by passing <code>channel_list</code> as argument to <code>callback</code> method, but actually <code>callback</code> method just takes update argument as input. My question is how to pass a list to this method?</p>