Comments (4)
ids are int. also why are you adding -100 ? just pass the id directly.
const channelInfo = await client.invoke(new Api.channels.GetFullChannel({
channel: new Api.InputChannel({
channelId: id,
accessHash: accessHash,
}),
}))
from gramjs.
ids are int. also why are you adding -100 ? just pass the id directly.
const channelInfo = await client.invoke(new Api.channels.GetFullChannel({ channel: new Api.InputChannel({ channelId: id, accessHash: accessHash, }), }))
when I put id without -100, i get an error 'CHANNEL_INVALID'
channelId = 1187737793
accessHash = 3541734942
channel userName = 'hack_pro_dota'
from gramjs.
the access hash is most likely wrong. they should be big ints so they would have more digits than that. how did u get it ?
from gramjs.
you right!
I use this code
const res = await client.invoke(new Api.contacts.ResolveUsername({
username: 'hack_pro_dota',
}));
but use res.CONSTRUCTOR_ID instead of res.accessHash -_-
thanks for the prompt help!
from gramjs.
Related Issues (20)
- Cannot send requests while disconnected HOT 1
- How do I actively free memory
- Changing profile not workin HOT 1
- Error browser version
- NewMessage event stops triggering from channels after ~10 seconds since connection HOT 21
- I recived Error "PHONE_CODE_EXPIRED" when send code and signin. HOT 1
- `npm i input` is deprecated, could cause a slowdown up to 100x even if nothing is polyfilled
- Missing MTProto Entity: Please, make sure to add TL definition for ID
- getChatHistory - Exceeding 100 Messages Limit in Chat History Retrieval?
- How to listen to new messages on a specific channel? HOT 1
- Idea: add fool protection in "start" function to avoid accidental ban for flood
- Re-connectiong an authorized user with string session does not work
- Π‘an't get messages using offsetDate that were sent before being added to the telegram group
- EventHandler triggered by some channels and not from some others HOT 1
- Option useIPV6 not working
- Implement requestSimpleWebView HOT 1
- Extract hyperlink from message HOT 3
- The account gets banned immediately after running the sample code HOT 1
- Support http links in parseUsername? HOT 1
- TIME_INVALID and other time_ms related errors returned for InputGroupCallStream HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gramjs.