Compare commits

..

3 Commits
dev ... master

Author SHA1 Message Date
drymer fcf8436fca
Bump version 2018-11-07 20:57:10 +01:00
drymer f219cc07b8 Merge branch 'dev' of drymer/jabbergram into master 2017-07-21 09:09:42 +02:00
drymer 2b47e3528d Merge branch 'dev' of drymer/jabbergram into master 2017-07-21 08:29:37 +02:00
4 changed files with 4 additions and 12 deletions

View File

@ -76,7 +76,6 @@ Then, you will have to create a config file. We'll call it `config.ini`. In that
nick = jabbergram
token = jabbergramBotTokken
group = -10293943920
verify_ssl = yes
The only thing worth mentioning is the `token` section, which is said to you when creating the bot, and the `group`, that is the `Telegram` group ID.
@ -93,7 +92,6 @@ There only can be one configuration file. This is because it can only be one bot
nick = jabbergram
token = jabbergramBotTokken
group = -10293943920 120301203
verify_ssl = yes
Thus, the example's muc "exampleMuc@muc.nope.org" syncs with the group "-10293943920" and "segunda@muc.sip.org" with "120 301203".
@ -158,7 +156,6 @@ A continuación, hay que crear un archivo de configuración, que llamaremos `con
nick = jabbergram
token = jabbergramBotTokken
group = -10,293,943,920
verify_ssl = yes
La única cosa que vale la pena mencionar es la sección del `token` (que es la que nos da cuando se crea el robot) y el `group`, que es ID del grupo de `Telegram`.
@ -175,7 +172,6 @@ Sólo puede haber un archivo de configuración. Esto es debido a que sólo puede
nick = jabbergram
token = jabbergramBotTokken
group = -10293943920 120301203
verify_ssl = yes
De este modo, el muc "exampleMuc@muc.nope.org" se sincronizará con el grupo "-10293943920", y "segunda@muc.sip.org" con "120301203". Hecho esto, solo queda ejecutarlo en la terminal: `python3 jabbergram.py config.ini`. Hay que tenerla activa siempre que se quiera que funcione, obviamente.

View File

@ -44,7 +44,6 @@
nick = jabbergram
token = jabbergramBotTokken
group = -10293943920
verify_ssl = yes
#+END_SRC
The only thing worth mentioning is the =token= section, which is said to you when creating the bot, and the =group=, that is the =Telegram= group ID.
@ -61,7 +60,6 @@
nick = jabbergram
token = jabbergramBotTokken
group = -10293943920 120301203
verify_ssl = yes
#+END_SRC
Thus, the example's muc "exampleMuc@muc.nope.org" syncs with the group "-10293943920" and "segunda@muc.sip.org" with "120 301203".
@ -125,7 +123,6 @@
nick = jabbergram
token = jabbergramBotTokken
group = -10,293,943,920
verify_ssl = yes
#+END_SRC
La única cosa que vale la pena mencionar es la sección del =token= (que es la que nos da cuando se crea el robot) y el =group=, que es ID del grupo de =Telegram=.
@ -142,7 +139,6 @@
nick = jabbergram
token = jabbergramBotTokken
group = -10293943920 120301203
verify_ssl = yes
#+END_SRC
De este modo, el muc "exampleMuc@muc.nope.org" se sincronizará con el grupo "-10293943920", y "segunda@muc.sip.org" con "120301203". Hecho esto, solo queda ejecutarlo en la terminal: =python3 jabbergram.py config.ini=. Hay que tenerla activa siempre que se quiera que funcione, obviamente.

View File

@ -179,7 +179,7 @@ class Jabbergram(sleekxmpp.ClientXMPP):
'but the XMPP server doesn\'t support H'\
'TTP Upload.'
elif update.message.new_chat_member:
elif update.message.new_chat_members:
message = 'This user has joined the group.'
elif update.message.left_chat_member:
message = 'This user has left the group.'

View File

@ -2,7 +2,7 @@
from setuptools import setup
VERSION = '0.1.7'
VERSION = '0.1.8'
setup(name='jabbergram',
version=VERSION,
@ -15,8 +15,8 @@ setup(name='jabbergram',
scripts=['jabbergram.py'],
license="GPLv3",
install_requires=[
"sleekxmpp>=1.3.2",
"python-telegram-bot>=6.1.0",
"sleekxmpp>=1.3.1",
"python-telegram-bot>=6.0.1",
"requests>=2.11.1",
],
classifiers=["Development Status :: 4 - Beta",