Esempio n. 1
0
    def test_getlink_multi(self):
        requestText = 'world of warcraft classic'

        keyConfig = ConfigParser.ConfigParser()
        keyConfig.read(["keys.ini", "..\keys.ini"])
        keyConfig.read(["bot_keys.ini", "..\\bot_keys.ini"])
        bot = telegram.Bot(keyConfig.get('BotIDs', 'TELEGRAM_BOT_ID'))
        chatId = keyConfig.get('BotAdministration',
                               'TESTING_TELEGRAM_PRIVATE_CHAT_ID')

        getlink.run(bot, chatId, 'SalamiArmy', keyConfig, requestText, 10)
Esempio n. 2
0
    def test_getlink_group(self):
        requestText = 'pussy wrecked by giant d***o'

        keyConfig = ConfigParser.ConfigParser()
        keyConfig.read(["keys.ini", "..\keys.ini"])
        keyConfig.read(["bot_keys.ini", "..\\bot_keys.ini"])
        bot = telegram.Bot(keyConfig.get('BotIDs', 'TESTING_TELEGRAM_BOT_ID'))
        chatId = keyConfig.get('BotAdministration',
                               'TESTING_TELEGRAM_GROUP_CHAT_ID')

        getlink.run(bot, chatId, 'SalamiArmy', keyConfig, requestText)
Esempio n. 3
0
    def test_getlink(self):
        requestText = 'the cancun typhoon'

        keyConfig = ConfigParser.ConfigParser()
        keyConfig.read(["keys.ini", "..\keys.ini"])
        keyConfig.read(["bot_keys.ini", "..\\bot_keys.ini"])
        bot = telegram.Bot(keyConfig.get('BotIDs', 'TELEGRAM_BOT_ID'))
        chatId = keyConfig.get('BotAdministration',
                               'TESTING_TELEGRAM_PRIVATE_CHAT_ID')

        getlink.run(bot, chatId, 'SalamiArmy', keyConfig, requestText)