Get attachement frome IMAP inbox folder and send to telegram It is necessary to fill in the variables for work: path = "path" TOKEN = 'TOKEN' chat_id = "chat_id" chat_id = {'chat_id' : chat_id} mail_pass = "mail_pass" username = "username" imap_server = "imap_server" mail_from = "mail_from"