I want to develope a bot in telegram to set as the admin of my channel.
And I want it to notify me whenever a member leaves the channel. And I want it to tell me who it was. and I prefer to have name or username.
I think you can. If you can see all subscribers in your channel and you can make a program to identify who lives your channel by checking and substracting existing members vs last members & you can set activity starter when member counts change
#fkadeal this is my idea & it's not tested yet
Unfortunately, you can only get member count at this time, even your bot is admin, can't get full list of member, you can just clumsy track users by their ID.
Related
I have a group in Telegram that is bombarded by spammers/bots. We have Shieldy enabled, which gets rid of most of the spammers within a few seconds, but the notifications that come a few times per day get really annoying. There is no setting in the group setting that is able to prevent it. How can I restrict the group so that only invited people can join the group?
It can't be entirely avoided.
Change the group settings to "Invite link" in Settings > Manage Group. Revoke the permanent link to regenerate it.
That should reduce your visibility to only "Groups nearby" and require the invite link for anyone else. BUT invite links can be easily generated and tested for validity by a spam bot.
Add a bot like Shieldy (https://botostore.com/c/shieldy_bot/) to your group. It will further aid in restricting new members capabilities, especially bot ID's and uses Captcha verification. Bots can kick genuine people though so watch it carefully.
How to create a room using rest API in mesibo so that we can generate the room id and secret and send it to users. Basically, the use case is
I want to use mesibo for the tutoring sessions. So we need a way to be able to create a link within the tutoring app that will bring the user directly into the correct conference. The Mesibo demo currently asks for the person's name, room number, etc. We don't want any questions asked. It should go straight from the application portal to the Mesibo conference. So the link can contain the encrypted information about the conference, such as the person's name, the room number, and the start time. Once the tutoring session is over, the links should stop working; each link should be good for only that one conference, and it should expire after.
I have successfully created the create user, regenerate user token, create group API I want to move forward to create room and let people join it.
Let me know if that's a possible cause in the documentation it's not mentioned anywhere.
a conference room is a mesibo group. The participants are members of a group. To create a conference room, you essentially need to create a mesibo group and add participants to it. Refer to the documentation here, it has one entire section on creating room using APIs
https://mesibo.com/documentation/api/conferencing/
I’m part of a telegram group. I can see other users on the group, and I can message them individually (and manually). Is it possible to automatically (programmatically) message all the users on the group individually? Note I am not the admin.
If it is indeed possible, is there any sample code you can share?
It would be particularly awesome if the message could be customized for admin and non-admin. This means I’d need to detect if a particular user is an admin.
Thanks
I'm not sure if I get what you are looking for but I assume you have a Telegram Bot and wanna message all users in an specific group/supergroup. First I have to remind you bot can't start private message according to this link
Bots can't initiate conversations with users. A user must either add them to a group or send them a message first.
If I got it wrong feel free leave comment and I will update the answer ASAP ;-) ^_^
I am new to implement Android notification channel in Oreo. What is the maximum number of notification channels for a single application. Can we create unlimited channels or it has some count?
As far as I know there is no limit on the number of channels an app can create. The only purpose of NotificationChannel is to give more control of notification behavior to the user. It is no way to reduce the number of notification per app.
You can read about Notification Channel in detail at Create and Display Notification on Android Oreo | With Example
There is a limit that is not documented on the number of channels you can have at the same time, but no limit on how many times you can create a channel, as long as you have deleted other channels.
The file PreferencesHelper.java contains a limit that is currently set to 50.000
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/core/java/com/android/server/notification/PreferencesHelper.java
And this is being used to restrict the creation of more channels when it goes over that limit, throwing the exception "Limit exceed; cannot create more channels"
Unfortunately that value is not publicly accessible, so any limit check you might want to implement will have to be hardcoded by yourself. My suggestion is to set your own limit to a number that you think starts being unreasonable, and when that is reached you run a check on your notification channels to figure out what is going on, and fix it. For example, if your app will never need more than 5 channels to be created, then setting the limit to 6 would be a good way to start.
The commit https://github.com/aosp-mirror/platform_frameworks_base/commit/f528b337dd48b7e8071269e07e610bd4a3668c75 update the max notification channel to 5.000
Coming with Android Oreo, Notification Channels are something a developer uses to break down the notifications his or her app can give to us by type. The channels are decided by the people doing the developing, and the idea is to give us a way to separate out the notifications that are important to us from the ones that aren't, then decide how they will be shown. Some apps will have a lot of different channels. Some will have just a few and some will have only one.
In versions of Android before O, a developer used what was called a priority level to decide how to show you a notification. If they felt the notification was important, they could set it to peek (show a visual indication on your screen) or make a sound, or both. If they felt it wasn't it would just be placed in the tray for you to see the next time you went through them.
Now they break things out into channels and we get to decide how each type of notification is displayed. All notifications of the same type (for example, a reply on your Twitter feed) are placed into the same channel without any other types of notification grouped with them.
As a bonus, apps that allow us to use more than one account can have channels for each combined — your personal email and work email can follow the same rules and show you things the same way no matter which accounts received the notification.
You should read this:
https://developer.android.com/guide/topics/ui/notifiers/notifications.html#ManageChannels
Example:
Basically I have a site in which I want my clients to be owners of a group, and then anonymous users can add nodes through their group and my clients will receive notification if someone adds a node in their group.
Basically the service is a lead generation service so in effect the content type is a landing page and when anonymous users go to put their details in, dependent on which group they do it through, the client will receive the notification.
i.e. My clients group is www.example.com/group1 and they send out a link with their URL to generate some leads.
example.com/group1/node/add/landing-page
Once this node has been created, will it be possible to notify the group1 owner (I assume if I set the correct Rules)?
On top of this, I want the group1 owner to be able to login and see a Views display of all the nodes that have been created in their group.
I assume Organic Groups is the wway to go here, but I may be mistaken - any hep would be appreciated.
Unless this has dramatically changed in D7, I don't think you're going to be able to let anonymous users post into Groups. The whole concept and structure of OG relies on users being logged in and identifiable.
In other words, I think you have to be a member of a Group to post in it, and anonymous (user 0) can never belong to a Group.