title: make telegram bot using python
body: <p>I'm trying to make a telegram bot using python, but for some reason it doesn't post the info to the telegram. my code is supposed to send a data frame to telegram as a table but it returns noting(even a error) when I call it from telegram. </p>
  
  <pre><code>from telegram.ext import Updater, InlineQueryHandler, CommandHandler
  import requests
  import re
  import pandas as pd
  
  def get_data():
      data = pd.read_excel('C:/Users/admin/Desktop/data.xlsx')# opening xlsx file as the input 
      data = data.to_string(columns = ['c.1', 'c.2'], index = False, header = True, line_width = 70, justify = 'left')
      return data
  
  def result(bot, update):
      data = get_data()
      chat_id = update.message.chat_id
      bot.send_message(chat_id=chat_id, table=data)
      bot.send_photo(chat_id=chat_id, photo=data)
  
  def main():
      updater = Updater('Token key')
      dp = updater.dispatcher
      dp.add_handler(CommandHandler('result',result))
      updater.start_polling()
      updater.idle()
  
  if __name__ == '__main__':
      main()
  </code></pre>