MadelineProto/testing.php

12 lines
261 B
PHP
Raw Normal View History

2016-08-09 22:28:50 +02:00
#!/usr/bin/env php
2016-06-23 23:51:08 +02:00
<?php
2016-07-14 15:15:50 +02:00
2016-08-07 23:23:10 +02:00
require_once 'vendor/autoload.php';
2016-06-26 14:53:16 +02:00
$config = parse_ini_file('credentials', true);
if (!$config) {
2016-08-07 23:23:10 +02:00
pyjslib_printnl("File 'credentials' seems to not exist.");
exit(-1);
2016-06-23 23:51:08 +02:00
}
2016-09-12 22:28:27 +02:00
2016-08-08 18:10:13 +02:00
$MadelineProto = new \danog\MadelineProto\API($config);