Basically I'm trying to understand how this api works, by doing the following I'm not able to get the message to my channel (I'm sending the /test command from my telegram account). Also, how I'm suposed to use JobQueue and send auto-msgs every 3 hours for example? The documentation explanation doesn't works for me.
def test(bot, update):
update.send_message(chat_id='@channelid', text='this is a test')
def main():
# Create the EventHandler and pass it your bot's token.
updater = Updater("457160310:AAFlxrH2uAaOMGrgO0suOXFM2gVKywsUL0E")
dp = updater.dispatcher
dp.add_handler(CommandHandler("test", test))
dp.add_error_handler(error)
updater.start_polling()
updater.idle()
if __name__ == '__main__':
main()