Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 471 Bytes
import botan
import config
tkn = None
if hasattr(config, 'BOTANIO_TOKEN'):
tkn = config.BOTANIO_TOKEN
def track(uid, message, name='Message'):
if tkn is not None:
arg = message
try:
arg = {
'text': message.text,
'date': message.date.isoformat()
#'from_user': message.from_user.__dict__
}
except:
pass
botan.track(tkn, uid, arg, name)
def get_link(uid):
return botan.shorten_url('https://telegram.me/storebot?start=rog_bot', tkn, uid)
You can’t perform that action at this time.