U
    bE                     @   s   d d Z dS )c                 C   s   dd l }ddl m} ddl m} ddl m} |d}|d|  }t| d}d}|j	|j
d	|j||d
ddddd|d}	z||	}
td|
 W d S    td Y d S X d S )N    )credentials)db)	messagingzservicekey.json	AllTokenszSubscription Expiring SoonzSubscription Package for one of your Satellite Monitored Field is expiring soon. Go to My Fields on Farmonaut and Click on Renew Button to renew your subscription and keep receiving satellite results.normalic_notificationz#006666notification_soundsatelliteprocessingresult)titlebodyiconcolorsoundtag)prioritynotification)androidtokenzSuccessfully sent message:zToken Not Found)firebase_adminr   r   r   Certificate	referencechildgetprintMessageAndroidConfigAndroidNotificationsend)uidr   r   r   r   credregistration_tokentbmessageresponse r%   2/home/ankuromar296_gmail_com/send_expiring_noti.pysend_expiring_noti   s<    


r'   N)r'   r%   r%   r%   r&   <module>       