log.error('Could not send notification to TelegramBot (token=%s). Response: [%s]',(token,response.text))
sent_successfuly=False
returnsent_successfuly
config=[{
'name':'telegrambot',
'groups':[
{
'tab':'notifications',
'list':'notification_providers',
'name':'telegrambot',
'label':'Telegram Bot',
'description':'Notification provider which utilizes the bot API of the famous Telegram IM.',
'options':[
{
'name':'enabled',
'default':0,
'type':'enabler',
},
{
'name':'bot_token',
'description':'Your bot token. Contact <a href="http://telegram.me/BotFather">@BotFather</a> on Telegram to get one.'
},
{
'name':'receiver_user_id',
'label':'Recieving User/Group ID',
'description':'Receiving user/group - notifications will be sent to this user or group. Contact <a href="http://telegram.me/myidbot">@myidbot</a> on Telegram to get an ID.'
},
{
'name':'on_snatch',
'default':0,
'type':'bool',
'advanced':True,
'description':'Also send message when movie is snatched.',