bot/bot.py
def sendMessage(self, chat_id, text):
        """Bot sends a message to provided chat_id with the provided text"""

        response = requests.post(
            url='https://api.telegram.org/bot{0}/{1}'.format(self.token, 'sendMessage'),
            data={'chat_id': chat_id, 'text': text}
        ).json()
Bot sends a message to provided chat_id with the provided text
Bot sends a message to provided chat_id with the provided text
Bot sends a message to provided chat_id with the provided text
def sendMessage(self, chat_id, text):
        response = requests.post(
            url='https://api.telegram.org/bot{0}/{1}'.format(self.token, 'sendMessage'),
            data={'chat_id': chat_id, 'text': text}
        ).json()
def sendMessage ( self , chat_id , text ) : response = requests . post ( url = 'https://api.telegram.org/bot{0}/{1}' . format ( self . token , 'sendMessage' ) , data = { 'chat_id' : chat_id , 'text' : text } ) . json ( )
Bot sends a message to provided chat_id with the provided text
Bot sends a message to provided chat_id with the provided text
"""Bot sends a message to provided chat_id with the provided text"""
self
chat_id
text