added client
This commit is contained in:
@@ -114,7 +114,7 @@ def handle(msg):
|
||||
|
||||
def processFile(filename):
|
||||
logger.info('Processing %s' % filename)
|
||||
if re.match(r'.*jpg$',filename):
|
||||
if re.match(r'.*jpe?g$',filename):
|
||||
for c in chat_ids:
|
||||
try:
|
||||
logger.debug('sending %s as picture to %s' % (filename,c['username']))
|
||||
@@ -198,7 +198,7 @@ def parseCmdLine():
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.version:
|
||||
print 'telegram-notify version %s - Copyright (C) 2018 by Paolo Asperti.' % version
|
||||
print 'telegram-notify-daemon version %s - Copyright (C) 2018 by Paolo Asperti.' % version
|
||||
sys.exit(0)
|
||||
|
||||
if args.config:
|
||||
|
||||
Reference in New Issue
Block a user