Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AFK private message #66

Closed
Akshaygit1 opened this issue Jun 16, 2020 · 13 comments
Closed

AFK private message #66

Akshaygit1 opened this issue Jun 16, 2020 · 13 comments

Comments

@Akshaygit1
Copy link

Afk doesn't respond for private messages.
It works in basic/super groups but in private message no I'm afk right now message.
Nothing in logs too.

@Akshaygit1
Copy link
Author

Also does afk message respond only once per user? Or is there some time logic too?

@Harsh-br0
Copy link
Contributor

Also does afk message respond only once per user? Or is there some time logic too?

Are you in usergeot?🤔

@rking32
Copy link
Member

rking32 commented Jun 17, 2020

Also does afk message respond only once per user? Or is there some time logic too?

it won't response for all messages. only for randomly selected messages

@Akshaygit1
Copy link
Author

Also does afk message respond only once per user? Or is there some time logic too?

Are you in usergeot?

No 😐

Also does afk message respond only once per user? Or is there some time logic too?

it won't response for all messages. only for randomly selected messages

Ah okay. Hope soon it gets fixed in private message too :)

@rking32
Copy link
Member

rking32 commented Jun 17, 2020

@Akshaygit1 AFK working fine in Private (just checked)
please check it again

@Akshaygit1
Copy link
Author

@Akshaygit1 AFK working fine in Private (just checked)
please check it again

Weird it doesn't work for me. Nothing in logs too
https://del.dog/ihuxokiwus.txt
Exact steps i did.
Restarted bot (.restart) set afk (.afk testing) now sent message to myself using alt but got no I'm afk right now message.

@rking32
Copy link
Member

rking32 commented Jun 17, 2020

@Akshaygit1 don't use AFK yourself. it won't work anymore

try to PM your account with other account

@Akshaygit1
Copy link
Author

@Akshaygit1 don't use AFK yourself. it won't work anymore

try to PM your account with other account

Yes that's exactly what i did. After doing afk command i pmed myself using my alt account. But got no afk reply.
Btw I'm using alpha branch (not sure If that's relevant to this issue or not)

@theRay1s
Copy link

@Akshaygit1 afk is working perfect in both private and group

@Akshaygit1
Copy link
Author

I see that's weird, looks like I'm the only one facing this then. Any hints what might be the reason?

@rking32
Copy link
Member

rking32 commented Jun 18, 2020

@Akshaygit1 have you enabled pmguard ?

@Akshaygit1
Copy link
Author

Akshaygit1 commented Jun 18, 2020

@Akshaygit1 have you enabled pmguard ?

No, i don't use pmpermit plugin.

Edit..
Okay after loading pmpermit and enabling pmguard when i message myself i get pmpermit message after .allow now afk works too.
So afk check private message against pmpermit allowed list then only shows afk message.
This makes sense but only if pmpermit is loaded even after unloading pmpermit it still checks user against allowed list o.O

@rking32
Copy link
Member

rking32 commented Jun 18, 2020

hmm noted

