Compare commits

...

3 Commits
master ... dev

Author SHA1 Message Date
drymer 6363684af4 Merge branch 'dev' of zlaxy/jabbergram into dev 2018-02-24 17:06:44 +00:00
ivan 523a000e01 fixed 'Message' object has no attribute 'new_chat_members' 2018-02-11 11:29:00 +03:00
drymer 42ec1749ce Fix missing parameter on docs 2017-09-01 06:20:47 +02:00
4 changed files with 11 additions and 3 deletions

View File

@ -76,6 +76,7 @@ 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.
@ -92,6 +93,7 @@ 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".
@ -156,6 +158,7 @@ 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`.
@ -172,6 +175,7 @@ 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,6 +44,7 @@
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.
@ -60,6 +61,7 @@
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".
@ -123,6 +125,7 @@
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=.
@ -139,6 +142,7 @@
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_members:
elif update.message.new_chat_member:
message = 'This user has joined the group.'
elif update.message.left_chat_member:
message = 'This user has left the group.'

View File

@ -15,8 +15,8 @@ setup(name='jabbergram',
scripts=['jabbergram.py'],
license="GPLv3",
install_requires=[
"sleekxmpp>=1.3.1",
"python-telegram-bot>=4.0.3",
"sleekxmpp>=1.3.2",
"python-telegram-bot>=6.1.0",
"requests>=2.11.1",
],
classifiers=["Development Status :: 4 - Beta",