Simply have to add the following line on .rtorrent.rc file
method.set_key = event.download.finished, archiving,"execute={/path/copydl.sh,$d.name=,$d.base_path=}"
pip3 install telegram-upload
Then need to configure teleram-upload with telegram api id, api hash and authentication token.