gautamajay52 added a commit to gautamajay52/Userge that referenced this issue Aug 9, 2020
* Fixes Gban Filter Logic 😐 (UsergeTeam#44)

* Okay!

* Lol

* DeepSource

* some fixes in gban and UI improvement

* minor fixes

* fixes load cmd and UI improvements

* minor fixes

* gban again 🤷‍♂️ and fixes gdrive pattern

* security patch + utube bound fixes + (local/global) support for notes and this closes UsergeTeam#25 and closes UsergeTeam#42

* notes and minor fixes + add pp count to whois

* fixing gban flood wait error (UsergeTeam#53)

* Can it be done in more better way?

* Update gban.py

* Don't need dat

* Chat id duplication in list.

* fix ANTISPAM_SENTRY logic

Co-authored-by: rking32 <52490534+rking32@users.noreply.github.com>

* pmpermit + utube + minor fixes

* fixes ChatAdminRequired and allow command

* fixes UsergeTeam#57

* fixes -> kang , MD to HTML in help , add workers to ENV , missing f in AFK

* Add admin check for locks (UsergeTeam#70)

* fixes kang , pathlib and add channel support to gdrive

* upload file sorted by name if path is directory (UsergeTeam#69)

* upload file sorted by name if path is directory

* Update upload.py

* do not show file size in the Official Mobile Applications 😁 (UsergeTeam#75)

audio files, do not show file size in the Official Mobile Applications.
Ref: https://t.me/c/1341570295/70414

* optimize pmpermit , afk , term and this -> closes UsergeTeam#76, closes UsergeTeam#66, closes UsergeTeam#71

* added gdrive index support and this closes UsergeTeam#18

* fixes gban, gdrive, pymongo escape error, welcome(remove media limit), add media support for filters and notes

* fix gban and now filters and notes should support any character 🤔

* some formating fixes and add gshare command

* fixes input_str

* some fixes in pool

* redesigned core , some improvements and add bot support (BETA)

* fixed build error

* fixes logs, restart, reload, upload and some fixes

* fixed logs + missing things

* some fixes and add inline menu

* Hmmm🌚 Dunno why this Kolaveridi (UsergeTeam#90)

* minor fixes + Nonetype has no attribute get

* fixed StopPropagation & ContinuePropagation issue

* some fixes in bot session and add option to change client for checks and sudos

* fixes in notes and https://t.me/usergeot/326374

* fixing PeerIdInvalid error

* typo in updater message (UsergeTeam#91)

* typo in updater message

* fixed prefix in updater message

made changes as asked

* Update updater.py

me noob;-;

* Add GitHub Pull App Support (UsergeTeam#93)

* trying to fix floadwait when getFullUser request and fixes client checks

* add buttons to notes

* buttons small fix

* fixes filters error

* minor fixes in notes, filters and disable_web_page_preview in help

* minor fixes

add option to delete all notes and filters

add option to add all commands as sudo commands

fixed google command

now local notes can access via bot

now you can add notes via bot

add button structure to commands help

update userge tutorial

* add -all flag for notes and filters

* small fix in notes and ids

Co-authored-by: Phyco-Ninja <60768764+Phyco-Ninja@users.noreply.github.com>
Co-authored-by: rking32 <sljohnwick@gmail.com>
Co-authored-by: rking32 <52490534+rking32@users.noreply.github.com>
Co-authored-by: sumitbot <botsumit@gmail.com>
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Co-authored-by: Arsalan <35004378+a092devs@users.noreply.github.com>
Co-authored-by: Ansh Mittal <62325214+iamAnshMittal@users.noreply.github.com>
gautamajay52 added a commit to gautamajay52/Userge that referenced this issue Aug 11, 2020
* Fixes Gban Filter Logic 😐 (UsergeTeam#44)

* Okay!

* Lol

* DeepSource

* some fixes in gban and UI improvement

* minor fixes

* fixes load cmd and UI improvements

* minor fixes

* gban again 🤷‍♂️ and fixes gdrive pattern

* security patch + utube bound fixes + (local/global) support for notes and this closes UsergeTeam#25 and closes UsergeTeam#42

* notes and minor fixes + add pp count to whois

* fixing gban flood wait error (UsergeTeam#53)

* Can it be done in more better way?

* Update gban.py

* Don't need dat

* Chat id duplication in list.

* fix ANTISPAM_SENTRY logic

Co-authored-by: rking32 <52490534+rking32@users.noreply.github.com>

* pmpermit + utube + minor fixes

* fixes ChatAdminRequired and allow command

* fixes UsergeTeam#57

* fixes -> kang , MD to HTML in help , add workers to ENV , missing f in AFK

* Add admin check for locks (UsergeTeam#70)

* fixes kang , pathlib and add channel support to gdrive

* upload file sorted by name if path is directory (UsergeTeam#69)

* upload file sorted by name if path is directory

* Update upload.py

* do not show file size in the Official Mobile Applications 😁 (UsergeTeam#75)

audio files, do not show file size in the Official Mobile Applications.
Ref: https://t.me/c/1341570295/70414

* optimize pmpermit , afk , term and this -> closes UsergeTeam#76, closes UsergeTeam#66, closes UsergeTeam#71

* added gdrive index support and this closes UsergeTeam#18

* fixes gban, gdrive, pymongo escape error, welcome(remove media limit), add media support for filters and notes

* fix gban and now filters and notes should support any character 🤔

* some formating fixes and add gshare command

* fixes input_str

* some fixes in pool

* redesigned core , some improvements and add bot support (BETA)

* fixed build error

* fixes logs, restart, reload, upload and some fixes

* fixed logs + missing things

* some fixes and add inline menu

* Hmmm🌚 Dunno why this Kolaveridi (UsergeTeam#90)

* minor fixes + Nonetype has no attribute get

* fixed StopPropagation & ContinuePropagation issue

* some fixes in bot session and add option to change client for checks and sudos

* fixes in notes and https://t.me/usergeot/326374

* fixing PeerIdInvalid error

* typo in updater message (UsergeTeam#91)

* typo in updater message

* fixed prefix in updater message

made changes as asked

* Update updater.py

me noob;-;

* Add GitHub Pull App Support (UsergeTeam#93)

* trying to fix floadwait when getFullUser request and fixes client checks

* add buttons to notes

* buttons small fix

* fixes filters error

* minor fixes in notes, filters and disable_web_page_preview in help

* minor fixes

add option to delete all notes and filters

add option to add all commands as sudo commands

fixed google command

now local notes can access via bot

now you can add notes via bot

add button structure to commands help

update userge tutorial

* add -all flag for notes and filters

* small fix in notes and ids

Co-authored-by: Phyco-Ninja <60768764+Phyco-Ninja@users.noreply.github.com>
Co-authored-by: rking32 <sljohnwick@gmail.com>
Co-authored-by: rking32 <52490534+rking32@users.noreply.github.com>
Co-authored-by: sumitbot <botsumit@gmail.com>
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Co-authored-by: Arsalan <35004378+a092devs@users.noreply.github.com>
Co-authored-by: Ansh Mittal <62325214+iamAnshMittal@users.noreply.github.com>
gautamajay52 added a commit to gautamajay52/Userge that referenced this issue Sep 1, 2020
* fixes -> kang , MD to HTML in help , add workers to ENV , missing f in AFK

* Add admin check for locks (UsergeTeam#70)

* fixes kang , pathlib and add channel support to gdrive

* upload file sorted by name if path is directory (UsergeTeam#69)

* upload file sorted by name if path is directory

* Update upload.py

* do not show file size in the Official Mobile Applications 😁 (UsergeTeam#75)

audio files, do not show file size in the Official Mobile Applications.
Ref: https://t.me/c/1341570295/70414

* optimize pmpermit , afk , term and this -> closes UsergeTeam#76, closes UsergeTeam#66, closes UsergeTeam#71

* added gdrive index support and this closes UsergeTeam#18

* fixes gban, gdrive, pymongo escape error, welcome(remove media limit), add media support for filters and notes

* fix gban and now filters and notes should support any character 🤔

* some formating fixes and add gshare command

* fixes input_str

* some fixes in pool

* redesigned core , some improvements and add bot support (BETA)

* fixed build error

* fixes logs, restart, reload, upload and some fixes

* fixed logs + missing things

* some fixes and add inline menu

* Hmmm🌚 Dunno why this Kolaveridi (UsergeTeam#90)

* minor fixes + Nonetype has no attribute get

* fixed StopPropagation & ContinuePropagation issue

* some fixes in bot session and add option to change client for checks and sudos

* fixes in notes and https://t.me/usergeot/326374

* fixing PeerIdInvalid error

* typo in updater message (UsergeTeam#91)

* typo in updater message

* fixed prefix in updater message

made changes as asked

* Update updater.py

me noob;-;

* Add GitHub Pull App Support (UsergeTeam#93)

* trying to fix floadwait when getFullUser request and fixes client checks

* add buttons to notes

* buttons small fix

* fixes filters error

* minor fixes in notes, filters and disable_web_page_preview in help

* minor fixes

add option to delete all notes and filters

add option to add all commands as sudo commands

fixed google command

now local notes can access via bot

now you can add notes via bot

add button structure to commands help

update userge tutorial

* add -all flag for notes and filters

* small fix in notes and ids

* fix addscmd -all and gban via bot

* optimizing initialization

* fixing build error

* some minor fixes

* gban fix [ UsergeBotNotFound error ]

update required vars when deploy (now only need 5 vars)

add only_admins option to on_cmd decorator

redesined traceback log template

fixed showing improper logging name in logging channel

+ optimize init logs

* fix ytinfo [400 WEBPAGE_MEDIA_EMPTY] , remove notes case sensitivity and photo support for upload command

* fix notes bug in channels, bots and some cleanups

* Update ids.py (UsergeTeam#107)

* Update kang.py (UsergeTeam#109)

* Updating app.json 🙂 (UsergeTeam#111)

* Update config.env.sample

* Added repl of UserGe 😊

* fix kang [ 512 x 512 ] issue , gban via bot + minor fixes

* fixed kang dimention error

* fixing Promote/demote Bug (UsergeTeam#114)

* Some fixes + added Gmute 🤘 (UsergeTeam#117)

* Fixing MESSAGE_NOT_MODIFIED

* Fixing UserAdminInvalid

This error comes when both users are admin in Some groups

* some optimization in Mute/Unmute

Reduces some repeatiom of lines and reduce lines of code 🤘

* added Gmute 🤘

Gmute plugin for Userge. [Issue in Userge Repo](https://github.com/UsergeTeam/Userge)
Now User can Mute User Globally.

* Fixing lint errors

* fixing Pep8 🙂

* Update gmute.py

* Update gban.py

* minor changes 🙂

* fixed typos

* some enhancements in core and plugins + closes #7

* minor fixes in default template

* fix arg issues in upload.py (UsergeTeam#121)

* fix user has no attribute can_all

* fix autopic and gpic

* extends userge.utils (UsergeTeam#122)

* let me add short way

* added shortcut for _parse_button

* fixing pep8 😅

* extends userge.utils (thks @Krishna-Singhal idea)

Co-authored-by: rking32 <sljohnwick@gmail.com>

* fix build error

* fix -m in utube + minor fixes

* fix unpack progress freezing + gdown and gup backend error [500]

* add channel and group support to conversation

* typo fix

* sudo enable/disable + antispam enable/disable + kang fix for username + custom sticker pack name + shutdown cmd + heroku logs support + some env cleanups

* Fix attribute typo in Kang (UsergeTeam#126)

* Add self destruct

* Update kang.py

* Update gmute.py

* Maybe Better. 

> Added Check for Emoji
> Use user's first name or id if username is NoneType

* Oops 😬

* ~_~

* Possibly a fix https://t.me/usergeot/472815 (UsergeTeam#128)

Idk how even a message can't have chat type 🤔🙄

* fix edit spam in Filters and Afk (UsergeTeam#129)

* Update filters.py

* Update afk.py

* minor fixes

* performance enhancement

* added die cmd (heroku dyno saver)

* fix typo

* add setvar , delvar and getvar

* this closes UsergeTeam#83, closes UsergeTeam#110, closes UsergeTeam#125

* typo here

* optimize filters supported types

* update userge to latest pyrogram + add cmd to set edit timeout

* new alive template (UsergeTeam#135)

* new template

* optimizing

Co-authored-by: rking32 <sljohnwick@gmail.com>

* Upgrades + Possible Bug Fixes.  (UsergeTeam#136)

* Add extract user from message

* -_- Upgrade

* -_- Upgraded

* This too

* This may cause some error.

And some stupids will show traceback blindlessly -_-

* Add caption extraction

* Update alive.py

* Update whois.py

* Fix undefined

* Update gadmin.py

* Typo

* optimize message

Co-authored-by: rking32 <sljohnwick@gmail.com>

* trying to fix jq issue

* fix for not giving export_session_string

* fix heroku vars issue

* fix None type can't iterable in message.py (UsergeTeam#139)

* add secret message support (UsergeTeam#132)

* Update help.py

* fixed

* fixed spaces

* fixed func

* mi nub 😕

* fixed md

* add multi message support

Co-authored-by: rking32 <sljohnwick@gmail.com>

* fix blank line in alive

* some fixes + mention fixed in private msg (UsergeTeam#140)

* changed reason to text.

* fixed here.

* fixed here.

* fixed here.

* fixed mention issue.

* fixed secret msg (UsergeTeam#141)

* Update Userge to v0.2.0

* hot fix git fatal issue

* Update Userge to v0.2.1

* attempt to fix build and deepsource error

* Fix Kang issue (UsergeTeam#144)

Fixed pack_shortname in while loop https://t.me/usergeot/524165

Co-authored-by: rking32 <sljohnwick@gmail.com>
Co-authored-by: Phyco-Ninja <60768764+Phyco-Ninja@users.noreply.github.com>
Co-authored-by: sumitbot <botsumit@gmail.com>
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Co-authored-by: Arsalan <35004378+a092devs@users.noreply.github.com>
Co-authored-by: Ansh Mittal <62325214+iamAnshMittal@users.noreply.github.com>
Co-authored-by: Krishna-singhal <65902764+Krishna-Singhal@users.noreply.github.com>
Co-authored-by: Neal Gosalia <nealgosalia@gmail.com>
Co-authored-by: rking32 <52490534+rking32@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants