Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
89d5b7f2
Commit
89d5b7f2
authored
May 09, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement Python >=3.3 support
parent
caacc3c5
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
239 additions
and
79 deletions
+239
-79
.gitignore
.gitignore
+2
-1
ax_python.m4
ax_python.m4
+1
-1
configure
configure
+1
-1
python-tg.c
python-tg.c
+225
-75
tgl-test.py
tgl-test.py
+10
-1
No files found.
.gitignore
View file @
89d5b7f2
telegram
*.o
Makefile
aclocal.m4
autom4te.cache
config.h
config.log
...
...
@@ -16,4 +17,4 @@ debian/telegram-cli.[a-z]
debian/files
debian/telegram-cli/*
debian/telegram-cli.debhelper.log
debian/telegram-cli.substvars
\ No newline at end of file
debian/telegram-cli.substvars
ax_python.m4
View file @
89d5b7f2
...
...
@@ -56,7 +56,7 @@
AC_DEFUN([AX_PYTHON],
[AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([])
for python in python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
for python in python3.
4 python3.
3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python])
ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then
...
...
configure
View file @
89d5b7f2
...
...
@@ -5943,7 +5943,7 @@ if test "${enable_python+set}" = set; then :
$as_echo_n
"checking for python build information... "
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: "
>
&5
$as_echo
""
>
&6
;
}
for
python
in
python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python
;
do
for
python
in
python3.
4 python3.
3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python
;
do
for
ac_prog
in
$python
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
...
...
python-tg.c
View file @
89d5b7f2
This diff is collapsed.
Click to expand it.
py
test.py
→
tgl-
test.py
View file @
89d5b7f2
...
...
@@ -3,7 +3,6 @@ import geopy
import
pprint
from
geopy.geocoders
import
Nominatim
our_id
=
0
pp
=
pprint
.
PrettyPrinter
(
indent
=
4
)
...
...
@@ -52,3 +51,13 @@ def on_user_update():
def
on_chat_update
():
pass
# Set callbacks
tgl
.
set_on_binlog_replay_end
(
on_binlog_replay_end
)
tgl
.
set_on_get_difference_end
(
on_get_difference_end
)
tgl
.
set_on_our_id
(
on_our_id
)
tgl
.
set_on_msg_receive
(
on_msg_receive
)
tgl
.
set_on_secret_chat_update
(
on_secret_chat_update
)
tgl
.
set_on_user_update
(
on_user_update
)
tgl
.
set_on_chat_update
(
on_chat_update
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment