Skip to content

Instantly share code, notes, and snippets.

@matteosaitta
matteosaitta / autopost.py
Created April 7, 2020 09:30
Automated telegram random image post using a bot. Replace [BOTTOKEN] with your telegram bot api token,[CHATID] with your telegram group chat id [IMAGESPATH] with your image folder path, [HIDEPATH] if you want to hide some or all the folder path in the caption
# Automatic bot post
# Matteo Saitta - 2019
# python-telegram-bot module install is required
# replace [BOTTOKEN] with your telegram bot api token,[CHATID] with your telegram group chat id, [IMAGESPATH] with your image folder path, [HIDEPATH] if you want to hide some or all the folder path in the caption
import os, random, telegram
#post on telegram
def telegrampost(media,photocaption):
bot = telegram.Bot(token='BOTTOKEN')
@matteosaitta
matteosaitta / keybase.md
Created August 19, 2016 05:28
Keybase Proof

Keybase proof

I hereby claim:

  • I am matteosaitta on github.
  • I am matteosaitta (https://keybase.io/matteosaitta) on keybase.
  • I have a public key whose fingerprint is 0059 1D75 B82D E99C DB28 F52F 756C B791 E0EA EA59

To claim this, I am signing this object: