vdrhtc / InLaTeXbot

Customizable LaTeX bot for Telegram messenger
http://t.me/InLaTeXbot
GNU General Public License v3.0
216 stars 11 forks source link

Not working in group chats #9

Open filipre opened 5 years ago

filipre commented 5 years ago

Hi, it seems like the bot works fine in private chats but not so in group chats:

Private Chat

Screenshot 2019-06-25 at 12 00 47

Group Chat

Screenshot 2019-06-25 at 12 00 06

Is there anything I could do?

Greetings René

tweska commented 5 years ago

It works fine for me. Did you not get an inline mode popup when typing @inlatexbot <latex expression>?

Maybe your client is from before the introduction of inline bots or you have a client that doesn't support inline mode.

vdrhtc commented 5 years ago

@filipre Hi! I have not implemented the message (not inline, inline works indeed) functionality for the bot in the group chats, unfortunately: there was some problem with the code. I will look at it again a bit later when I have more spare time

filipre commented 5 years ago

Thanks for the reply @Tweska and @vdrhtc . Weird, now my client does support the inline functionality and it also works for me (I don't think the version was the problem though). I expected it to work like in the DMs but doing it inline seems to be cleaner in group chats. If you also want to support messages as well, we can leave this issue open. Otherwise, since it works now, we can close it :)

vdrhtc commented 5 years ago

@filipre, it's nice to hear that everything's all right =)

Yes, I guess I will implement DMs in groups some time later because it supports much larger queries (inline accepts only ~250 chars at max). So I'll leave this thread as a reminder.

FranklinYu commented 5 years ago

Yes, I guess I will implement DMs in groups some time later

Does it mean that we can simply send @InLaTeXbot $x$ and the bot will send back a message with the image? If so it would be really useful because we don’t have to wait for the rendering before we send the next message.

vdrhtc commented 5 years ago

@FranklinYu yes, exactly -- I'll give that a try