title: How to send python output to telegram CHANNEL not to Group and gmail email group
body: <p>Hi I have a program in python that generates results every one hour. The result can be of anything.This program will run in local machine or in the virtual private network.</p>
  
  <p>I have two requirements
  1. Send this python generated result to one telegram group [Group name "ourworld"](created by me) automatically without user intervention . (I have desktop telegram client running or web.telegram.org running in the same system)</p>
  
  <ol start="2">
  <li>Send this result to gmail group email ID.</li>
  </ol>
  
  <p>what are the methods available to achieve this requirement .Is there any working code available to do this job .Please share the info and details.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>The Issue that i am facing :</p>
  
  <blockquote>
    <p>1.created a Bot using BotFather.
    2.Adding this Bot to my Group  ,Here i get an error could not add an member    So added the Bot as admin in the group
    3.Token of the BOT noted down.
    4. Trying to get ChatId
          in this forum (<a href="https://web.telegram.org/#/im?p=g154513121" rel="nofollow noreferrer">https://web.telegram.org/#/im?p=g154513121</a>) someone says number after p=g is the chartid ,In my case there is no
    number it shows @testingname like this.</p>
    
    <ol start="5">
    <li>Using this approach trying to get the Chat ID    <a href="https://api.telegram.org/bot738909732:AAE-2l7xAAlYHBXprK_a_bex09g9DMZbbDI/getme" rel="nofollow noreferrer">https://api.telegram.org/bot738909732:AAE-2l7xAAlYHBXprK_a_bex09g9DMZbbDI/getme</a>
    so here 738909732 become a chat Id (in this case why we need seperate
    call for the chart id)
    here it is true as response coming! Here the chat id is the ID of the my "testingname" no chart id generated for the group.
    6.Now packing the URL to see the response i am getting this error.</li>
    </ol>
  </blockquote>
  
  <p><a href="https://api.telegram.org/bot738909732:AAE-2l7xAAlYHBXprK_a_bex09g9DMZbbDI/sendMessage?chat_id=738909732&amp;text=testing" rel="nofollow noreferrer">https://api.telegram.org/bot738909732:AAE-2l7xAAlYHBXprK_a_bex09g9DMZbbDI/sendMessage?chat_id=738909732&amp;text=testing</a></p>
  
  <p>the output if i run this in browser</p>
  
  <blockquote>
    <p>{"ok":false,"error_code":400,"description":"Bad Request: chat not
    found"} {"ok":false,"error_code":403,"description":"Forbidden: bot
    can't send messages to bots"}</p>
  </blockquote>
  
  <p>How to resolve this issue and make the BOT working .why i am not able to add BOT to my group that says error "Cant Add user"</p>
  
  <p>How to make this telegram group working.</p>
  
  <p>Note : Using BotFather BOT created       </p>